Add backups.testProviderConfig
fields like format/retention won't be validated here since it's only testing the access credentials
This commit is contained in:
@@ -1463,7 +1463,7 @@ function importApp(appId, data, auditSource, callback) {
|
||||
if (error) return callback(error);
|
||||
|
||||
// TODO: make this smarter to do a read-only test and check if the file exists in the storage backend
|
||||
const testBackupConfig = backupConfig ? backups.testConfig.bind(null, backupConfig) : (next) => next();
|
||||
const testBackupConfig = backupConfig ? backups.testProviderConfig.bind(null, backupConfig) : (next) => next();
|
||||
|
||||
testBackupConfig(function (error) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user