@@ -140,14 +140,14 @@ test("Should create subsequent scans for open HTTP ports (NMAP findings)", async
140140
141141 expect ( startSubsequentSecureCodeBoxScan ) . toHaveBeenNthCalledWith ( 5 , {
142142 name : "nikto-80-foobar.com" ,
143- parameters : [ "-h" , "http:// foobar.com" , "-p" , "80" , "-Tuning" , "1,2,3,5,7,b" ] ,
143+ parameters : [ "-h" , "foobar.com" , "-p" , "80" , "-Tuning" , "1,2,3,5,7,b" ] ,
144144 parentScan : { metadata : { labels : { foo : "bar" } } } ,
145145 scanType : "nikto" ,
146146 } ) ;
147147 // even if the HTTP port is not running at port 80 a corresponding Nikto scan should be created if a HTTP service is found by nmap
148148 expect ( startSubsequentSecureCodeBoxScan ) . toHaveBeenNthCalledWith ( 6 , {
149149 name : "nikto-3000-example.com" ,
150- parameters : [ "-h" , "http:// example.com" , "-p" , "3000" , "-Tuning" , "1,2,3,5,7,b" ] ,
150+ parameters : [ "-h" , "example.com" , "-p" , "3000" , "-Tuning" , "1,2,3,5,7,b" ] ,
151151 parentScan : { metadata : { labels : { foo : "bar" } } } ,
152152 scanType : "nikto" ,
153153 } ) ;
@@ -665,7 +665,7 @@ test("Should create subsequent scans for Service which are running in custom por
665665 } ) ;
666666 expect ( startSubsequentSecureCodeBoxScan ) . toHaveBeenNthCalledWith ( 14 , {
667667 name : "nikto-8000-http.example.com" ,
668- parameters : [ "-h" , "http://http .example.com" , "-p" , "8000" , "-Tuning" , "1,2,3,5,7,b" ] ,
668+ parameters : [ "-h" , "http.example.com" , "-p" , "8000" , "-Tuning" , "1,2,3,5,7,b" ] ,
669669 parentScan : { metadata : { labels : { foo : "bar" } } } ,
670670 scanType : "nikto" ,
671671 } ) ;
0 commit comments