certbot/certbot-nginx/certbot_nginx/tests
Adrien Ferrand 821bec6997 Remove tls-sni related flags in cli. Add a deprecation warning instead. (#6853)
This PR is a part of the tls-sni-01 removal plan described in #6849.

This PR removes --tls-sni-01-port, --tls-sni-01-address and tls-sni-01/tls-sni options from --preferred-challenges. They are replace by deprecation warning, indicating that these options will be removed soon.

This deprecation, instead of complete removal, is done to avoid certbot instances to hard fail if some automated scripts still use these flags for some users.

Once this PR lands, we can remove completely theses flags in one or two release.

* Remove tls-sni related flags in cli. Add a deprecation warning instead.

* Adapt tests to cli and renewal towards tls-sni flags deprecation

* Add https_port option. Make tls_sni_01_port show a deprecation warning, but silently modify https_port if set

* Migrate last items

* Fix lint

* Update certbot/cli.py

Co-Authored-By: adferrand <adferrand@users.noreply.github.com>

* Ensure to remove all occurences of tls-sni-01

* Remove unused parameter

* Revert modifications on cli-help.txt

* Use logger.warning instead of sys.stderr

* Update the logger warning message

* Remove standalone_supported_challenges option.

* Fix order of preferred-challenges

* Remove supported_challenges property

* Fix some tests

* Fix lint

* Fix tests

* Add a changelog

* Clean code, fix test

* Update CI

* Reload

* No hard date for tls-sni removal

* Remove useless cast to list

* Update certbot/tests/renewal_test.py

Co-Authored-By: adferrand <adferrand@users.noreply.github.com>

* Add entry to the changelog

* Add entry to the changelog
2019-03-26 17:46:32 -07:00
..
testdata/etc_nginx Allow multiple add_headers directives (#6068) 2018-06-04 17:44:51 -07:00
__init__.py s/Let's Encrypt/Certbot certbot-nginx 2016-04-13 16:49:30 -07:00
configurator_test.py Remove tls sni in nginx plugin (#6857) 2019-03-18 10:22:19 -07:00
display_ops_test.py Nginx plugin wildcard support for ACMEv2 (#5619) 2018-03-01 14:05:49 -08:00
http_01_test.py [Windows] Working unit tests for certbot-nginx (#6782) 2019-02-20 16:20:16 -08:00
nginxparser_test.py Update parser to match new Nginx functionality (#6381) 2018-09-18 12:52:11 -07:00
obj_test.py Allow 'default' along with 'default_server' in Nginx (#5788) 2018-03-26 14:56:31 -07:00
parser_obj_test.py assertEquals --> assertEqual 2018-10-31 17:28:47 -07:00
parser_test.py [Windows] Working unit tests for certbot-nginx (#6782) 2019-02-20 16:20:16 -08:00
util.py Remove tls-sni related flags in cli. Add a deprecation warning instead. (#6853) 2019-03-26 17:46:32 -07:00