@@ -710,67 +710,6 @@ async fn test_garbage_collect_index_cli() {
710710 assert_eq ! ( split_path. exists( ) , false ) ;
711711}
712712
713- #[ tokio:: test]
714- #[ cfg_attr( not( feature = "ci-test" ) , ignore) ]
715- async fn test_cmd_dry_run_delete_on_s3_localstack ( ) -> Result < ( ) > {
716- let index_id = append_random_suffix ( "test-delete-cmd--s3-localstack" ) ;
717- let test_env = create_test_env ( index_id, TestStorageType :: S3 ) ?;
718- make_command (
719- format ! (
720- "index create --config {} --index-config {}" ,
721- test_env. resource_files[ "config" ] . display( ) ,
722- test_env. resource_files[ "index_config" ] . display( )
723- )
724- . as_str ( ) ,
725- )
726- . assert ( )
727- . success ( ) ;
728-
729- ingest_docs ( test_env. resource_files [ "logs" ] . as_path ( ) , & test_env) ;
730-
731- make_command (
732- format ! (
733- "index gc --index {} --config {}" ,
734- test_env. index_id,
735- test_env. resource_files[ "config" ] . display( ) ,
736- )
737- . as_str ( ) ,
738- )
739- . assert ( )
740- . success ( )
741- . stdout ( predicate:: str:: contains (
742- "No dangling files to garbage collect" ,
743- ) ) ;
744-
745- make_command (
746- format ! (
747- "index delete --index {} --config {} --dry-run" ,
748- test_env. index_id,
749- test_env. resource_files[ "config" ] . display( ) ,
750- )
751- . as_str ( ) ,
752- )
753- . assert ( )
754- . success ( )
755- . stdout ( predicate:: str:: contains (
756- "The following files will be removed" ,
757- ) )
758- . stdout ( predicate:: str:: contains ( ".split" ) ) ;
759-
760- make_command (
761- format ! (
762- "index delete --index {} --config {}" ,
763- test_env. index_id,
764- test_env. resource_files[ "config" ] . display( ) ,
765- )
766- . as_str ( ) ,
767- )
768- . assert ( )
769- . success ( ) ;
770-
771- Ok ( ( ) )
772- }
773-
774713/// testing the api via cli commands
775714#[ tokio:: test]
776715async fn test_all_local_index ( ) {
0 commit comments