@@ -102,6 +102,7 @@ func TestAccScalewayDomainRecord_Basic(t *testing.T) {
102
102
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "data" , data ),
103
103
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "ttl" , fmt .Sprint (ttl )),
104
104
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "priority" , fmt .Sprint (priority )),
105
+ resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "fqdn" , testDNSZone ),
105
106
testCheckResourceAttrUUID ("scaleway_domain_record.tf_A" , "id" ),
106
107
),
107
108
},
@@ -124,6 +125,7 @@ func TestAccScalewayDomainRecord_Basic(t *testing.T) {
124
125
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "data" , data ),
125
126
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "ttl" , fmt .Sprint (ttl )),
126
127
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "priority" , fmt .Sprint (priority )),
128
+ resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "fqdn" , name + "." + testDNSZone ),
127
129
testCheckResourceAttrUUID ("scaleway_domain_record.tf_A" , "id" ),
128
130
),
129
131
},
@@ -146,6 +148,7 @@ func TestAccScalewayDomainRecord_Basic(t *testing.T) {
146
148
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "data" , dataUpdated ),
147
149
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "ttl" , fmt .Sprint (ttl )),
148
150
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "priority" , fmt .Sprint (priority )),
151
+ resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "fqdn" , name + "." + testDNSZone ),
149
152
testCheckResourceAttrUUID ("scaleway_domain_record.tf_A" , "id" ),
150
153
),
151
154
},
@@ -168,6 +171,7 @@ func TestAccScalewayDomainRecord_Basic(t *testing.T) {
168
171
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "data" , dataUpdated ),
169
172
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "ttl" , fmt .Sprint (ttlUpdated )),
170
173
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "priority" , fmt .Sprint (priorityUpdated )),
174
+ resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "fqdn" , name + "." + testDNSZone ),
171
175
testCheckResourceAttrUUID ("scaleway_domain_record.tf_A" , "id" ),
172
176
),
173
177
},
@@ -199,6 +203,8 @@ func TestAccScalewayDomainRecord_Basic(t *testing.T) {
199
203
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "data" , "ASPMX.L.GOOGLE.COM." ),
200
204
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "ttl" , "600" ),
201
205
resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "priority" , "1" ),
206
+ resource .TestCheckResourceAttr ("scaleway_domain_record.tf_MX" , "fqdn" , "record_mx." + testDNSZone ),
207
+ resource .TestCheckResourceAttr ("scaleway_domain_record.tf_A" , "fqdn" , name + "." + testDNSZone ),
202
208
testCheckResourceAttrUUID ("scaleway_domain_record.tf_MX" , "id" ),
203
209
),
204
210
},
0 commit comments