Skip to content

Commit

Permalink
Merge pull request certbot#9309 from certbot/test-account-updates
Browse files Browse the repository at this point in the history
certbot-ci: improve tests for update_account/show_account
  • Loading branch information
wgreenberg authored May 31, 2022
2 parents 5c111d0 + 7758a03 commit d13131e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d13131e

Please sign in to comment.