set bucket and prefix to make migrate test pass

This commit is contained in:
Girish Ramakrishnan
2015-11-09 22:45:07 -08:00
parent 9c549ed4d8
commit ee5bd456e0
2 changed files with 7 additions and 2 deletions

View File

@@ -63,6 +63,8 @@ function getSignedUploadUrl(backupConfig, filename, callback) {
assert.strictEqual(typeof filename, 'string');
assert.strictEqual(typeof callback, 'function');
if (!backupConfig.bucket || !backupConfig.prefix) return new Error('Invalid configuration'); // prevent error in s3
getBackupCredentials(backupConfig, function (error, credentials) {
if (error) return callback(error);
@@ -85,6 +87,8 @@ function getSignedDownloadUrl(backupConfig, filename, callback) {
assert.strictEqual(typeof filename, 'string');
assert.strictEqual(typeof callback, 'function');
if (!backupConfig.bucket || !backupConfig.prefix) return new Error('Invalid configuration'); // prevent error in s3
getBackupCredentials(backupConfig, function (error, credentials) {
if (error) return callback(error);
@@ -108,6 +112,8 @@ function copyObject(backupConfig, from, to, callback) {
assert.strictEqual(typeof to, 'string');
assert.strictEqual(typeof callback, 'function');
if (!backupConfig.bucket || !backupConfig.prefix) return new Error('Invalid configuration'); // prevent error in s3
getBackupCredentials(backupConfig, function (error, credentials) {
if (error) return callback(error);