remove support for hyphentated domains
this has not been used for a long time
This commit is contained in:
@@ -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' };
|
||||
|
||||
Reference in New Issue
Block a user