remove support for hyphentated domains

this has not been used for a long time
This commit is contained in:
Girish Ramakrishnan
2020-08-15 18:40:59 -07:00
parent 2d607b394c
commit 510121bf54
6 changed files with 12 additions and 109 deletions

View File

@@ -41,7 +41,7 @@ describe('Certificates', function () {
describe('validateCertificate', function () {
let foobarDomain = {
domain: 'foobar.com',
config: { hypenatedSubdomains: false }
config: {}
};
let amazingDomain = {
@@ -140,7 +140,7 @@ describe('Certificates', function () {
});
});
describe('generateFallbackCertificiate - non-hyphenated', function () {
describe('generateFallbackCertificiate', function () {
let domainObject = {
domain: 'cool.com',
config: {}
@@ -159,27 +159,6 @@ describe('Certificates', function () {
});
});
describe('generateFallbackCertificiate - hyphenated', function () {
let domainObject = {
domain: 'customer.cool.com',
config: { hyphenatedSubdomains: true }
};
let result;
it('can generate fallback certs', function () {
result = reverseProxy.generateFallbackCertificateSync(domainObject);
expect(result).to.be.ok();
expect(result.error).to.be(null);
});
it('can validate the certs', function () {
expect(reverseProxy.validateCertificate('foo', domainObject, result)).to.be(null);
expect(reverseProxy.validateCertificate('', domainObject, result)).to.be(null);
expect(reverseProxy.validateCertificate('foo', { domain: 'customer.cool.com', config: {} }, result)).to.be.an(Error);
});
});
describe('getApi - letsencrypt-prod', function () {
before(function (done) {
DOMAIN_0.tlsConfig = { provider: 'letsencrypt-prod' };