mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 02:17:43 +08:00
failing test for #552
This commit is contained in:
parent
443401d2a7
commit
33ecf81431
1 changed files with 24 additions and 0 deletions
|
@ -262,3 +262,27 @@ func TestInvalidGlobIgnoredRecord(t *testing.T) {
|
|||
|
||||
checkLengthsFull(t, existing, desired, 0, 1, 0, 0, false, []string{"www1", "www2", "[.www3"})
|
||||
}
|
||||
|
||||
// from https://github.com/StackExchange/dnscontrol/issues/552
|
||||
func TestCaas(t *testing.T) {
|
||||
existing := []*models.RecordConfig{
|
||||
myRecord("test CAA 1 1.1.1.1"),
|
||||
myRecord("test CAA 1 1.1.1.1"),
|
||||
myRecord("test CAA 1 1.1.1.1"),
|
||||
}
|
||||
desired := []*models.RecordConfig{
|
||||
myRecord("test CAA 1 1.1.1.1"),
|
||||
myRecord("test CAA 1 1.1.1.1"),
|
||||
myRecord("test CAA 1 1.1.1.1"),
|
||||
}
|
||||
existing[0].SetTargetCAA(3, "issue", "letsencrypt.org.")
|
||||
existing[1].SetTargetCAA(3, "issue", "amazon.com.")
|
||||
existing[2].SetTargetCAA(3, "issuewild", "letsencrypt.org.")
|
||||
|
||||
// this will pass or fail depending on the ordering. Not ok.
|
||||
desired[0].SetTargetCAA(3, "issue", "letsencrypt.org.")
|
||||
desired[2].SetTargetCAA(3, "issue", "amazon.com.")
|
||||
desired[1].SetTargetCAA(3, "issuewild", "letsencrypt.org.")
|
||||
|
||||
checkLengthsFull(t, existing, desired, 3, 0, 0, 0, false, nil)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue