Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zorin <alex@zorin.id.au>2022-05-31 10:02:43 +0300
committerAlex Zorin <alex@zorin.id.au>2022-05-31 10:02:43 +0300
commitcf63470db975ae8be582d90ec7d4942b79f1b68d (patch)
tree16641ae03a819777dbde5a991c8f1a3e1daca95c /certbot-ci
parent5c111d0bd1206d864d7cb93754e101f6073bc669 (diff)
certbot-ci: improve tests for update_account/show_account
Diffstat (limited to 'certbot-ci')
-rw-r--r--certbot-ci/certbot_integration_tests/certbot_tests/test_main.py5
1 files changed, 5 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 2827ae939..c9eca39d6 100644
--- a/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py
+++ b/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py
@@ -78,7 +78,12 @@ def test_registration_override(context: IntegrationTestsContext) -> None:
context.certbot(['register', '--email', 'ex1@domain.org,ex2@domain.org'])
context.certbot(['update_account', '--email', 'example@domain.org'])
+ stdout, _ = context.certbot(['show_account'])
+ assert 'example@domain.org' in stdout, "New email should be present"
context.certbot(['update_account', '--email', 'ex1@domain.org,ex2@domain.org'])
+ stdout, _ = context.certbot(['show_account'])
+ assert 'example@domain.org' not in stdout, "Old email should not be present"
+ assert 'ex1@domain.org, ex2@domain.org' in stdout, "New emails should be present"
def test_prepare_plugins(context: IntegrationTestsContext) -> None: