Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilson Lin committed Sep 19, 2023
1 parent 3f37175 commit fe3b783
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/framework/resources/zone_record_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func TestAccZoneRecordResource(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "zone_name", domainName),
resource.TestCheckResourceAttr(resourceName, "qualified_name", "terraform."+domainName),
resource.TestCheckResourceAttr(resourceName, "ttl", "2800"),
resource.TestCheckResourceAttr(resourceName, "value", "192.168.0.10"),
resource.TestCheckResourceAttrSet(resourceName, "id"),
),
},
Expand All @@ -39,7 +40,8 @@ func TestAccZoneRecordResource(t *testing.T) {
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr(resourceName, "zone_name", domainName),
resource.TestCheckResourceAttr(resourceName, "qualified_name", "terraform."+domainName),
resource.TestCheckResourceAttr(resourceName, "ttl", "2800"),
resource.TestCheckResourceAttr(resourceName, "ttl", "4000"),
resource.TestCheckResourceAttr(resourceName, "value", "192.168.0.11"),
resource.TestCheckResourceAttrSet(resourceName, "id"),
resource.TestCheckResourceAttr(resourceName, "#regions", "2"),
resource.TestCheckResourceAttr(resourceName, "regions.0", "IAD"),
Expand Down Expand Up @@ -273,9 +275,9 @@ resource "dnsimple_zone_record" "test" {
zone_name = %[1]q
name = "terraform"
value = "192.168.0.10"
value = "192.168.0.11"
type = "A"
ttl = 2800
ttl = 4000
regions = %[2]s
}`, domainName, regionsRaw)
}
Expand Down

0 comments on commit fe3b783

Please sign in to comment.