add settings.setTlsConfig

This commit is contained in:
Girish Ramakrishnan
2015-12-11 22:32:34 -08:00
parent e0a56f75c3
commit 9d91340223
4 changed files with 39 additions and 2 deletions

View File

@@ -100,6 +100,21 @@ describe('Settings', function () {
});
});
it('can set tls config', function (done) {
settings.setTlsConfig({ provider: 'caas' }, function (error) {
expect(error).to.be(null);
done();
});
});
it('can get tls config', function (done) {
settings.getTlsConfig(function (error, dnsConfig) {
expect(error).to.be(null);
expect(dnsConfig.provider).to.be('caas');
done();
});
});
it('can set backup config', function (done) {
settings.setBackupConfig({ provider: 'caas', token: 'TOKEN' }, function (error) {
expect(error).to.be(null);