certbot/certbot-nginx/certbot_nginx/tests
ohemorange 2cb9d9e2aa Implement HTTP-01 challenge for Nginx (#5414)
* get http01 challenge working

* support multiple challenge types in configurator.py

* update existing nginx tests

* lint

* refactor NginxHttp01 and NginxTlsSni01 to both now  inherit from NginxChallengePerformer

* remove TODO

* challenges_test tests with both tlssni01 and http01

* Make challenges.py more abstract to make lint happier

* add pylint disables to the tests to make pylint happier about the inheritance and abstraction situation

* no need to cover raise NotImplementedError() lines

* python3 compatibility

* test that http01 perform is called

* only remove ssl from addresses during http01

* Initialize addrs_to_add

* Change Nginx http01 to modify server block so the site doesn't stop serving while getting a cert

* pass existing unit tests

* rename sni --> http01 in unit tests

* lint

* fix configurator test

* select an http block instead of https

* properly test for port number

* use domains that have matching addresses

* remove debugger

* remove access_log and error_log cruft that wasn't being executed

* continue to return None from choose_redirect_vhost when create_if_no_match is False

* add nginx integration test
2018-01-11 17:06:23 -08:00
..
testdata/etc_nginx Revert "Nginx reversion (#5299)" (#5305) 2017-12-06 17:45:20 -08:00
__init__.py s/Let's Encrypt/Certbot certbot-nginx 2016-04-13 16:49:30 -07:00
configurator_test.py Implement HTTP-01 challenge for Nginx (#5414) 2018-01-11 17:06:23 -08:00
http_01_test.py Implement HTTP-01 challenge for Nginx (#5414) 2018-01-11 17:06:23 -08:00
nginxparser_test.py Add additional Nginx parsing test case (#4440) 2017-03-30 07:47:36 -07:00
obj_test.py Create a new server block when making server block ssl (#5220) 2017-12-07 09:48:54 -08:00
parser_test.py Create a new server block when making server block ssl (#5220) 2017-12-07 09:48:54 -08:00
tls_sni_01_test.py Factor out common challengeperformer logic (#5413) 2018-01-10 18:34:45 -08:00
util.py Implement HTTP-01 challenge for Nginx (#5414) 2018-01-11 17:06:23 -08:00