Skip to content

Commit 531ded8

Browse files
authored
Merge pull request #30 from platform9/fix/dns-serial-import
fix(dns): ignore volatile SOA serial on zone import; DNS validated live
2 parents f7b4ee3 + 212aa54 commit 531ded8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

internal/services/dns/dns_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ func TestAccDNSZoneAndRecordSet_basic(t *testing.T) {
4545
Config: testAccDNSConfig(`["10.1.0.3"]`),
4646
Check: resource.TestCheckResourceAttr(rrName, "records.#", "1"),
4747
},
48-
{ResourceName: zoneName, ImportState: true, ImportStateVerify: true},
48+
{
49+
ResourceName: zoneName,
50+
ImportState: true,
51+
ImportStateVerify: true,
52+
// Designate auto-increments the SOA serial out of band, so the
53+
// value re-read on import can differ from the last-applied state.
54+
ImportStateVerifyIgnore: []string{"serial"},
55+
},
4956
{
5057
ResourceName: rrName,
5158
ImportState: true,

0 commit comments

Comments
 (0)