2019-04-07 21:55:48 +00:00
|
|
|
'use strict';
|
|
|
|
|
2019-04-07 23:23:31 +00:00
|
|
|
//var tester = require('greenlock-challenge-test');
|
|
|
|
var tester = require('./');
|
2019-04-07 21:55:48 +00:00
|
|
|
|
2019-04-07 23:23:31 +00:00
|
|
|
var type = 'http-01';
|
2019-04-07 21:55:48 +00:00
|
|
|
var challenger = require('greenlock-challenge-http').create({});
|
2019-04-07 23:23:31 +00:00
|
|
|
//var type = 'dns-01';
|
2019-04-07 21:55:48 +00:00
|
|
|
//var challenger = require('greenlock-challenge-dns').create({});
|
|
|
|
//var challenger = require('./YOUR-CHALLENGE-STRATEGY').create({});
|
2019-04-07 23:23:31 +00:00
|
|
|
//var type = 'YOUR-TYPE-01';
|
2019-04-07 21:55:48 +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-07 23:23:31 +00:00
|
|
|
//var domain = '*.example.com';
|
2019-04-07 21:55:48 +00:00
|
|
|
|
2019-04-07 23:23:31 +00:00
|
|
|
tester.test(type, domain, challenger).then(function () {
|
2019-04-07 21:55:48 +00:00
|
|
|
console.info("PASS");
|
2019-04-07 23:23:31 +00:00
|
|
|
}).catch(function (err) {
|
|
|
|
console.error("FAIL");
|
|
|
|
console.error(err);
|
|
|
|
process.exit(20);
|
2019-04-07 21:55:48 +00:00
|
|
|
});
|