Skip to content

Commit 07a6f06

Browse files
committed
Use correct vts list in test_create_scan assertions
1 parent 6df27a4 commit 07a6f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/http/openvasd/test_openvasd1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_create_scan(self, mock_connector: Mock):
132132
"/scans",
133133
{
134134
"target": {"hosts": "somehost"},
135-
"vts": ["some_vt", "another_vt"],
135+
"vts": [{"oid": "some_vt"}, {"oid": "another_vt"}],
136136
},
137137
raise_for_status=False,
138138
)
@@ -149,7 +149,7 @@ def test_create_scan(self, mock_connector: Mock):
149149
"/scans",
150150
{
151151
"target": {"hosts": "somehost"},
152-
"vts": ["some_vt", "another_vt"],
152+
"vts": [{"oid": "some_vt"}, {"oid": "another_vt"}],
153153
"scan_preferences": {"my_scanner_param": "abc"},
154154
},
155155
raise_for_status=False,

0 commit comments

Comments
 (0)