@@ -255,7 +255,7 @@ func TestAccScalewayLbLb_WithIP(t *testing.T) {
255255 release_ip = false
256256 private_network {
257257 private_network_id = scaleway_vpc_private_network.pnLB01.id
258- static_config = ["172.16.0.100", "172.16.0.101" ]
258+ static_config = ["172.16.0.100"]
259259 }
260260 }
261261 ` ,
@@ -265,8 +265,6 @@ func TestAccScalewayLbLb_WithIP(t *testing.T) {
265265 resource .TestCheckResourceAttrSet ("scaleway_vpc_private_network.pnLB01" , "name" ),
266266 resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
267267 "private_network.0.static_config.0" , "172.16.0.100" ),
268- resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
269- "private_network.0.static_config.1" , "172.16.0.101" ),
270268 ),
271269 },
272270 {
@@ -289,12 +287,12 @@ func TestAccScalewayLbLb_WithIP(t *testing.T) {
289287 release_ip = false
290288 private_network {
291289 private_network_id = scaleway_vpc_private_network.pnLB01.id
292- static_config = ["172.16.0.100", "172.16.0.101" ]
290+ static_config = ["172.16.0.100"]
293291 }
294292
295293 private_network {
296294 private_network_id = scaleway_vpc_private_network.pnLB02.id
297- static_config = ["172.16.0.105", "172.16.0.106" ]
295+ static_config = ["172.16.0.105"]
298296 }
299297 }
300298 ` ,
@@ -303,12 +301,8 @@ func TestAccScalewayLbLb_WithIP(t *testing.T) {
303301 resource .TestCheckResourceAttr ("scaleway_lb.lb01" , "private_network.#" , "2" ),
304302 resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
305303 "private_network.0.static_config.0" , "172.16.0.100" ),
306- resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
307- "private_network.0.static_config.1" , "172.16.0.101" ),
308304 resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
309305 "private_network.1.static_config.0" , "172.16.0.105" ),
310- resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
311- "private_network.1.static_config.1" , "172.16.0.106" ),
312306 ),
313307 },
314308 {
@@ -331,12 +325,12 @@ func TestAccScalewayLbLb_WithIP(t *testing.T) {
331325 release_ip = false
332326 private_network {
333327 private_network_id = scaleway_vpc_private_network.pnLB01.id
334- static_config = ["172.16.0.100", "172.16.0.101" ]
328+ static_config = ["172.16.0.100"]
335329 }
336330
337331 private_network {
338332 private_network_id = scaleway_vpc_private_network.pnLB02.id
339- static_config = ["172.16.0.105", "172.16.0. 107"]
333+ static_config = ["172.16.0.107"]
340334 }
341335 }
342336 ` ,
@@ -346,11 +340,7 @@ func TestAccScalewayLbLb_WithIP(t *testing.T) {
346340 resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
347341 "private_network.0.static_config.0" , "172.16.0.100" ),
348342 resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
349- "private_network.0.static_config.1" , "172.16.0.101" ),
350- resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
351- "private_network.1.static_config.0" , "172.16.0.105" ),
352- resource .TestCheckResourceAttr ("scaleway_lb.lb01" ,
353- "private_network.1.static_config.1" , "172.16.0.107" ),
343+ "private_network.1.static_config.0" , "172.16.0.107" ),
354344 ),
355345 },
356346 {
@@ -373,7 +363,7 @@ func TestAccScalewayLbLb_WithIP(t *testing.T) {
373363 release_ip = false
374364 private_network {
375365 private_network_id = scaleway_vpc_private_network.pnLB01.id
376- static_config = ["172.16.0.100", "172.16.0.101" ]
366+ static_config = ["172.16.0.100"]
377367 }
378368 }
379369 ` ,
@@ -382,7 +372,6 @@ func TestAccScalewayLbLb_WithIP(t *testing.T) {
382372 resource .TestCheckResourceAttrSet ("scaleway_vpc_private_network.pnLB02" , "name" ),
383373 resource .TestCheckResourceAttr ("scaleway_lb.lb01" , "private_network.#" , "1" ),
384374 resource .TestCheckResourceAttr ("scaleway_lb.lb01" , "private_network.0.static_config.0" , "172.16.0.100" ),
385- resource .TestCheckResourceAttr ("scaleway_lb.lb01" , "private_network.0.static_config.1" , "172.16.0.101" ),
386375 ),
387376 },
388377 {
0 commit comments