reverseproxy: remove getAcmeApiOptions

This commit is contained in:
Girish Ramakrishnan
2022-11-17 12:39:23 +01:00
parent e3b0d3960a
commit 641752a222
2 changed files with 8 additions and 57 deletions

View File

@@ -139,34 +139,6 @@ describe('Reverse Proxy', function () {
});
});
describe('getApi - letsencrypt-prod', function () {
before(async function () {
domainCopy.tlsConfig = { provider: 'letsencrypt-prod' };
await domains.setConfig(domainCopy.domain, domainCopy, auditSource);
});
it('returns prod acme in prod cloudron', async function () {
const apiOptions = await reverseProxy._getAcmeApiOptions(domainCopy);
expect(apiOptions.prod).to.be(true);
expect(apiOptions.email).to.be(admin.email);
});
});
describe('getApi - letsencrypt-staging', function () {
before(async function () {
domainCopy.tlsConfig = { provider: 'letsencrypt-staging' };
await domains.setConfig(domainCopy.domain, domainCopy, auditSource);
});
it('returns staging acme in prod cloudron', async function () {
const apiOptions = await reverseProxy._getAcmeApiOptions(domainCopy);
expect(apiOptions.prod).to.be(false);
expect(apiOptions.email).to.be(admin.email);
});
});
describe('configureApp', function () {
before(async function () {
domainCopy.tlsConfig = { provider: 'fallback' };