Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit f73810a

Browse files
sebiesebie
authored andcommitted
Fixed ncrack integration test
1 parent 406fa54 commit f73810a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/integration/scanner/ncrack.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ test(
66
const { categories, severities, count } = await scan(
77
"ncrack-dummy-ssh",
88
"ncrack",
9-
["--user", "root,admin", "--pass", "password,123456,THEPASSWORDYOUCREATED", "ssh://dummy-ssh.demo-apps.svc"],
9+
["-v","--user=root,admin", "--pass=THEPASSWORDYOUCREATED,12345", "ssh://dummy-ssh.demo-apps.svc"],
1010
90
1111
);
1212

1313
expect(count).toBe(1);
14-
expect(categories).toMatchInlineSnapshot(`
15-
Object {
14+
expect(categories).toEqual(
15+
{
1616
"Discovered Credentials": 1,
1717
}
18-
`);
19-
expect(severities).toMatchInlineSnapshot(`
20-
Object {
18+
);
19+
expect(severities).toEqual(
20+
{
2121
"high": 1,
2222
}
23-
`);
23+
);
2424
},
2525
3 * 60 * 1000
2626
);

0 commit comments

Comments
 (0)