Skip to content

Commit 0424cb9

Browse files
committed
test: remove extraneous resource from test
1 parent 4c35288 commit 0424cb9

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

hostingde/record_resource_test.go

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,12 @@ resource "hostingde_zone" "test" {
4545
type = "NATIVE"
4646
email = "hostmaster@example2.test"
4747
}
48-
resource "hostingde_record" "test_mx" {
48+
resource "hostingde_record" "test_mx2" {
4949
zone_id = hostingde_zone.test.id
5050
name = "example2.test"
5151
type = "MX"
52-
content = "mail.example2.test"
53-
priority = 10
54-
}
55-
resource "hostingde_record" "test_mx" {
56-
zone_id = hostingde_zone.test.id
57-
name = "example2.test"
58-
type = "MX"
59-
content = "mail.example2.test"
60-
priority = 10
52+
content = "mail2.example2.test"
53+
priority = 20
6154
}
6255
`,
6356
Check: resource.ComposeAggregateTestCheckFunc(
@@ -71,6 +64,16 @@ resource "hostingde_record" "test_mx" {
7164
resource.TestCheckResourceAttr("hostingde_record.test_mx", "content", "mail.example2.test"),
7265
// Verify dynamic values have any value set in the state.
7366
resource.TestCheckResourceAttrSet("hostingde_record.test_mx", "id"),
67+
// Verify name attribute.
68+
resource.TestCheckResourceAttr("hostingde_record.test_mx2", "name", "example2.test"),
69+
// Verify type attribute.
70+
resource.TestCheckResourceAttr("hostingde_record.test_mx2", "type", "MX"),
71+
// Verify priority attribute.
72+
resource.TestCheckResourceAttr("hostingde_record.test_mx2", "priority", "20"),
73+
// Verify email attribute.
74+
resource.TestCheckResourceAttr("hostingde_record.test_mx2", "content", "mail2.example2.test"),
75+
// Verify dynamic values have any value set in the state.
76+
resource.TestCheckResourceAttrSet("hostingde_record.test_mx2", "id"),
7477
),
7578
},
7679
// Create and read TXT testing

0 commit comments

Comments
 (0)