certbot/certbot-compatibility-test/nginx
ohemorange e023f889ff Make the contents of the nginx plugin private (#7589)
Part of #5775.

* Create _internal folder certbot-nginx

* Move configurator.py to _internal

* Move constants.py to _internal

* Move display_ops.py to _internal

* Move http_01.py to _internal

* Move nginxparser.py to _internal

* Move obj.py to _internal

* Move parser_obj.py to _internal

* Move parser.py to _internal

* Update location and references for tls_configs

* exclude parser_obj from coverage
2019-11-25 14:30:24 -08:00
..
nginx-roundtrip-testdata Fix nginx parser (#4296) 2017-03-24 19:45:53 -07:00
README Initial version of nginx parser roundtrip test 2016-07-11 13:58:21 -07:00
roundtrip.py Make the contents of the nginx plugin private (#7589) 2019-11-25 14:30:24 -08:00

Eventually there will also be a compatibility test here like the Apache one.

Right now, this is data for the roundtrip test (checking that the parser
can parse each file and that the reserialized config file it generates is
identical to the original).

If run in a virtualenv or otherwise so that certbot_nginx can be imported,
the roundtrip test can run as

python roundtrip.py nginx-roundtrip-testdata

It gives exit status 0 for success and 1 if at least one parse or roundtrip
failure occurred.


The directory nginx-roundtrip-testdata includes some config files that were
contributed to our project as well as most of the configs linked from

https://www.nginx.com/resources/wiki/start/

Some exceptions that were skipped are

https://www.nginx.com/resources/wiki/start/topics/recipes/moinmoin/
https://www.nginx.com/resources/wiki/start/topics/examples/SSL-Offloader/ (not much nginx configuration)
https://www.nginx.com/resources/wiki/start/topics/examples/xsendfile/ (likewise)
https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/
https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/