Skip to content

Commit ea4f6af

Browse files
committed
Fixes tests
1 parent 28dc4aa commit ea4f6af

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

tests/unit/test_scanner.py

+16-14
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ def test_scan(self):
9898
"service_product": "Nginx"
9999
}
100100
],
101-
"os": [
102-
"os_name"
103-
],
104-
"hops": [
105-
{"ipaddr": "10.0.0.0", "host": "host_1"},
106-
{"ipaddr": "10.0.0.1", "host": "host_2"},
107-
],
101+
"os": {
102+
"1": "os_name"
103+
},
104+
"hops": {
105+
"1": "10.0.0.0",
106+
"2": "10.0.0.1"
107+
},
108108
"osfingerprint": "os_fingerprint",
109109
"last_boot": "12345678"
110110
}
@@ -150,13 +150,15 @@ def test_scan(self):
150150
"service_product": "Nginx"
151151
}
152152
],
153-
"os": [
154-
"os_1", "os_2", "os_3"
155-
],
156-
"hops": [
157-
{"ipaddr": "10.0.0.0", "host": "host_1"},
158-
{"ipaddr": "10.0.0.1", "host": "host_2"},
159-
],
153+
"os": {
154+
"1": "os_1",
155+
"2": "os_2",
156+
"3": "os_3"
157+
},
158+
"hops": {
159+
"1": "10.0.0.0",
160+
"2": "10.0.0.1"
161+
},
160162
"osfingerprint": "os_fingerprint",
161163
"last_boot": "12345678"
162164
}

0 commit comments

Comments
 (0)