Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions src/backup/journey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,6 @@ describe('creates backup with valid compression config values', () => {
.withWaitForCompletion(true)
.withConfig({
CPUPercentage: 80,
ChunkSize: 512,
CompressionLevel: 'BestSpeed',
})
.do()
Expand Down Expand Up @@ -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));
});

Expand Down
1 change: 0 additions & 1 deletion src/collections/backup/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
2 changes: 1 addition & 1 deletion src/collections/backup/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down