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:
authorWill Greenberg <willg@eff.org>2022-05-31 22:58:19 +0300
committerGitHub <noreply@github.com>2022-05-31 22:58:19 +0300
commitd13131e30337cf0be5ba2196132437a67632a429 (patch)
tree7744613b450c6904b060be2a8c8073fb198c6cf2
parent5c111d0bd1206d864d7cb93754e101f6073bc669 (diff)
parent7758a03b5b3547fc28ddf20ca1857ac80533fc41 (diff)
Merge pull request #9309 from certbot/test-account-updates
certbot-ci: improve tests for update_account/show_account
-rw-r--r--certbot-ci/certbot_integration_tests/certbot_tests/test_main.py8
1 files changed, 8 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..7bef646be 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,15 @@ 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'])
+ stdout1, _ = context.certbot(['show_account'])
context.certbot(['update_account', '--email', 'ex1@domain.org,ex2@domain.org'])
+ stdout2, _ = context.certbot(['show_account'])
+
+ # https://github.com/letsencrypt/boulder/issues/6144
+ if context.acme_server != 'boulder-v2':
+ assert 'example@domain.org' in stdout1, "New email should be present"
+ assert 'example@domain.org' not in stdout2, "Old email should not be present"
+ assert 'ex1@domain.org, ex2@domain.org' in stdout2, "New emails should be present"
def test_prepare_plugins(context: IntegrationTestsContext) -> None: