From 9ad8141b1d78e0c467e76b84becde2a3655256f9 Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Mon, 15 Jul 2024 16:48:45 +0200 Subject: [PATCH 1/2] tests(lb): fix unexpected ip count --- internal/services/lb/ips_data_source_test.go | 11 +- .../data-source-ips-with-type.cassette.yaml | 356 +++++++++--------- 2 files changed, 187 insertions(+), 180 deletions(-) diff --git a/internal/services/lb/ips_data_source_test.go b/internal/services/lb/ips_data_source_test.go index 3f34ff764..4ba1addbd 100644 --- a/internal/services/lb/ips_data_source_test.go +++ b/internal/services/lb/ips_data_source_test.go @@ -63,31 +63,38 @@ func TestAccDataSourceIPs_WithType(t *testing.T) { { Config: ` resource scaleway_lb_ip ip1 { + zone = "nl-ams-1" } `, }, { Config: ` resource scaleway_lb_ip ip1 { + zone = "nl-ams-1" } resource scaleway_lb_ip ip2 { is_ipv6 = true + zone = "nl-ams-1" } `, }, { Config: ` resource scaleway_lb_ip ip1 { + zone = "nl-ams-1" } resource scaleway_lb_ip ip2 { is_ipv6 = true + zone = "nl-ams-1" } resource scaleway_lb_ip ip3 { + zone = "nl-ams-1" } data "scaleway_lb_ips" "ips_by_type" { - ip_type = "ipv4" - depends_on = [scaleway_lb_ip.ip1, scaleway_lb_ip.ip2, scaleway_lb_ip.ip3] + ip_type = "ipv4" + zone = "nl-ams-1" + depends_on = [scaleway_lb_ip.ip1, scaleway_lb_ip.ip2, scaleway_lb_ip.ip3] } `, Check: resource.ComposeTestCheckFunc( diff --git a/internal/services/lb/testdata/data-source-ips-with-type.cassette.yaml b/internal/services/lb/testdata/data-source-ips-with-type.cassette.yaml index 49a06569f..1db2fd4d8 100644 --- a/internal/services/lb/testdata/data-source-ips-with-type.cassette.yaml +++ b/internal/services/lb/testdata/data-source-ips-with-type.cassette.yaml @@ -19,7 +19,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips method: POST response: proto: HTTP/2.0 @@ -27,18 +27,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 286 + content_length: 296 uncompressed: false - body: '{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "286" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:02 GMT + - Mon, 15 Jul 2024 14:44:36 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2af3f69e-a238-4377-9f97-e0e2a25b4b2c + - 5bf01c6a-9c93-4057-ad66-ae166941305d status: 200 OK code: 200 - duration: 118.470648ms + duration: 200.687691ms - id: 1 request: proto: HTTP/1.1 @@ -68,7 +68,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: GET response: proto: HTTP/2.0 @@ -76,18 +76,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 286 + content_length: 296 uncompressed: false - body: '{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "286" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:02 GMT + - Mon, 15 Jul 2024 14:44:36 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -97,10 +97,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9f196ccf-bcb5-46bf-9b18-cc200c57c2fb + - 13d9cfba-c4a8-4d86-9ba3-644b53c087d9 status: 200 OK code: 200 - duration: 45.948428ms + duration: 69.90605ms - id: 2 request: proto: HTTP/1.1 @@ -117,7 +117,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: GET response: proto: HTTP/2.0 @@ -125,18 +125,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 286 + content_length: 296 uncompressed: false - body: '{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "286" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:03 GMT + - Mon, 15 Jul 2024 14:44:36 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -146,10 +146,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3c195ace-b253-4bc7-9a2a-cb4df1b8210a + - 83768692-c6e4-427f-bee8-bdb884d8c0f2 status: 200 OK code: 200 - duration: 54.107699ms + duration: 57.871242ms - id: 3 request: proto: HTTP/1.1 @@ -166,7 +166,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: GET response: proto: HTTP/2.0 @@ -174,18 +174,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 286 + content_length: 296 uncompressed: false - body: '{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "286" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:03 GMT + - Mon, 15 Jul 2024 14:44:37 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -195,10 +195,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 51402dc8-8ec2-4937-bc00-ebbcbe25f9bd + - 96363250-f5a9-4304-9221-fbdf83a90bc0 status: 200 OK code: 200 - duration: 52.384937ms + duration: 52.224543ms - id: 4 request: proto: HTTP/1.1 @@ -217,7 +217,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips method: POST response: proto: HTTP/2.0 @@ -225,18 +225,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 344 + content_length: 351 uncompressed: false - body: '{"id":"4c73c463-948a-4e00-a9a8-4847d1d9842f","ip_address":"2001:bc8:710:2d83::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.8.d.2.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"111acd0a-1ffd-4b7b-870f-98216b60c143","ip_address":"2001:bc8:1640:1a::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.0.0.0.4.6.1.8.c.b.0.1.0.0.2.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "344" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:03 GMT + - Mon, 15 Jul 2024 14:44:37 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -246,10 +246,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b09a8bec-ef08-4519-bddf-c4328a6f56ca + - 3f8a41c5-180f-46db-903e-b76db57c3e24 status: 200 OK code: 200 - duration: 61.658969ms + duration: 74.225623ms - id: 5 request: proto: HTTP/1.1 @@ -266,7 +266,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4c73c463-948a-4e00-a9a8-4847d1d9842f + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/111acd0a-1ffd-4b7b-870f-98216b60c143 method: GET response: proto: HTTP/2.0 @@ -274,18 +274,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 344 + content_length: 351 uncompressed: false - body: '{"id":"4c73c463-948a-4e00-a9a8-4847d1d9842f","ip_address":"2001:bc8:710:2d83::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.8.d.2.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"111acd0a-1ffd-4b7b-870f-98216b60c143","ip_address":"2001:bc8:1640:1a::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.0.0.0.4.6.1.8.c.b.0.1.0.0.2.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "344" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:04 GMT + - Mon, 15 Jul 2024 14:44:37 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -295,10 +295,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 549999d9-9dfe-43ea-a8d9-afe0289c0b1c + - e8442990-7e2f-4638-873d-4f345c964e6c status: 200 OK code: 200 - duration: 45.186824ms + duration: 63.195624ms - id: 6 request: proto: HTTP/1.1 @@ -315,7 +315,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: GET response: proto: HTTP/2.0 @@ -323,18 +323,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 286 + content_length: 296 uncompressed: false - body: '{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "286" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:04 GMT + - Mon, 15 Jul 2024 14:44:38 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -344,10 +344,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3ebfbdfb-c9f1-4a92-9253-0a0dc1d99b97 + - 57a4eb93-9990-490f-9fb6-7919c8c01595 status: 200 OK code: 200 - duration: 53.008595ms + duration: 73.010582ms - id: 7 request: proto: HTTP/1.1 @@ -364,7 +364,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4c73c463-948a-4e00-a9a8-4847d1d9842f + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/111acd0a-1ffd-4b7b-870f-98216b60c143 method: GET response: proto: HTTP/2.0 @@ -372,18 +372,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 344 + content_length: 351 uncompressed: false - body: '{"id":"4c73c463-948a-4e00-a9a8-4847d1d9842f","ip_address":"2001:bc8:710:2d83::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.8.d.2.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"111acd0a-1ffd-4b7b-870f-98216b60c143","ip_address":"2001:bc8:1640:1a::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.0.0.0.4.6.1.8.c.b.0.1.0.0.2.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "344" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:04 GMT + - Mon, 15 Jul 2024 14:44:38 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -393,10 +393,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4391a182-f9e6-47d9-837e-ee1cebf84179 + - 2686a064-ad54-45eb-a43c-374d2cb387f4 status: 200 OK code: 200 - duration: 54.759778ms + duration: 74.625386ms - id: 8 request: proto: HTTP/1.1 @@ -413,7 +413,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4c73c463-948a-4e00-a9a8-4847d1d9842f + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/111acd0a-1ffd-4b7b-870f-98216b60c143 method: GET response: proto: HTTP/2.0 @@ -421,18 +421,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 344 + content_length: 351 uncompressed: false - body: '{"id":"4c73c463-948a-4e00-a9a8-4847d1d9842f","ip_address":"2001:bc8:710:2d83::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.8.d.2.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"111acd0a-1ffd-4b7b-870f-98216b60c143","ip_address":"2001:bc8:1640:1a::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.0.0.0.4.6.1.8.c.b.0.1.0.0.2.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "344" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:04 GMT + - Mon, 15 Jul 2024 14:44:38 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -442,10 +442,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1e0101c0-5a39-484b-b976-a3107b461047 + - 8b545cb3-024a-42e8-9e26-896efb710a5d status: 200 OK code: 200 - duration: 41.755705ms + duration: 61.839155ms - id: 9 request: proto: HTTP/1.1 @@ -462,7 +462,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: GET response: proto: HTTP/2.0 @@ -470,18 +470,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 286 + content_length: 296 uncompressed: false - body: '{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "286" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:04 GMT + - Mon, 15 Jul 2024 14:44:38 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -491,10 +491,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a4521977-3941-4891-b8bf-fa9f171a1d56 + - 6611bb5d-6eec-44b4-9b81-1ee977e2ed7b status: 200 OK code: 200 - duration: 44.419565ms + duration: 70.739068ms - id: 10 request: proto: HTTP/1.1 @@ -513,7 +513,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips method: POST response: proto: HTTP/2.0 @@ -521,18 +521,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 290 + content_length: 296 uncompressed: false - body: '{"id":"1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9","ip_address":"195.154.73.218","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-73-218.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"825a17be-6af8-441b-b947-c7c2688e71e9","ip_address":"51.158.216.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "290" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:05 GMT + - Mon, 15 Jul 2024 14:44:39 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -542,10 +542,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e92f0499-c0d3-4bef-832a-6887cac9acd3 + - edc2a492-8878-4001-81f1-7242bc767d2c status: 200 OK code: 200 - duration: 82.076594ms + duration: 106.440741ms - id: 11 request: proto: HTTP/1.1 @@ -562,7 +562,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/825a17be-6af8-441b-b947-c7c2688e71e9 method: GET response: proto: HTTP/2.0 @@ -570,18 +570,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 290 + content_length: 296 uncompressed: false - body: '{"id":"1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9","ip_address":"195.154.73.218","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-73-218.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"825a17be-6af8-441b-b947-c7c2688e71e9","ip_address":"51.158.216.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "290" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:05 GMT + - Mon, 15 Jul 2024 14:44:39 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -591,10 +591,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6dacf3b5-2caf-45cf-9e25-555a4b42c824 + - 4b9aaec5-585c-41b3-bac8-ca00991446dd status: 200 OK code: 200 - duration: 38.500398ms + duration: 68.868768ms - id: 12 request: proto: HTTP/1.1 @@ -611,7 +611,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips?ip_type=ipv4 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips?ip_type=ipv4 method: GET response: proto: HTTP/2.0 @@ -619,18 +619,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 603 + content_length: 621 uncompressed: false - body: '{"ips":[{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9","ip_address":"195.154.73.218","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-73-218.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"total_count":2}' + body: '{"ips":[{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"},{"id":"825a17be-6af8-441b-b947-c7c2688e71e9","ip_address":"51.158.216.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}],"total_count":2}' headers: Content-Length: - - "603" + - "621" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:05 GMT + - Mon, 15 Jul 2024 14:44:39 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -640,10 +640,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4bb5250f-6f80-4ed1-9e2a-c82f452efb51 + - 2c2063df-ab9d-46b3-b91a-78b5d23953d0 status: 200 OK code: 200 - duration: 57.463336ms + duration: 56.098733ms - id: 13 request: proto: HTTP/1.1 @@ -660,7 +660,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips?ip_type=ipv4 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips?ip_type=ipv4 method: GET response: proto: HTTP/2.0 @@ -668,18 +668,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 603 + content_length: 621 uncompressed: false - body: '{"ips":[{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9","ip_address":"195.154.73.218","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-73-218.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"total_count":2}' + body: '{"ips":[{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"},{"id":"825a17be-6af8-441b-b947-c7c2688e71e9","ip_address":"51.158.216.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}],"total_count":2}' headers: Content-Length: - - "603" + - "621" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:05 GMT + - Mon, 15 Jul 2024 14:44:39 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -689,10 +689,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a3de5373-0cfc-4a58-8448-d5c8348a7005 + - 2a39cdbe-a99c-423b-848f-07820b0db4e6 status: 200 OK code: 200 - duration: 58.754942ms + duration: 65.115107ms - id: 14 request: proto: HTTP/1.1 @@ -709,7 +709,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: GET response: proto: HTTP/2.0 @@ -717,18 +717,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 286 + content_length: 296 uncompressed: false - body: '{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "286" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:06 GMT + - Mon, 15 Jul 2024 14:44:40 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -738,10 +738,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0a998cfb-80ea-48c8-9aac-37640eaee199 + - d24e95b8-2f98-42cf-828b-4948905bc220 status: 200 OK code: 200 - duration: 54.028137ms + duration: 65.112154ms - id: 15 request: proto: HTTP/1.1 @@ -758,7 +758,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4c73c463-948a-4e00-a9a8-4847d1d9842f + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/111acd0a-1ffd-4b7b-870f-98216b60c143 method: GET response: proto: HTTP/2.0 @@ -766,18 +766,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 344 + content_length: 351 uncompressed: false - body: '{"id":"4c73c463-948a-4e00-a9a8-4847d1d9842f","ip_address":"2001:bc8:710:2d83::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.8.d.2.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"111acd0a-1ffd-4b7b-870f-98216b60c143","ip_address":"2001:bc8:1640:1a::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.0.0.0.4.6.1.8.c.b.0.1.0.0.2.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "344" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:06 GMT + - Mon, 15 Jul 2024 14:44:40 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -787,10 +787,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 36660ac5-bc39-499b-9a7c-cabf1b717edd + - 9aa61105-019c-4c16-874d-dd27a5afae52 status: 200 OK code: 200 - duration: 57.296397ms + duration: 65.208673ms - id: 16 request: proto: HTTP/1.1 @@ -807,7 +807,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/825a17be-6af8-441b-b947-c7c2688e71e9 method: GET response: proto: HTTP/2.0 @@ -815,18 +815,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 290 + content_length: 296 uncompressed: false - body: '{"id":"1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9","ip_address":"195.154.73.218","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-73-218.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"825a17be-6af8-441b-b947-c7c2688e71e9","ip_address":"51.158.216.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "290" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:06 GMT + - Mon, 15 Jul 2024 14:44:40 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -836,10 +836,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bba55144-0130-4b29-b349-ccf2dfc99dbd + - 8baba192-9314-49de-baff-4c964e07b006 status: 200 OK code: 200 - duration: 67.029206ms + duration: 73.44614ms - id: 17 request: proto: HTTP/1.1 @@ -856,7 +856,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips?ip_type=ipv4 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips?ip_type=ipv4 method: GET response: proto: HTTP/2.0 @@ -864,18 +864,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 603 + content_length: 621 uncompressed: false - body: '{"ips":[{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9","ip_address":"195.154.73.218","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-73-218.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"total_count":2}' + body: '{"ips":[{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"},{"id":"825a17be-6af8-441b-b947-c7c2688e71e9","ip_address":"51.158.216.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}],"total_count":2}' headers: Content-Length: - - "603" + - "621" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:06 GMT + - Mon, 15 Jul 2024 14:44:40 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -885,10 +885,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7fa082ee-c60a-473f-8911-b24494d0d8e1 + - 2ee8e4d9-277f-4ead-84c5-76d780ac7a69 status: 200 OK code: 200 - duration: 39.668307ms + duration: 64.347789ms - id: 18 request: proto: HTTP/1.1 @@ -905,7 +905,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips?ip_type=ipv4 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips?ip_type=ipv4 method: GET response: proto: HTTP/2.0 @@ -913,18 +913,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 603 + content_length: 621 uncompressed: false - body: '{"ips":[{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"},{"id":"1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9","ip_address":"195.154.73.218","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-73-218.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}],"total_count":2}' + body: '{"ips":[{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"},{"id":"825a17be-6af8-441b-b947-c7c2688e71e9","ip_address":"51.158.216.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}],"total_count":2}' headers: Content-Length: - - "603" + - "621" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:06 GMT + - Mon, 15 Jul 2024 14:44:40 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -934,10 +934,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7e574efa-0b2b-42b4-931f-a952a4d8f8b1 + - 06ec1a90-204e-4881-80c2-5c396528129c status: 200 OK code: 200 - duration: 61.348101ms + duration: 58.246362ms - id: 19 request: proto: HTTP/1.1 @@ -954,7 +954,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/111acd0a-1ffd-4b7b-870f-98216b60c143 method: GET response: proto: HTTP/2.0 @@ -962,18 +962,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 290 + content_length: 351 uncompressed: false - body: '{"id":"1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9","ip_address":"195.154.73.218","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"195-154-73-218.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"111acd0a-1ffd-4b7b-870f-98216b60c143","ip_address":"2001:bc8:1640:1a::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.0.0.0.4.6.1.8.c.b.0.1.0.0.2.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "290" + - "351" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:06 GMT + - Mon, 15 Jul 2024 14:44:40 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -983,10 +983,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 052fe4c1-1ac6-4205-819d-c41e84c7eff1 + - 1c7741df-3c09-4fd3-8b64-d1605ec0b089 status: 200 OK code: 200 - duration: 52.410903ms + duration: 62.127255ms - id: 20 request: proto: HTTP/1.1 @@ -1003,7 +1003,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: GET response: proto: HTTP/2.0 @@ -1011,18 +1011,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 286 + content_length: 296 uncompressed: false - body: '{"id":"1dd46280-6412-43a2-bcb4-79ac204b09a2","ip_address":"51.159.10.73","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"51-159-10-73.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"78592c5c-a79a-4bda-b012-9ef59c452a85","ip_address":"51.158.216.42","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-42.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "286" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:06 GMT + - Mon, 15 Jul 2024 14:44:40 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -1032,10 +1032,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4685789e-5e5b-4d81-b33d-5fcf337a9ff6 + - ded7fe64-3afb-49dc-b57f-3ae2d7c2bb7e status: 200 OK code: 200 - duration: 53.573365ms + duration: 62.405205ms - id: 21 request: proto: HTTP/1.1 @@ -1052,7 +1052,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4c73c463-948a-4e00-a9a8-4847d1d9842f + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/825a17be-6af8-441b-b947-c7c2688e71e9 method: GET response: proto: HTTP/2.0 @@ -1060,18 +1060,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 344 + content_length: 296 uncompressed: false - body: '{"id":"4c73c463-948a-4e00-a9a8-4847d1d9842f","ip_address":"2001:bc8:710:2d83::","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","reverse":"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.8.d.2.0.1.7.0.8.c.b.0.1.0.0.2.lb.fr-par.scw.cloud","tags":[],"zone":"fr-par-1"}' + body: '{"id":"825a17be-6af8-441b-b947-c7c2688e71e9","ip_address":"51.158.216.74","lb_id":null,"organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"nl-ams","reverse":"51-158-216-74.lb.nl-ams.scw.cloud","tags":[],"zone":"nl-ams-1"}' headers: Content-Length: - - "344" + - "296" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:06 GMT + - Mon, 15 Jul 2024 14:44:40 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -1081,10 +1081,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a5761952-dacf-4d8f-81d4-06ee08bce32a + - 529d6ef4-9165-4d3e-a9a2-38998f7384ba status: 200 OK code: 200 - duration: 57.221074ms + duration: 71.985374ms - id: 22 request: proto: HTTP/1.1 @@ -1101,7 +1101,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/825a17be-6af8-441b-b947-c7c2688e71e9 method: DELETE response: proto: HTTP/2.0 @@ -1118,7 +1118,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:07 GMT + - Mon, 15 Jul 2024 14:44:41 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -1128,10 +1128,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2c87ac9e-3e3b-4575-8ec4-d022eeecd3eb + - c984cddb-d813-45a8-83e2-25833c6b33c0 status: 204 No Content code: 204 - duration: 371.611902ms + duration: 509.624483ms - id: 23 request: proto: HTTP/1.1 @@ -1148,7 +1148,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/111acd0a-1ffd-4b7b-870f-98216b60c143 method: DELETE response: proto: HTTP/2.0 @@ -1165,7 +1165,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:07 GMT + - Mon, 15 Jul 2024 14:44:41 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -1175,10 +1175,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c1f635c5-d7f9-4160-b367-d08cd6fe5b44 + - deccc837-0411-43fd-ad60-af229c5d385e status: 204 No Content code: 204 - duration: 370.348186ms + duration: 519.952924ms - id: 24 request: proto: HTTP/1.1 @@ -1195,7 +1195,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4c73c463-948a-4e00-a9a8-4847d1d9842f + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: DELETE response: proto: HTTP/2.0 @@ -1212,7 +1212,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:07 GMT + - Mon, 15 Jul 2024 14:44:41 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -1222,10 +1222,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e641dc84-3cab-47fe-8a4a-dcb8081bfaac + - be804bea-542a-4d65-a168-69cbc2dacbb3 status: 204 No Content code: 204 - duration: 374.798894ms + duration: 520.044972ms - id: 25 request: proto: HTTP/1.1 @@ -1242,7 +1242,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/4c73c463-948a-4e00-a9a8-4847d1d9842f + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/78592c5c-a79a-4bda-b012-9ef59c452a85 method: GET response: proto: HTTP/2.0 @@ -1261,7 +1261,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:07 GMT + - Mon, 15 Jul 2024 14:44:41 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -1271,10 +1271,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d32790b0-35a3-43ba-94f8-e4eabdd719e7 + - f6e6b9ec-d59d-4a34-af26-512777eeff0e status: 404 Not Found code: 404 - duration: 20.267609ms + duration: 39.02907ms - id: 26 request: proto: HTTP/1.1 @@ -1291,7 +1291,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1df060c8-4d56-4e9e-a18b-51ce0ac6ddc9 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/111acd0a-1ffd-4b7b-870f-98216b60c143 method: GET response: proto: HTTP/2.0 @@ -1310,7 +1310,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:07 GMT + - Mon, 15 Jul 2024 14:44:41 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -1320,10 +1320,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6043d312-1b2f-461b-9047-9d2115f856f4 + - 0017b497-c6c7-4750-ab2b-b03117febca7 status: 404 Not Found code: 404 - duration: 20.540805ms + duration: 41.537466ms - id: 27 request: proto: HTTP/1.1 @@ -1340,7 +1340,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/lb/v1/zones/fr-par-1/ips/1dd46280-6412-43a2-bcb4-79ac204b09a2 + url: https://api.scaleway.com/lb/v1/zones/nl-ams-1/ips/825a17be-6af8-441b-b947-c7c2688e71e9 method: GET response: proto: HTTP/2.0 @@ -1359,7 +1359,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Jul 2024 08:50:07 GMT + - Mon, 15 Jul 2024 14:44:41 GMT Server: - Scaleway API Gateway (fr-par-3;edge02) Strict-Transport-Security: @@ -1369,7 +1369,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 244ec48e-3b05-43ea-a440-61231c6df7e4 + - 72cba094-f477-42f3-baae-c3864b17d798 status: 404 Not Found code: 404 - duration: 20.087378ms + duration: 32.28393ms From c4a818e6ed708b2702ca28d70c1dbb35e0d4237d Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Tue, 16 Jul 2024 09:19:29 +0200 Subject: [PATCH 2/2] fix --- internal/services/lb/ips_data_source_test.go | 25 +++++++++++--------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/internal/services/lb/ips_data_source_test.go b/internal/services/lb/ips_data_source_test.go index 4ba1addbd..7037a7b39 100644 --- a/internal/services/lb/ips_data_source_test.go +++ b/internal/services/lb/ips_data_source_test.go @@ -62,40 +62,43 @@ func TestAccDataSourceIPs_WithType(t *testing.T) { Steps: []resource.TestStep{ { Config: ` - resource scaleway_lb_ip ip1 { + resource "scaleway_lb_ip" "ip1" { zone = "nl-ams-1" - } + } `, }, { Config: ` - resource scaleway_lb_ip ip1 { + resource "scaleway_lb_ip" "ip1" { zone = "nl-ams-1" } - resource scaleway_lb_ip ip2 { + + resource "scaleway_lb_ip" "ip2" { is_ipv6 = true zone = "nl-ams-1" - } + } `, }, { Config: ` - resource scaleway_lb_ip ip1 { + resource "scaleway_lb_ip" "ip1" { zone = "nl-ams-1" } - resource scaleway_lb_ip ip2 { + + resource "scaleway_lb_ip" "ip2" { is_ipv6 = true zone = "nl-ams-1" } - resource scaleway_lb_ip ip3 { + + resource "scaleway_lb_ip" "ip3" { zone = "nl-ams-1" } - + data "scaleway_lb_ips" "ips_by_type" { - ip_type = "ipv4" + ip_type = "ipv4" zone = "nl-ams-1" depends_on = [scaleway_lb_ip.ip1, scaleway_lb_ip.ip2, scaleway_lb_ip.ip3] - } + } `, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("data.scaleway_lb_ips.ips_by_type", "ips.#", "2"),