certs: remove caas backend

This commit is contained in:
Girish Ramakrishnan
2020-08-07 11:49:34 -07:00
parent 779ad24542
commit 6b9454100e
4 changed files with 8 additions and 62 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ const DOMAIN_0 = {
endpoint: 'http://localhost:5353'
},
fallbackCertificate: null,
tlsConfig: { provider: 'caas' }
tlsConfig: { provider: 'letsencrypt-staging' }
};
let AUDIT_SOURCE = { ip: '1.2.3.4' };
-22
View File
@@ -180,28 +180,6 @@ describe('Certificates', function () {
});
});
describe('getApi - caas', function () {
before(function (done) {
DOMAIN_0.tlsConfig = { provider: 'caas' };
async.series([
setup,
domains.update.bind(null, DOMAIN_0.domain, DOMAIN_0, AUDIT_SOURCE)
], done);
});
after(cleanup);
it('returns prod caas for prod cloudron', function (done) {
reverseProxy._getCertApi(DOMAIN_0, function (error, api, options) {
expect(error).to.be(null);
expect(api._name).to.be('caas');
expect(options).to.eql({ email: 'webmaster@cloudron.io', 'performHttpAuthorization': false, 'prod': false, 'wildcard': false });
done();
});
});
});
describe('getApi - letsencrypt-prod', function () {
before(function (done) {
DOMAIN_0.tlsConfig = { provider: 'letsencrypt-prod' };