2016-10-17 21:44:49 +00:00
|
|
|
'use strict';
|
|
|
|
|
2019-04-07 23:35:26 +00:00
|
|
|
var tester = require('greenlock-challenge-test');
|
2016-10-17 21:44:49 +00:00
|
|
|
|
2019-04-07 23:35:26 +00:00
|
|
|
var type = 'dns-01';
|
|
|
|
var challenger = require('greenlock-challenge-dns').create({});
|
2018-05-13 01:17:26 +00:00
|
|
|
|
2019-04-07 23:35:26 +00: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';
|
2019-04-06 08:36:52 +00:00
|
|
|
|
2019-04-07 23:35:26 +00:00
|
|
|
tester.test(type, domain, challenger).then(function () {
|
2019-04-06 08:36:52 +00:00
|
|
|
console.info("PASS");
|
|
|
|
}).catch(function (err) {
|
|
|
|
console.error("FAIL");
|
|
|
|
console.error(err);
|
2019-04-07 23:35:26 +00:00
|
|
|
process.exit(20);
|
2019-04-06 08:36:52 +00:00
|
|
|
});
|