@@ -11,7 +11,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
11
11
const jsonOutput = JSON . parse ( stdout ) ;
12
12
expect ( jsonOutput . ok ) . toEqual ( true ) ;
13
13
expect ( code ) . toEqual ( 0 ) ;
14
- } , 10000 ) ;
14
+ } , 30000 ) ;
15
15
it ( 'should find all vulns including app vulns' , async ( ) => {
16
16
const { code, stdout } = await runSnykCLI (
17
17
`container test docker-archive:test/fixtures/container-projects/os-packages-and-app-vulns.tar --json --experimental` ,
@@ -23,7 +23,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
23
23
expect ( jsonOutput [ 1 ] . ok ) . toEqual ( false ) ;
24
24
expect ( jsonOutput [ 1 ] . uniqueCount ) . toBeGreaterThan ( 0 ) ;
25
25
expect ( code ) . toEqual ( 1 ) ;
26
- } , 10000 ) ;
26
+ } , 30000 ) ;
27
27
it ( 'should find nothing when app-vulns are explicitly disabled' , async ( ) => {
28
28
const { code, stdout } = await runSnykCLI (
29
29
`container test docker-archive:test/fixtures/container-projects/os-packages-and-app-vulns.tar --json --exclude-app-vulns` ,
@@ -34,7 +34,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
34
34
expect ( jsonOutput . ok ) . toEqual ( false ) ;
35
35
expect ( jsonOutput . uniqueCount ) . toBeGreaterThan ( 0 ) ;
36
36
expect ( code ) . toEqual ( 1 ) ;
37
- } , 10000 ) ;
37
+ } , 30000 ) ;
38
38
it ( 'should find nothing on conflicting app-vulns flags' , async ( ) => {
39
39
// if both flags are set, --exclude-app-vulns should take precedence and
40
40
// disable it.
@@ -47,15 +47,15 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
47
47
expect ( jsonOutput . ok ) . toEqual ( false ) ;
48
48
expect ( jsonOutput . uniqueCount ) . toBeGreaterThan ( 0 ) ;
49
49
expect ( code ) . toEqual ( 1 ) ;
50
- } , 10000 ) ;
50
+ } , 30000 ) ;
51
51
52
52
it ( 'should show app vulns tip when available' , async ( ) => {
53
53
const { stdout } = await runSnykCLI (
54
54
`container test docker-archive:test/fixtures/container-projects/os-packages-and-app-vulns.tar` ,
55
55
) ;
56
56
57
57
expect ( stdout ) . toContain ( `Testing docker-archive:test` ) ;
58
- } , 10000 ) ;
58
+ } , 30000 ) ;
59
59
60
60
it ( 'should find all vulns without experimental flag' , async ( ) => {
61
61
const { code, stdout } = await runSnykCLI (
@@ -70,7 +70,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
70
70
expect ( applications [ 0 ] . uniqueCount ) . toBeGreaterThan ( 0 ) ;
71
71
expect ( applications [ 0 ] . ok ) . toEqual ( false ) ;
72
72
expect ( code ) . toEqual ( 1 ) ;
73
- } , 10000 ) ;
73
+ } , 30000 ) ;
74
74
it ( 'should return only dockerfile instructions vulnerabilities when excluding base image vulns' , async ( ) => {
75
75
const dockerfilePath = path . normalize (
76
76
'test/fixtures/container-projects/Dockerfile-vulns' ,
@@ -84,7 +84,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
84
84
expect ( jsonOutput . ok ) . toEqual ( false ) ;
85
85
expect ( jsonOutput . uniqueCount ) . toBeGreaterThan ( 0 ) ;
86
86
expect ( code ) . toEqual ( 1 ) ;
87
- } , 10000 ) ;
87
+ } , 30000 ) ;
88
88
89
89
it ( 'finds dockerfile instructions and app vulns when excluding base image vulns' , async ( ) => {
90
90
const dockerfilePath = path . normalize (
@@ -101,7 +101,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
101
101
expect ( jsonOutput . applications [ 0 ] . ok ) . toEqual ( false ) ;
102
102
expect ( jsonOutput . applications [ 0 ] . uniqueCount ) . toBeGreaterThan ( 0 ) ;
103
103
expect ( code ) . toEqual ( 1 ) ;
104
- } , 10000 ) ;
104
+ } , 30000 ) ;
105
105
} ) ;
106
106
107
107
describe ( 'container test projects behavior with --json flag' , ( ) => {
0 commit comments