Skip to content

Commit

Permalink
bug(tem): add dmarc in test validation (#2619)
Browse files Browse the repository at this point in the history
  • Loading branch information
jremy42 authored Jun 17, 2024
1 parent 5a13ed6 commit a4c7f5e
Show file tree
Hide file tree
Showing 2 changed files with 855 additions and 450 deletions.
11 changes: 10 additions & 1 deletion internal/services/tem/domain_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func TestAccDomainValidation_Validation(t *testing.T) {
name = "%s"
accept_tos = true
}
resource "scaleway_domain_record" "spf" {
dns_zone = "%s"
type = "TXT"
Expand All @@ -71,12 +72,20 @@ func TestAccDomainValidation_Validation(t *testing.T) {
type = "MX"
data = "."
}
resource "scaleway_domain_record" "dmarc" {
dns_zone = "%s"
name = scaleway_tem_domain.cr01.dmarc_name
type = "TXT"
data = scaleway_tem_domain.cr01.dmarc_config
}
resource scaleway_tem_domain_validation valid {
domain_id = scaleway_tem_domain.cr01.id
region = scaleway_tem_domain.cr01.region
timeout = 3600
}
`, domainNameValidation, domainNameValidation, domainNameValidation, domainNameValidation),
`, domainNameValidation, domainNameValidation, domainNameValidation, domainNameValidation, domainNameValidation),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("scaleway_tem_domain_validation.valid", "validated", "true"),
),
Expand Down
Loading

0 comments on commit a4c7f5e

Please sign in to comment.