Add --dns-server option in run_acme_server (#7722)

Fixes #7717

This PR adds a `--dns-server` option to the `run_acme_server` test tool, in order to provide an arbitrary DNS server to Pebble or Boulder for the integration tests.

I also take this occasion to make `run_acme_server` a real CLI tool using argparse, and set the `--server-type` (default `pebble`) option as well.

* Set --dns-server flag in run_acme_server

* Default to pebble

* Add documentation

* Configure also Boulder
This commit is contained in:
Adrien Ferrand
2020-11-12 15:31:32 -08:00
committed by GitHub
parent 2132cf7f04
commit 553d3279c6
2 changed files with 44 additions and 18 deletions
+4 -1
View File
@@ -169,7 +169,7 @@ To do so you need:
- Docker installed, and a user with access to the Docker client,
- an available `local copy`_ of Certbot.
The virtual environment set up with `python tools/venv3.py` contains two commands
The virtual environment set up with `python tools/venv3.py` contains two CLI tools
that can be used once the virtual environment is activated:
.. code-block:: shell
@@ -180,6 +180,9 @@ that can be used once the virtual environment is activated:
- Press CTRL+C to stop this instance.
- This instance is configured to validate challenges against certbot executed locally.
.. note:: Some options are available to tweak the local ACME server. You can execute
``run_acme_server --help`` to see the inline help of the ``run_acme_server`` tool.
.. code-block:: shell
certbot_test [ARGS...]