-
Notifications
You must be signed in to change notification settings - Fork 199
/
root.e2e-spec.ts
41 lines (35 loc) · 1.03 KB
/
root.e2e-spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { SecRunner } from '@sectester/runner';
import { TestType } from '@sectester/scan';
describe('/', () => {
const timeout = 600000;
jest.setTimeout(timeout);
let runner: SecRunner;
beforeEach(async () => {
runner = new SecRunner({ hostname: process.env.BRIGHT_CLUSTER });
await runner.init();
});
afterEach(() => runner.clear());
describe('GET /', () => {
it('should not access common files', async () => {
await runner
.createScan({ tests: [TestType.COMMON_FILES], name: 'COMMON_FILES' })
.timeout(3000000)
.run({
method: 'GET',
url: `${process.env.SEC_TESTER_TARGET}`
});
});
it('should contain proper SSL/TLS ciphers and configurations', async () => {
await runner
.createScan({
tests: [TestType.INSECURE_TLS_CONFIGURATION],
name: 'INSECURE_TLS_CONFIGURATION'
})
.timeout(timeout)
.run({
method: 'GET',
url: `${process.env.SEC_TESTER_TARGET}`
});
});
});
});