Skip to content

Commit

Permalink
test: remove extraneous resource from test
Browse files Browse the repository at this point in the history
  • Loading branch information
b12f committed Aug 13, 2024
1 parent eb487f9 commit 14f5f83
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions hostingde/record_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,12 @@ resource "hostingde_zone" "test" {
type = "NATIVE"
email = "[email protected]"
}
resource "hostingde_record" "test_mx" {
resource "hostingde_record" "test_mx2" {
zone_id = hostingde_zone.test.id
name = "example2.test"
type = "MX"
content = "mail.example2.test"
priority = 10
}
resource "hostingde_record" "test_mx" {
zone_id = hostingde_zone.test.id
name = "example2.test"
type = "MX"
content = "mail.example2.test"
priority = 10
content = "mail2.example2.test"
priority = 20
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
Expand All @@ -71,6 +64,16 @@ resource "hostingde_record" "test_mx" {
resource.TestCheckResourceAttr("hostingde_record.test_mx", "content", "mail.example2.test"),
// Verify dynamic values have any value set in the state.
resource.TestCheckResourceAttrSet("hostingde_record.test_mx", "id"),
// Verify name attribute.
resource.TestCheckResourceAttr("hostingde_record.test_mx2", "name", "example2.test"),
// Verify type attribute.
resource.TestCheckResourceAttr("hostingde_record.test_mx2", "type", "MX"),
// Verify priority attribute.
resource.TestCheckResourceAttr("hostingde_record.test_mx2", "priority", "20"),
// Verify email attribute.
resource.TestCheckResourceAttr("hostingde_record.test_mx2", "content", "mail2.example2.test"),
// Verify dynamic values have any value set in the state.
resource.TestCheckResourceAttrSet("hostingde_record.test_mx2", "id"),
),
},
// Create and read TXT testing
Expand Down

0 comments on commit 14f5f83

Please sign in to comment.