Enable tests to run with pebble as well as with the staging server
Hitting the Let’s Encrypt staging server while running tests (for our purposes, we run unit/integration/functional tests together and I don’t see a reason to separate them for this module) slows down the process and can potentially hit the staging server rate limits (encountered for new Account calls). Also, and perhaps most importantly in terms of ease of testing, using the staging server requires that the development machine be made available via public URLs. This requires using a service like ngrok or running the tests on a VPS. While I do the former, it should not be required of developers who want to contribute a fix, etc., in the future to jump through such Herculean hoops just to help out.
-
Add 'pebble' mode alongside production and staging as a valid mode to Auto Encrypt configuration -
Add separate npm test tasks for running tests on pebble vs staging -
Integrate pebble into repository so tests can be run without any configuration (see Node Pebble)