certbot/certbot-nginx/certbot_nginx/tests
ohemorange 8b5d6879cc Create a new server block when making server block ssl (#5220)
* create_new_vhost_from_default --> duplicate_vhost

* add source_path property

* set source path for duplicated vhost

* change around logic of where making ssl happens

* don't add listen 80 to newly created ssl block

* cache vhosts list

* remove source path

* add redirect block if we created a new server block

* Remove listen directives when making server block ssl

* Reset vhost cache on parser load

* flip connected pointer direction for finding newly made server block to match previous redirect search constraints

* also test for new redirect block styles

* fix contains_list and test redirect blocks

* update lint, parser, and obj tests

* reset new vhost (fixing previous bug) and move removing default from addrs under if statement

* reuse and update newly created ssl server block when appropriate, and update unit tests

* append newly created server blocks to file instead of inserting directly after, so we don't have to update other vhosts' paths

* add coverage for NO_IF_REDIRECT_COMMENT_BLOCK

* add coverage for parser load calls

* replace some double quotes with single quotes

* replace backslash continuations with parentheses

* update docstrings

* switch to only creating a new block on redirect enhancement, including removing the get_vhosts cache

* update configurator tests

* update obj test

* switch delete_default default for duplicate_vhost
2017-12-07 09:48:54 -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 Create a new server block when making server block ssl (#5220) 2017-12-07 09:48:54 -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 Revert "Nginx reversion (#5299)" (#5305) 2017-12-06 17:45:20 -08:00
util.py Fix nginx --dry-run (#4889) 2017-06-30 08:10:55 -04:00