certbot/certbot-apache/certbot_apache/tests
Joona Hoikkala 7bff0a02e4 Make Apache control script and binary paths configurable on command line (#6238)
This PR adds two new command line parameters, --apache-ctlpath and --apache-binpath both of which are used to construct commands that we shell out for.

The way that we previously fetched values either from Certbot configuration object or the dictionary of distribution based constants is now also unified, and the active options are parsed in prepare() to make it easier to override needed values for the distributions needing this behavior.

Fixes: #5338

* Added the command line options and parsing

* Refactor existing code

* Distro override updates

* Handle vhost_root from cli

* Fix compatibility tests

* Add comment about changes to command line arguments

* Check None properly

* Made help texts consistent

* Keep the old defaults

* Move to shorter CLI parameter names

* No need for specific bin path, nor apache_cmd anymore

* Make sure that we use user provided vhost-root value

* Fix alt restart commands in overrides

* Fix version_cmd defaults in overrides

* Fix comparison

* Remove cruft, and use configuration object for parser parameter
2018-08-02 08:17:38 -07:00
..
apache-conf-files Add Python 3.7 tests (#6179) 2018-07-06 19:08:40 +03:00
testdata Remove unnecessary dotfiles (#6151) 2018-06-27 09:32:53 -07:00
__init__.py s/Let's Encrypt/Certbot certbot-apache 2016-04-13 16:36:53 -07:00
augeas_configurator_test.py Switch from nose to pytest (#5282) 2017-12-01 10:59:55 -08:00
autohsts_test.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
centos_test.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
complex_parsing_test.py Distribution specific override functionality based on class inheritance (#5202) 2017-12-04 11:49:18 -08:00
configurator_test.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
debian_test.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
display_ops_test.py Apache plugin wildcard support for ACMEv2 (#5608) 2018-02-28 11:31:47 -08:00
entrypoint_test.py Distribution specific override functionality based on class inheritance (#5202) 2017-12-04 11:49:18 -08:00
gentoo_test.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
http_01_test.py Enable Apache VirtualHost for HTTP challenge validation if not enabled already (#6268) 2018-08-01 12:00:47 -07:00
obj_test.py Test coverage & fix 2016-06-25 12:06:43 -07:00
parser_test.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
tls_sni_01_test.py Add basic HTTP01 support to Apache 2018-01-10 23:35:09 -08:00
util.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00