diff --git a/src/backup/journey.test.ts b/src/backup/journey.test.ts index 6d7d9f8c..8e40d5b1 100644 --- a/src/backup/journey.test.ts +++ b/src/backup/journey.test.ts @@ -693,7 +693,6 @@ describe('creates backup with valid compression config values', () => { .withWaitForCompletion(true) .withConfig({ CPUPercentage: 80, - ChunkSize: 512, CompressionLevel: 'BestSpeed', }) .do() @@ -754,44 +753,6 @@ describe('fails creating backup with invalid compression config', () => { }); }); - it('fails creating backup with ChunkSize too high', () => { - return client.backup - .creator() - .withIncludeClassNames(PIZZA_CLASS_NAME) - .withBackend(BACKEND) - .withBackupId(BACKUP_ID) - .withConfig({ - ChunkSize: 513, // Max is 512 - }) - .do() - .then(() => { - throw new Error('should fail on create backup'); - }) - .catch((err: Error) => { - expect(err.message).toContain('422'); - expect(err.message).toContain('ChunkSize'); - }); - }); - - it('fails creating backup with ChunkSize too low', () => { - return client.backup - .creator() - .withIncludeClassNames(PIZZA_CLASS_NAME) - .withBackend(BACKEND) - .withBackupId(BACKUP_ID) - .withConfig({ - ChunkSize: 1, // Min is 2 - }) - .do() - .then(() => { - throw new Error('should fail on create backup'); - }) - .catch((err: Error) => { - expect(err.message).toContain('422'); - expect(err.message).toContain('ChunkSize'); - }); - }); - it('cleans up', () => cleanupTestFood(client)); }); diff --git a/src/collections/backup/client.ts b/src/collections/backup/client.ts index 54f0503e..8f4f6bf4 100644 --- a/src/collections/backup/client.ts +++ b/src/collections/backup/client.ts @@ -118,7 +118,6 @@ export const backup = (connection: Connection): Backup => { } if (args.config) { builder = builder.withConfig({ - ChunkSize: args.config.chunkSize, CompressionLevel: args.config.compressionLevel, CPUPercentage: args.config.cpuPercentage, }); diff --git a/src/collections/backup/types.ts b/src/collections/backup/types.ts index f24bc8d8..f92ef188 100644 --- a/src/collections/backup/types.ts +++ b/src/collections/backup/types.ts @@ -31,7 +31,7 @@ export type BackupReturn = BackupStatusReturn & { /** Configuration options available when creating a backup */ export type BackupConfigCreate = { - /** The size of the chunks to use for the backup. */ + /** Deprecated: This parameter no longer has any effect. (The size of the chunks to use for the backup.) */ chunkSize?: number; /** The standard of compression to use for the backup. */ compressionLevel?: BackupCompressionLevel;