more test fixes
This commit is contained in:
@@ -46,14 +46,10 @@ const MANIFEST = {
|
||||
const DOMAIN = {
|
||||
domain: 'example.com',
|
||||
zoneName: 'example.com',
|
||||
provider: 'route53',
|
||||
config: {
|
||||
accessKeyId: 'accessKeyId',
|
||||
secretAccessKey: 'secretAccessKey',
|
||||
endpoint: 'http://localhost:5353'
|
||||
},
|
||||
provider: 'noop',
|
||||
config: {},
|
||||
fallbackCertificate: null,
|
||||
tlsConfig: { provider: 'letsencrypt-staging' },
|
||||
tlsConfig: { provider: 'fallback' },
|
||||
wellKnown: null
|
||||
};
|
||||
|
||||
|
||||
@@ -193,6 +193,12 @@ describe('Certificates', function () {
|
||||
});
|
||||
|
||||
describe('configureApp', function () {
|
||||
before(function (done) {
|
||||
DOMAIN_0.tlsConfig = { provider: 'fallback' };
|
||||
|
||||
domains.update(DOMAIN_0.domain, DOMAIN_0, AUDIT_SOURCE, done);
|
||||
});
|
||||
|
||||
it('configure nginx correctly', function (done) {
|
||||
reverseProxy.configureApp(APP, AUDIT_SOURCE, function (error) {
|
||||
expect(fs.existsSync(paths.NGINX_APPCONFIG_DIR + '/' + APP.id + '.conf'));
|
||||
|
||||
Reference in New Issue
Block a user