2019-04-06 01:13:05 -06:00
|
|
|
'use strict';
|
|
|
|
|
2019-04-07 17:31:03 -06:00
|
|
|
var tester = require('greenlock-challenge-test');
|
2019-04-06 01:13:05 -06:00
|
|
|
|
2019-04-07 17:31:03 -06:00
|
|
|
var type = 'http-01';
|
|
|
|
//var challenger = require('greenlock-challenge-http').create({});
|
|
|
|
var challenger = require('./').create({});
|
2019-04-06 01:13:05 -06:00
|
|
|
|
2019-04-07 17:31:03 -06: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 01:13:05 -06:00
|
|
|
|
2019-04-07 17:31:03 -06:00
|
|
|
tester.test(type, domain, challenger).then(function () {
|
2019-04-06 01:13:05 -06:00
|
|
|
console.info("PASS");
|
|
|
|
}).catch(function (err) {
|
|
|
|
console.error("FAIL");
|
|
|
|
console.error(err);
|
2019-04-06 02:17:56 -06:00
|
|
|
process.exit(19);
|
2019-04-06 01:13:05 -06:00
|
|
|
});
|