Skip to content

Commit

Permalink
CHORE: Future proof CAA integration test (#3449)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlimoncelli authored Feb 24, 2025
1 parent 8c3903e commit c01bfdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion integrationTest/helpers_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func azureAlias(name, aliasType, target string) *models.RecordConfig {
return r
}

func caa(name string, tag string, flag uint8, target string) *models.RecordConfig {
func caa(name string, flag uint8, tag string, target string) *models.RecordConfig {
r := makeRec(name, target, "CAA")
panicOnErr(r.SetTargetCAA(flag, tag, target))
return r
Expand Down
12 changes: 6 additions & 6 deletions integrationTest/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,14 +677,14 @@ func makeTests() []*TestGroup {

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

// LOCation records. // No.47
Expand Down

0 comments on commit c01bfdc

Please sign in to comment.