CHORE: Add unit test for TTL changes on SRV records (#2067)

This commit is contained in:
Tom Limoncelli 2023-02-19 10:57:41 -05:00 committed by GitHub
parent a068aaa1ab
commit 43c5b17ed8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1022,6 +1022,12 @@ func makeTests(t *testing.T) []*TestGroup {
tc("Null Target", srv("_sip._tcp", 15, 65, 75, ".")),
),
// https://github.com/StackExchange/dnscontrol/issues/2066
testgroup("SRV", requires(providers.CanUseSRV),
tc("Create SRV333", ttl(srv("_sip._tcp", 5, 6, 7, "foo.com."), 333)),
tc("Change TTL999", ttl(srv("_sip._tcp", 5, 6, 7, "foo.com."), 999)),
),
testgroup("SSHFP",
requires(providers.CanUseSSHFP),
tc("SSHFP record",