caas: make fqdn part of dns and s3 credentials

This commit is contained in:
Girish Ramakrishnan
2017-11-28 16:52:52 -08:00
parent 9cdd2df696
commit 693bc094cc
5 changed files with 46 additions and 12 deletions

View File

@@ -109,7 +109,7 @@ describe('Settings', function () {
.post('/api/v1/boxes/' + config.fqdn() + '/awscredentials?token=TOKEN')
.reply(201, { credentials: { AccessKeyId: 'accessKeyId', SecretAccessKey: 'secretAccessKey', SessionToken: 'sessionToken' } });
settings.setBackupConfig({ provider: 'caas', token: 'TOKEN', format: 'tgz', prefix: 'boxid', bucket: 'bucket' }, function (error) {
settings.setBackupConfig({ provider: 'caas', fqdn: config.fqdn(), token: 'TOKEN', format: 'tgz', prefix: 'boxid', bucket: 'bucket' }, function (error) {
expect(error).to.be(null);
done();
});