Skip to content

Commit 02de36f

Browse files
Additional test case
1 parent 17ea930 commit 02de36f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

va/va_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ func TestValidateDNSPersist01(t *testing.T) {
157157
expectHTTPStatus: 403,
158158
expectDetailSubstr: `No valid TXT record found`,
159159
},
160+
{
161+
name: "non-matching issuer-domain-name record is ignored",
162+
challIssuerNames: []string{"authority.example"},
163+
challTXTRecords: []string{"other.example;accounturi=https://ca.example/acct/123"},
164+
expectErr: true,
165+
expectHTTPStatus: 403,
166+
expectDetailSubstr: `No valid TXT record found`,
167+
},
160168
{
161169
name: "missing equals is malformed",
162170
challIssuerNames: []string{"authority.example"},

0 commit comments

Comments
 (0)