@@ -141,7 +141,7 @@ func TestAccDomainRecord_Basic(t *testing.T) {
141141 dns_zone = %[1]q
142142 name = "record_mx"
143143 type = "MX"
144- data = "ASPMX.L.GOOGLE.COM ."
144+ data = "aspmx.l.google.com ."
145145 ttl = 600
146146 priority = 1
147147 }
@@ -151,7 +151,7 @@ func TestAccDomainRecord_Basic(t *testing.T) {
151151 resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "dns_zone" , testDNSZone ),
152152 resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "name" , "record_mx" ),
153153 resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "type" , "MX" ),
154- resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "data" , "ASPMX.L.GOOGLE.COM ." ),
154+ resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "data" , "aspmx.l.google.com ." ),
155155 resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "ttl" , "600" ),
156156 resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "priority" , "1" ),
157157 resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "fqdn" , "record_mx." + testDNSZone ),
@@ -194,15 +194,16 @@ func TestAccDomainRecord_Basic2(t *testing.T) {
194194 dns_zone = %[1]q
195195 name = ""
196196 type = "MX"
197- data = "10 feedback-smtp.eu-west-1.amazonses.com."
197+ data = "feedback-smtp.eu-west-1.amazonses.com."
198+ priority = 10
198199 ttl = 300
199200 }
200201
201202 resource "scaleway_domain_record" "mx" {
202203 dns_zone = %[1]q
203204 name = ""
204205 type = "MX"
205- data = "0 mail.scaleway.com."
206+ data = "mail.scaleway.com."
206207 ttl = 300
207208 }
208209
@@ -229,7 +230,7 @@ func TestAccDomainRecord_Basic2(t *testing.T) {
229230 resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "dns_zone" , testDNSZone ),
230231 resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "name" , "" ),
231232 resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "type" , "MX" ),
232- resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "data" , "10 feedback-smtp.eu-west-1.amazonses.com." ),
233+ resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "data" , "feedback-smtp.eu-west-1.amazonses.com." ),
233234 resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "ttl" , "300" ),
234235 resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "priority" , "10" ),
235236 acctest .CheckResourceAttrUUID ("scaleway_domain_record.aws_mx" , "id" ),
@@ -728,8 +729,8 @@ func TestAccDomainRecord_CNAME(t *testing.T) {
728729
729730 name := "tf"
730731 recordType := "CNAME"
731- data := "xxx.scw.cloud"
732- dataUpdated := "yyy.scw.cloud"
732+ data := "xxx.scw.cloud. "
733+ dataUpdated := "yyy.scw.cloud. "
733734 ttl := 3600
734735 ttlUpdated := 43200
735736 priority := 0
0 commit comments