Add random subdomain for rate limit test. (#3471)

The test for the certificates_per_name rate limit uses an exact domain
name that has an override in the rate limit config file to have a limit
of 0. This works correctly most of the time. However, if that mechanism
fails once (due to some bug), future runs of the integation test will
continue to fail, because there will now be an issued certificate for
"lim.it" in the DB, and subsequent attempts will be considered renewals.

This change adds a random subdomain to the test, so that it's not
eligible for the renewal exemption.
This commit is contained in:
Jacob Hoffman-Andrews 2018-02-22 10:23:11 -08:00 committed by Roland Bracewell Shoemaker
parent 93088ee768
commit d6448dbb52
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ def test_renewal_exemption():
def test_certificates_per_name():
chisel.expect_problem("urn:acme:error:rateLimited",
lambda: auth_and_issue(["lim.it"]))
lambda: auth_and_issue([random_domain() + ".lim.it"]))
def test_expired_authzs_404():
if len(old_authzs) == 0: