1
0
Fork 0

Issue #32 renaming letsencrypt test server env var

This commit is contained in:
Joao Gilberto 2022-11-10 18:43:50 -03:00
parent 607470a122
commit f7969c2deb
6 changed files with 25 additions and 10 deletions

View file

@ -95,7 +95,7 @@ def test_container_env_stats_password():
"lookup_label": "easyhaproxy",
"letsencrypt": {
"email": "acme@example.org",
"staging": False
"server": False
}
} == ContainerEnv.read()
finally:
@ -103,7 +103,7 @@ def test_container_env_stats_password():
def test_container_env_letsencrypt():
os.environ['EASYHAPROXY_LETSENCRYPT_EMAIL'] = 'acme@example.org'
os.environ['EASYHAPROXY_LETSENCRYPT_STAGING'] = 'true'
os.environ['EASYHAPROXY_LETSENCRYPT_SERVER'] = 'true'
try:
assert {
"customerrors": False,
@ -111,7 +111,7 @@ def test_container_env_letsencrypt():
"lookup_label": "easyhaproxy",
"letsencrypt": {
"email": "acme@example.org",
"staging": True
"server": True
}
} == ContainerEnv.read()
finally: