Skip to content

Commit f5f7613

Browse files
committed
Change domain uses in High-risk domain test
This domain is now rejected earlier by not treating .arpa as a valid TLD, so use a different one to get the expected error.
1 parent 2c3ca81 commit f5f7613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/v2_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,9 +1166,9 @@ def test_new_order_policy_errs():
11661166
"""
11671167
client = chisel2.make_client(None)
11681168

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

11731173
# With two policy blocked names in the order we expect to get back a top
11741174
# level rejectedIdentifier with a detail message that references
@@ -1184,7 +1184,7 @@ def test_new_order_policy_errs():
11841184
ok = True
11851185
if e.typ != "urn:ietf:params:acme:error:rejectedIdentifier":
11861186
raise(Exception("Expected rejectedIdentifier type problem, got {0}".format(e.typ)))
1187-
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.)':
1187+
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.)':
11881188
raise(Exception("Order problem detail did not match expected"))
11891189
if not ok:
11901190
raise(Exception("Expected problem, got no error"))

0 commit comments

Comments
 (0)