Skip to content

Commit

Permalink
Revert "Change domain uses in High-risk domain test"
Browse files Browse the repository at this point in the history
This reverts commit f5f7613.
  • Loading branch information
mcpherrinm committed Jan 14, 2025
1 parent 5fdd429 commit b949278
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/v2_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,9 +1166,9 @@ def test_new_order_policy_errs():
"""
client = chisel2.make_client(None)

# 'example.org' is present in `test/hostname-policy.yaml`'s
# 'in-addr.arpa' is present in `test/hostname-policy.yaml`'s
# HighRiskBlockedNames list.
csr_pem = chisel2.make_csr(["salamander.example.org", "axolotl.example.org"])
csr_pem = chisel2.make_csr(["out-addr.in-addr.arpa", "between-addr.in-addr.arpa"])

# With two policy blocked names in the order we expect to get back a top
# level rejectedIdentifier with a detail message that references
Expand All @@ -1184,7 +1184,7 @@ def test_new_order_policy_errs():
ok = True
if e.typ != "urn:ietf:params:acme:error:rejectedIdentifier":
raise(Exception("Expected rejectedIdentifier type problem, got {0}".format(e.typ)))
if e.detail != 'Error creating new order :: Cannot issue for "axolotl.example.org": The ACME server refuses to issue a certificate for this domain name, because it is forbidden by policy (and 1 more problems. Refer to sub-problems for more information.)':
if e.detail != 'Error creating new order :: Cannot issue for "between-addr.in-addr.arpa": The ACME server refuses to issue a certificate for this domain name, because it is forbidden by policy (and 1 more problems. Refer to sub-problems for more information.)':
raise(Exception("Order problem detail did not match expected"))
if not ok:
raise(Exception("Expected problem, got no error"))
Expand Down

0 comments on commit b949278

Please sign in to comment.