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
This commit is contained in:
Adrien Ferrand
2021-01-13 14:38:57 -08:00
committed by GitHub
parent 13d4a99251
commit c0917a0302
2 changed files with 13 additions and 1 deletions
@@ -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."""