diff options
author | Adrien Ferrand <adferrand@users.noreply.github.com> | 2021-01-14 01:38:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 01:38:57 +0300 |
commit | c0917a0302d10c9aca35f294b864499616b1af59 (patch) | |
tree | 714519872ac067119556c1b099dde97c32b6fe79 /certbot-ci | |
parent | 13d4a992519c52b0771eb5015ce372b298fabc57 (diff) |
Use os.path.normcase to have Windows compatible challenge paths on Windows (#8599)
* Use os.path.normcase to have Windows compatible challenge paths on Windows.
* Add integration test and fix lint
Diffstat (limited to 'certbot-ci')
-rw-r--r-- | certbot-ci/certbot_integration_tests/certbot_tests/test_main.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py b/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py index 4296de6f8..2d3d93669 100644 --- a/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py +++ b/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py @@ -148,6 +148,17 @@ def test_certonly(context): """Test the certonly verb on certbot.""" context.certbot(['certonly', '--cert-name', 'newname', '-d', context.get_domain('newname')]) + assert_cert_count_for_lineage(context.config_dir, 'newname', 1) + + +def test_certonly_webroot(context): + """Test the certonly verb with webroot plugin""" + with misc.create_http_server(context.http_01_port) as webroot: + certname = context.get_domain('webroot') + context.certbot(['certonly', '-a', 'webroot', '--webroot-path', webroot, '-d', certname]) + + assert_cert_count_for_lineage(context.config_dir, certname, 1) + def test_auth_and_install_with_csr(context): """Test certificate issuance and install using an existing CSR.""" |