@@ -693,7 +693,6 @@ describe('creates backup with valid compression config values', () => {
693693 . withWaitForCompletion ( true )
694694 . withConfig ( {
695695 CPUPercentage : 80 ,
696- ChunkSize : 512 ,
697696 CompressionLevel : 'BestSpeed' ,
698697 } )
699698 . do ( )
@@ -754,44 +753,6 @@ describe('fails creating backup with invalid compression config', () => {
754753 } ) ;
755754 } ) ;
756755
757- it ( 'fails creating backup with ChunkSize too high' , ( ) => {
758- return client . backup
759- . creator ( )
760- . withIncludeClassNames ( PIZZA_CLASS_NAME )
761- . withBackend ( BACKEND )
762- . withBackupId ( BACKUP_ID )
763- . withConfig ( {
764- ChunkSize : 513 , // Max is 512
765- } )
766- . do ( )
767- . then ( ( ) => {
768- throw new Error ( 'should fail on create backup' ) ;
769- } )
770- . catch ( ( err : Error ) => {
771- expect ( err . message ) . toContain ( '422' ) ;
772- expect ( err . message ) . toContain ( 'ChunkSize' ) ;
773- } ) ;
774- } ) ;
775-
776- it ( 'fails creating backup with ChunkSize too low' , ( ) => {
777- return client . backup
778- . creator ( )
779- . withIncludeClassNames ( PIZZA_CLASS_NAME )
780- . withBackend ( BACKEND )
781- . withBackupId ( BACKUP_ID )
782- . withConfig ( {
783- ChunkSize : 1 , // Min is 2
784- } )
785- . do ( )
786- . then ( ( ) => {
787- throw new Error ( 'should fail on create backup' ) ;
788- } )
789- . catch ( ( err : Error ) => {
790- expect ( err . message ) . toContain ( '422' ) ;
791- expect ( err . message ) . toContain ( 'ChunkSize' ) ;
792- } ) ;
793- } ) ;
794-
795756 it ( 'cleans up' , ( ) => cleanupTestFood ( client ) ) ;
796757} ) ;
797758
0 commit comments