fix(minio): support mc_path and harden sync against transient objects
This commit is contained in:
@@ -284,6 +284,7 @@ describe('configSchema — backup', () => {
|
||||
expect(result.backup.minio.enabled).toBe(false);
|
||||
expect(result.backup.minio.prefix).toBe('flynn');
|
||||
expect(result.backup.minio.secure).toBe(true);
|
||||
expect(result.backup.minio.mc_path).toBeUndefined();
|
||||
});
|
||||
|
||||
it('accepts custom backup settings', () => {
|
||||
@@ -307,6 +308,7 @@ describe('configSchema — backup', () => {
|
||||
bucket: 'flynn-backups',
|
||||
prefix: 'daily',
|
||||
secure: false,
|
||||
mc_path: '/usr/local/bin/mc',
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -325,6 +327,7 @@ describe('configSchema — backup', () => {
|
||||
expect(result.backup.minio.bucket).toBe('flynn-backups');
|
||||
expect(result.backup.minio.prefix).toBe('daily');
|
||||
expect(result.backup.minio.secure).toBe(false);
|
||||
expect(result.backup.minio.mc_path).toBe('/usr/local/bin/mc');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -940,6 +940,7 @@ const backupSchema = z.object({
|
||||
bucket: z.string().optional(),
|
||||
prefix: z.string().default('flynn'),
|
||||
secure: z.boolean().default(true),
|
||||
mc_path: z.string().optional(),
|
||||
}).default({}),
|
||||
}).default({});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user