26 lines
740 B
JavaScript
Raw Permalink Normal View History

2016-08-09 23:20:19 -04:00
'use strict';
var tester = require('greenlock-challenge-test');
2016-08-09 23:20:19 -04:00
var challenger = require('./').create({});
2016-08-09 23:20:19 -04:00
// The dry-run tests can pass on, literally, 'example.com'
// but the integration tests require that you have control over the domain
var domain = 'example.com';
var wildname = '*.example.com';
2016-08-09 23:20:19 -04:00
tester.test('http-01', domain, challenger).then(function () {
console.info("PASS http-01");
return tester.test('dns-01', wildname, challenger).then(function () {
console.info("PASS dns-01");
});
2019-04-05 23:11:00 -06:00
}).then(function () {
return tester.test('fake-01', domain, challenger).then(function () {
console.info("PASS fake-01");
});
2019-04-05 23:11:00 -06:00
}).catch(function (err) {
console.error("FAIL");
console.error(err);
process.exit(20);
2016-08-09 23:20:19 -04:00
});