reverseproxy: remove getAcmeApiOptions
This commit is contained in:
@@ -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' };
|
||||
|
||||
Reference in New Issue
Block a user