@@ -42,7 +42,7 @@ async fn when_the_client_asks_for_the_existing_code_actions_it_receives_the_avai
4242 CodeActionOrCommand :: Command ( Command {
4343 title: "Scan base image" . to_string( ) ,
4444 command: "sysdig-lsp.execute-scan" . to_string( ) ,
45- arguments: Some ( vec![ json!( "file://dockerfile/" ) , json!( 0 ) ] )
45+ arguments: Some ( vec![ json!( "file://dockerfile/" ) , json!( 0 ) , json! ( "alpine" ) ] )
4646 } )
4747 ]
4848 ) ;
@@ -77,7 +77,7 @@ async fn when_the_client_asks_for_the_existing_code_actions_but_the_dockerfile_c
7777 CodeActionOrCommand :: Command ( Command {
7878 title: "Scan base image" . to_string( ) ,
7979 command: "sysdig-lsp.execute-scan" . to_string( ) ,
80- arguments: Some ( vec![ json!( "file://dockerfile/" ) , json!( 1 ) ] )
80+ arguments: Some ( vec![ json!( "file://dockerfile/" ) , json!( 1 ) , json! ( "ubuntu" ) ] )
8181 } )
8282 ]
8383 ) ;
@@ -115,7 +115,7 @@ async fn when_the_client_asks_for_the_existing_code_lens_it_receives_the_availab
115115 command: Some ( Command {
116116 title: "Scan base image" . to_string( ) ,
117117 command: "sysdig-lsp.execute-scan" . to_string( ) ,
118- arguments: Some ( vec![ json!( "file://dockerfile/" ) , json!( 0 ) ] )
118+ arguments: Some ( vec![ json!( "file://dockerfile/" ) , json!( 0 ) , json! ( "alpine" ) ] )
119119 } ) ,
120120 data: None
121121 }
@@ -152,7 +152,7 @@ async fn when_the_client_asks_for_the_existing_code_lens_but_the_dockerfile_cont
152152 command: Some ( Command {
153153 title: "Scan base image" . to_string( ) ,
154154 command: "sysdig-lsp.execute-scan" . to_string( ) ,
155- arguments: Some ( vec![ json!( "file://dockerfile/" ) , json!( 1 ) ] )
155+ arguments: Some ( vec![ json!( "file://dockerfile/" ) , json!( 1 ) , json! ( "ubuntu" ) ] )
156156 } ) ,
157157 data: None
158158 }
@@ -182,7 +182,11 @@ async fn when_the_client_asks_for_code_lens_in_a_compose_file_it_receives_them()
182182 command: Some ( Command {
183183 title: "Scan base image" . to_string( ) ,
184184 command: "sysdig-lsp.execute-scan" . to_string( ) ,
185- arguments: Some ( vec![ json!( "file://docker-compose.yml/" ) , json!( 2 ) ] )
185+ arguments: Some ( vec![
186+ json!( "file://docker-compose.yml/" ) ,
187+ json!( 2 ) ,
188+ json!( "nginx:latest" )
189+ ] )
186190 } ) ,
187191 data: None
188192 } ,
@@ -191,7 +195,11 @@ async fn when_the_client_asks_for_code_lens_in_a_compose_file_it_receives_them()
191195 command: Some ( Command {
192196 title: "Scan base image" . to_string( ) ,
193197 command: "sysdig-lsp.execute-scan" . to_string( ) ,
194- arguments: Some ( vec![ json!( "file://docker-compose.yml/" ) , json!( 4 ) ] )
198+ arguments: Some ( vec![
199+ json!( "file://docker-compose.yml/" ) ,
200+ json!( 4 ) ,
201+ json!( "postgres:13" )
202+ ] )
195203 } ) ,
196204 data: None
197205 }
@@ -218,7 +226,11 @@ async fn when_the_client_asks_for_code_actions_in_a_compose_file_it_receives_the
218226 vec![ CodeActionOrCommand :: Command ( Command {
219227 title: "Scan base image" . to_string( ) ,
220228 command: "sysdig-lsp.execute-scan" . to_string( ) ,
221- arguments: Some ( vec![ json!( "file://docker-compose.yml/" ) , json!( 2 ) ] )
229+ arguments: Some ( vec![
230+ json!( "file://docker-compose.yml/" ) ,
231+ json!( 2 ) ,
232+ json!( "nginx:latest" )
233+ ] )
222234 } ) ]
223235 ) ;
224236}
@@ -242,7 +254,11 @@ async fn when_the_client_asks_for_code_lens_in_a_complex_compose_yaml_file_it_re
242254 command: Some ( Command {
243255 title: "Scan base image" . to_string( ) ,
244256 command: "sysdig-lsp.execute-scan" . to_string( ) ,
245- arguments: Some ( vec![ json!( "file://compose.yaml/" ) , json!( 4 ) ] )
257+ arguments: Some ( vec![
258+ json!( "file://compose.yaml/" ) ,
259+ json!( 4 ) ,
260+ json!( "nginx:latest" )
261+ ] )
246262 } ) ,
247263 data: None
248264 } ,
@@ -251,7 +267,11 @@ async fn when_the_client_asks_for_code_lens_in_a_complex_compose_yaml_file_it_re
251267 command: Some ( Command {
252268 title: "Scan base image" . to_string( ) ,
253269 command: "sysdig-lsp.execute-scan" . to_string( ) ,
254- arguments: Some ( vec![ json!( "file://compose.yaml/" ) , json!( 9 ) ] )
270+ arguments: Some ( vec![
271+ json!( "file://compose.yaml/" ) ,
272+ json!( 9 ) ,
273+ json!( "postgres:13" )
274+ ] )
255275 } ) ,
256276 data: None
257277 } ,
@@ -260,7 +280,11 @@ async fn when_the_client_asks_for_code_lens_in_a_complex_compose_yaml_file_it_re
260280 command: Some ( Command {
261281 title: "Scan base image" . to_string( ) ,
262282 command: "sysdig-lsp.execute-scan" . to_string( ) ,
263- arguments: Some ( vec![ json!( "file://compose.yaml/" ) , json!( 13 ) ] )
283+ arguments: Some ( vec![
284+ json!( "file://compose.yaml/" ) ,
285+ json!( 13 ) ,
286+ json!( "my-api:1.0" )
287+ ] )
264288 } ) ,
265289 data: None
266290 }
0 commit comments