diff --git a/test/.eslintrc b/test/.eslintrc new file mode 100644 index 0000000000..9b17d289f2 --- /dev/null +++ b/test/.eslintrc @@ -0,0 +1,5 @@ +{ + "rules": { + "quotes": ["warn", "single"] + } +} diff --git a/test/ssh.test.js b/test/ssh.test.js index d8807c37db..4d37191bba 100644 --- a/test/ssh.test.js +++ b/test/ssh.test.js @@ -1,15 +1,15 @@ const { startSecurityTest, Time } = require('./sdk'); test( - 'finds a few low severity findigns for securecodebox.io', + 'finds a few low severity findings for securecodebox.io', async () => { const securityTest = await startSecurityTest({ - context: 'securecodebox.io tls', + context: 'www.iteratec.de ssh', metaData: {}, name: 'ssh', target: { - name: 'securecodebox.io tls', - location: 'securecodebox.io', + name: 'www.iteratec.de ssh', + location: 'www.iteratec.de', attributes: {}, }, }); @@ -28,7 +28,6 @@ test( expect(findings).toContainEqual({ category: 'SSH Service', - description: undefined, name: 'SSH Service Information', osi_layer: 'NETWORK', severity: 'INFORMATIONAL', @@ -36,16 +35,8 @@ test( expect(findings).toContainEqual({ category: 'SSH Policy Violation', - description: 'Deprecated / discouraged SSH key algorithms are used', - name: 'Insecure SSH Key Algorithms', - osi_layer: 'NETWORK', - severity: 'MEDIUM', - }); - - expect(findings).toContainEqual({ - category: 'SSH Policy Violation', - description: 'Deprecated / discouraged SSH MAC algorithms are used', - name: 'Insecure SSH MAC Algorithms', + description: 'Discouraged SSH authentication methods are used', + name: 'Discouraged SSH authentication methods', osi_layer: 'NETWORK', severity: 'MEDIUM', }); @@ -53,8 +44,7 @@ test( expect( findings .filter(({ name }) => name !== 'SSH Service Information') - .filter(({ name }) => name !== 'Insecure SSH Key Algorithms') - .filter(({ name }) => name !== 'Insecure SSH MAC Algorithms') + .filter(({ name }) => name !== 'Discouraged SSH authentication methods') ).toEqual([]); }, 2 * Time.Minute diff --git a/test/sslyze.test.js b/test/sslyze.test.js index e3a8abf093..dd3c83ad66 100644 --- a/test/sslyze.test.js +++ b/test/sslyze.test.js @@ -52,16 +52,6 @@ test( category: 'Resumption', severity: 'INFORMATIONAL', }); - expect(findings).toContainEqual({ - name: 'TLSv1 supported', - category: 'TLSv1', - severity: 'LOW', - }); - expect(findings).toContainEqual({ - name: 'TLSv1.1 supported', - category: 'TLSv1.1', - severity: 'INFORMATIONAL', - }); expect(findings).toContainEqual({ name: 'TLSv1.2 supported', category: 'TLSv1.2',