Skip to content

Commit c01bfdc

Browse files
authoredFeb 24, 2025··
CHORE: Future proof CAA integration test (#3449)
1 parent 8c3903e commit c01bfdc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎integrationTest/helpers_integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func azureAlias(name, aliasType, target string) *models.RecordConfig {
311311
return r
312312
}
313313

314-
func caa(name string, tag string, flag uint8, target string) *models.RecordConfig {
314+
func caa(name string, flag uint8, tag string, target string) *models.RecordConfig {
315315
r := makeRec(name, target, "CAA")
316316
panicOnErr(r.SetTargetCAA(flag, tag, target))
317317
return r

‎integrationTest/integration_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -677,14 +677,14 @@ func makeTests() []*TestGroup {
677677

678678
testgroup("CAA",
679679
requires(providers.CanUseCAA),
680-
tc("CAA record", caa("@", "issue", 0, "letsencrypt.org")),
681-
tc("CAA change tag", caa("@", "issuewild", 0, "letsencrypt.org")),
682-
tc("CAA change target", caa("@", "issuewild", 0, "example.com")),
683-
tc("CAA change flag", caa("@", "issuewild", 128, "example.com")),
684-
tc("CAA many records", caa("@", "issuewild", 128, ";")),
680+
tc("CAA record", caa("@", 0, "issue", "letsencrypt.org")),
681+
tc("CAA change tag", caa("@", 0, "issuewild", "letsencrypt.org")),
682+
tc("CAA change target", caa("@", 0, "issuewild", "example.com")),
683+
tc("CAA change flag", caa("@", 128, "issuewild", "example.com")),
684+
tc("CAA many records", caa("@", 128, "issuewild", ";")),
685685
// Test support of spaces in the 3rd field. Some providers don't
686686
// support this. See providers/exoscale/auditrecords.go as an example.
687-
tc("CAA whitespace", caa("@", "issue", 0, "letsencrypt.org; validationmethods=dns-01; accounturi=https://acme-v02.api.letsencrypt.org/acme/acct/1234")),
687+
tc("CAA whitespace", caa("@", 0, "issue", "letsencrypt.org; validationmethods=dns-01; accounturi=https://acme-v02.api.letsencrypt.org/acme/acct/1234")),
688688
),
689689

690690
// LOCation records. // No.47

0 commit comments

Comments
 (0)
Please sign in to comment.