File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed
crates/q_cli/src/cli/chat/tools Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -189,41 +189,4 @@ mod tests {
189189 panic ! ( "Expected JSON output" ) ;
190190 }
191191 }
192-
193- #[ tokio:: test]
194- #[ ignore = "not in ci" ]
195- async fn test_aws_command_with_params ( ) {
196- let ctx = Context :: new_fake ( ) ;
197-
198- let v = serde_json:: json!( {
199- "service_name" : "dynamodb" ,
200- "operation_name" : "get-item" ,
201- "parameters" : {
202- "--table-name" : "AGI_MEMORY" ,
203- "--key" : r#"{"memory_id": {"S": "49d649c7-b772-4578-968c-c20240844a4a"}}"#
204- } ,
205- "region" : "us-west-2" ,
206- "profile_name" : "default" ,
207- "label" : ""
208- } ) ;
209- let out = serde_json:: from_value :: < UseAws > ( v)
210- . unwrap ( )
211- . invoke ( & ctx, & mut std:: io:: stdout ( ) )
212- . await
213- . unwrap ( ) ;
214-
215- if let OutputKind :: Json ( json) = out. output {
216- // depending on where the test is ran we might get different outcome here but it does
217- // not mean the tool is not working
218- let exit_status = json. get ( "exit_status" ) . unwrap ( ) ;
219- if exit_status == 0 {
220- assert_eq ! ( json. get( "stderr" ) . unwrap( ) , "" ) ;
221- println ! ( "query result: {}" , json. get( "stdout" ) . unwrap( ) ) ;
222- } else {
223- assert_ne ! ( json. get( "stderr" ) . unwrap( ) , "" ) ;
224- }
225- } else {
226- panic ! ( "Expected JSON output" ) ;
227- }
228- }
229192}
You can’t perform that action at this time.
0 commit comments