@@ -181,45 +181,45 @@ test("should properly parse a nmap xml with missing service information", async
181181 const findings = await parse ( xmlContent ) ;
182182 await expect ( validateParser ( findings ) ) . resolves . toBeUndefined ( ) ;
183183 expect ( findings ) . toMatchInlineSnapshot ( `
184- Array [
185- Object {
186- "attributes": Object {
187- "hostname": "example.com",
188- "ip_address": "93.184.216.34",
189- "mac_address": null,
190- "method": undefined,
191- "operating_system": null,
192- "port": 10250,
193- "protocol": "tcp",
194- "scripts": null,
195- "service": undefined,
196- "serviceProduct": null,
197- "serviceVersion": null,
198- "state": "filtered",
199- "tunnel": null,
200- },
201- "category": "Open Port",
202- "description": "Port 10250 is filtered using tcp protocol.",
203- "location": "tcp://93.184.216.34:10250",
204- "name": undefined ,
205- "osi_layer": "NETWORK",
206- "severity": "INFORMATIONAL",
207- },
208- Object {
209- "attributes": Object {
210- "hostname": "example.com",
211- "ip_address": "93.184.216.34",
212- "operating_system": null,
213- },
214- "category": "Host",
215- "description": "Found a host",
216- "location": "example.com",
217- "name": "Host: example.com",
218- "osi_layer": "NETWORK",
219- "severity": "INFORMATIONAL",
220- },
221- ]
222- `) ;
184+ Array [
185+ Object {
186+ "attributes": Object {
187+ "hostname": "example.com",
188+ "ip_address": "93.184.216.34",
189+ "mac_address": null,
190+ "method": undefined,
191+ "operating_system": null,
192+ "port": 10250,
193+ "protocol": "tcp",
194+ "scripts": null,
195+ "service": undefined,
196+ "serviceProduct": null,
197+ "serviceVersion": null,
198+ "state": "filtered",
199+ "tunnel": null,
200+ },
201+ "category": "Open Port",
202+ "description": "Port 10250 is filtered using tcp protocol.",
203+ "location": "tcp://93.184.216.34:10250",
204+ "name": "Open Port: 10250" ,
205+ "osi_layer": "NETWORK",
206+ "severity": "INFORMATIONAL",
207+ },
208+ Object {
209+ "attributes": Object {
210+ "hostname": "example.com",
211+ "ip_address": "93.184.216.34",
212+ "operating_system": null,
213+ },
214+ "category": "Host",
215+ "description": "Found a host",
216+ "location": "example.com",
217+ "name": "Host: example.com",
218+ "osi_layer": "NETWORK",
219+ "severity": "INFORMATIONAL",
220+ },
221+ ]
222+ ` ) ;
223223} ) ;
224224
225225test ( "Should properly parse a nmap xml with script specific SMB findings" , async ( ) => {
0 commit comments