@@ -141,7 +141,7 @@ func TestAccDomainRecord_Basic(t *testing.T) {
141
141
dns_zone = %[1]q
142
142
name = "record_mx"
143
143
type = "MX"
144
- data = "ASPMX.L.GOOGLE.COM ."
144
+ data = "aspmx.l.google.com ."
145
145
ttl = 600
146
146
priority = 1
147
147
}
@@ -151,7 +151,7 @@ func TestAccDomainRecord_Basic(t *testing.T) {
151
151
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "dns_zone" , testDNSZone ),
152
152
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "name" , "record_mx" ),
153
153
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 ." ),
155
155
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "ttl" , "600" ),
156
156
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "priority" , "1" ),
157
157
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "fqdn" , "record_mx." + testDNSZone ),
@@ -194,15 +194,16 @@ func TestAccDomainRecord_Basic2(t *testing.T) {
194
194
dns_zone = %[1]q
195
195
name = ""
196
196
type = "MX"
197
- data = "10 feedback-smtp.eu-west-1.amazonses.com."
197
+ data = "feedback-smtp.eu-west-1.amazonses.com."
198
+ priority = 10
198
199
ttl = 300
199
200
}
200
201
201
202
resource "scaleway_domain_record" "mx" {
202
203
dns_zone = %[1]q
203
204
name = ""
204
205
type = "MX"
205
- data = "0 mail.scaleway.com."
206
+ data = "mail.scaleway.com."
206
207
ttl = 300
207
208
}
208
209
@@ -229,7 +230,7 @@ func TestAccDomainRecord_Basic2(t *testing.T) {
229
230
resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "dns_zone" , testDNSZone ),
230
231
resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "name" , "" ),
231
232
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." ),
233
234
resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "ttl" , "300" ),
234
235
resource .TestCheckResourceAttr ("scaleway_domain_record.aws_mx" , "priority" , "10" ),
235
236
acctest .CheckResourceAttrUUID ("scaleway_domain_record.aws_mx" , "id" ),
@@ -728,8 +729,8 @@ func TestAccDomainRecord_CNAME(t *testing.T) {
728
729
729
730
name := "tf"
730
731
recordType := "CNAME"
731
- data := "xxx.scw.cloud"
732
- dataUpdated := "yyy.scw.cloud"
732
+ data := "xxx.scw.cloud. "
733
+ dataUpdated := "yyy.scw.cloud. "
733
734
ttl := 3600
734
735
ttlUpdated := 43200
735
736
priority := 0
0 commit comments