-
Notifications
You must be signed in to change notification settings - Fork 212
/
root.e2e-spec.ts
39 lines (34 loc) · 1.01 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
import { SecRunner, SecScan } from '@sectester/runner';
import { TestType } from '@sectester/scan';
describe('/', () => {
let runner: SecRunner;
let scan: SecScan;
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(3000000)
.run({
method: 'GET',
url: `${process.env.SEC_TESTER_TARGET}`,
});
});
});
});