@@ -245,7 +245,60 @@ func TestAccScalewayLbBackend_WithFailoverHost(t *testing.T) {
245
245
),
246
246
Steps : []resource.TestStep {
247
247
{
248
- Config : `
248
+ Config : fmt .Sprintf (`
249
+ resource "scaleway_object_bucket" "test" {
250
+ name = %[1]q
251
+ acl = "public-read"
252
+ tags = {
253
+ TestName = "TestAccSCW_WebsiteConfig_basic"
254
+ }
255
+ }
256
+
257
+ resource scaleway_object "some_file" {
258
+ bucket = scaleway_object_bucket.test.name
259
+ key = "index.html"
260
+ file = "testfixture/index.html"
261
+ visibility = "public-read"
262
+ }
263
+
264
+ resource "scaleway_object_bucket_website_configuration" "test" {
265
+ bucket = scaleway_object_bucket.test.name
266
+ index_document {
267
+ suffix = "index.html"
268
+ }
269
+ error_document {
270
+ key = "error.html"
271
+ }
272
+ }
273
+ ` , rName ),
274
+ },
275
+ {
276
+ Config : fmt .Sprintf (`
277
+ resource "scaleway_object_bucket" "test" {
278
+ name = %[1]q
279
+ acl = "public-read"
280
+ tags = {
281
+ TestName = "TestAccSCW_WebsiteConfig_basic"
282
+ }
283
+ }
284
+
285
+ resource scaleway_object "some_file" {
286
+ bucket = scaleway_object_bucket.test.name
287
+ key = "index.html"
288
+ file = "testfixture/index.html"
289
+ visibility = "public-read"
290
+ }
291
+
292
+ resource "scaleway_object_bucket_website_configuration" "test" {
293
+ bucket = scaleway_object_bucket.test.name
294
+ index_document {
295
+ suffix = "index.html"
296
+ }
297
+ error_document {
298
+ key = "error.html"
299
+ }
300
+ }
301
+
249
302
resource scaleway_lb_ip ip01 {}
250
303
resource scaleway_lb lb01 {
251
304
ip_id = scaleway_lb_ip.ip01.id
@@ -263,7 +316,7 @@ func TestAccScalewayLbBackend_WithFailoverHost(t *testing.T) {
263
316
proxy_protocol = "none"
264
317
server_ips = [ scaleway_instance_ip.ip01.address ]
265
318
}
266
- ` ,
319
+ ` , rName ),
267
320
Check : testAccCheckScalewayLbBackendExists (tt , "scaleway_lb_backend.bkd01" ),
268
321
},
269
322
{
0 commit comments