Make domains.fqdn take config and domain separately

This way it can be used in the dns backends which don't have the domain object
This commit is contained in:
Girish Ramakrishnan
2019-01-04 14:04:12 -08:00
parent 635557ca45
commit 16c1622b1f
5 changed files with 22 additions and 18 deletions

View File

@@ -90,7 +90,7 @@ describe('Certificates', function () {
});
it('does not allow cert without matching domain', function () {
expect(reverseProxy.validateCertificate('', { domain: 'cloudron.io' }, { cert: validCert0, key: validKey0 })).to.be.an(Error);
expect(reverseProxy.validateCertificate('', { domain: 'cloudron.io', config: {} }, { cert: validCert0, key: validKey0 })).to.be.an(Error);
expect(reverseProxy.validateCertificate('cloudron.io', foobarDomain, { cert: validCert0, key: validKey0 })).to.be.an(Error);
});