This repository was archived by the owner on Oct 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +26
-26
lines changed
hooks/declarative-subsequent-scans Expand file tree Collapse file tree 1 file changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -9,21 +9,21 @@ beforeEach(() => {
99 kind : "Scan" ,
1010 metadata : {
1111 name : "nmap-foobar.com" ,
12- annotations : { }
12+ annotations : { } ,
1313 } ,
1414 spec : {
1515 scanType : "nmap" ,
1616 parameters : "foobar.com" ,
17- cascades : { }
18- }
17+ cascades : { } ,
18+ } ,
1919 } ;
2020
2121 sslyzeCascadingRules = [
2222 {
2323 apiVersion : "cascading.experimental.securecodebox.io/v1" ,
2424 kind : "CascadingRule" ,
2525 metadata : {
26- name : "tls-scans"
26+ name : "tls-scans" ,
2727 } ,
2828 spec : {
2929 matches : {
@@ -32,23 +32,23 @@ beforeEach(() => {
3232 category : "Open Port" ,
3333 attributes : {
3434 port : 443 ,
35- service : "https"
36- }
35+ service : "https" ,
36+ } ,
3737 } ,
3838 {
3939 category : "Open Port" ,
4040 attributes : {
41- service : "https"
42- }
43- }
44- ]
41+ service : "https" ,
42+ } ,
43+ } ,
44+ ] ,
4545 } ,
4646 scanSpec : {
4747 scanType : "sslyze" ,
48- parameters : [ "--regular" , "{{$.hostOrIP}}:{{attributes.port}}" ]
49- }
50- }
51- }
48+ parameters : [ "--regular" , "{{$.hostOrIP}}:{{attributes.port}}" ] ,
49+ } ,
50+ } ,
51+ } ,
5252 ] ;
5353} ) ;
5454
@@ -61,9 +61,9 @@ test("should create subsequent scans for open HTTPS ports (NMAP findings)", () =
6161 state : "open" ,
6262 hostname : "foobar.com" ,
6363 port : 443 ,
64- service : "https"
65- }
66- }
64+ service : "https" ,
65+ } ,
66+ } ,
6767 ] ;
6868
6969 const cascadedScans = getCascadingScans (
@@ -97,9 +97,9 @@ test("Should create no subsequent scans if there are no rules", () => {
9797 state : "open" ,
9898 hostname : "foobar.com" ,
9999 port : 443 ,
100- service : "https"
101- }
102- }
100+ service : "https" ,
101+ } ,
102+ } ,
103103 ] ;
104104
105105 const cascadingRules = [ ] ;
@@ -121,9 +121,9 @@ test("should not try to do magic to the scan name if its something random", () =
121121 hostname : undefined ,
122122 ip_address : "10.42.42.42" ,
123123 port : 443 ,
124- service : "https"
125- }
126- }
124+ service : "https" ,
125+ } ,
126+ } ,
127127 ] ;
128128
129129 const cascadedScans = getCascadingScans (
@@ -160,9 +160,9 @@ test("should not start scan when the cascadingrule for it is already in the chai
160160 state : "open" ,
161161 hostname : "foobar.com" ,
162162 port : 443 ,
163- service : "https"
164- }
165- }
163+ service : "https" ,
164+ } ,
165+ } ,
166166 ] ;
167167
168168 const cascadedScans = getCascadingScans (
You can’t perform that action at this time.
0 commit comments