diff --git a/internal/services/tem/offer_subscription_data_source_test.go b/internal/services/tem/offer_subscription_data_source_test.go index b1de8185a9..0a917cbae3 100644 --- a/internal/services/tem/offer_subscription_data_source_test.go +++ b/internal/services/tem/offer_subscription_data_source_test.go @@ -35,7 +35,7 @@ func TestAccDataSourceOfferSubscription_Basic(t *testing.T) { `, orgID), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet("data.scaleway_tem_offer_subscription.test", "project_id"), - resource.TestCheckResourceAttr("data.scaleway_tem_offer_subscription.test", "offer_name", "scale"), + resource.TestCheckResourceAttr("data.scaleway_tem_offer_subscription.test", "offer_name", "essential"), ), }, }, diff --git a/internal/services/tem/testdata/data-source-offer-subscription-basic.cassette.yaml b/internal/services/tem/testdata/data-source-offer-subscription-basic.cassette.yaml index 5c6215ade8..8ea2bd7e4a 100644 --- a/internal/services/tem/testdata/data-source-offer-subscription-basic.cassette.yaml +++ b/internal/services/tem/testdata/data-source-offer-subscription-basic.cassette.yaml @@ -36,7 +36,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:45:56 GMT + - Fri, 28 Mar 2025 09:13:53 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -46,10 +46,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a0ddedfd-d6c5-44db-8972-7a20f975eabb + - eda0eda3-41a0-439b-a2ef-15fa2a84010f status: 200 OK code: 200 - duration: 1.26145175s + duration: 1.745239375s - id: 1 request: proto: HTTP/1.1 @@ -85,7 +85,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:45:57 GMT + - Fri, 28 Mar 2025 09:13:53 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -95,10 +95,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f67fc1c5-7525-48a8-b295-09a6547c6f57 + - fef2ea14-ddf6-4658-a93b-802cd9e677c6 status: 200 OK code: 200 - duration: 306.750167ms + duration: 128.670667ms - id: 2 request: proto: HTTP/1.1 @@ -123,18 +123,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 427 + content_length: 422 uncompressed: false - body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-14T16:16:43.798008Z","included_monthly_emails":100000,"max_custom_blocklists_per_domain":-1,"max_dedicated_ips":1,"max_domains":-1,"max_webhooks_per_domain":-1,"offer_name":"scale","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":99.9,"subscribed_at":"2025-03-14T15:56:47.106678Z"}],"total_count":1}' + body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-27T08:57:33.592099Z","included_monthly_emails":300,"max_custom_blocklists_per_domain":0,"max_dedicated_ips":0,"max_domains":5,"max_webhooks_per_domain":1,"offer_name":"essential","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":0,"subscribed_at":"2025-03-27T08:57:33.609412Z"}],"total_count":1}' headers: Content-Length: - - "427" + - "422" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:45:57 GMT + - Fri, 28 Mar 2025 09:13:53 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -144,10 +144,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - be401103-ac28-4558-92ff-1af71621fdf6 + - 94380d88-3638-4a6e-ade6-ae478d3f7ac7 status: 200 OK code: 200 - duration: 77.078625ms + duration: 91.052ms - id: 3 request: proto: HTTP/1.1 @@ -183,7 +183,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:45:58 GMT + - Fri, 28 Mar 2025 09:13:54 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -193,10 +193,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - eced26d1-c73c-4b3e-8657-094b4cfd08fb + - 91e647eb-fb81-468f-b6de-b80c5f0da3c9 status: 200 OK code: 200 - duration: 989.444959ms + duration: 910.796458ms - id: 4 request: proto: HTTP/1.1 @@ -232,7 +232,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:45:58 GMT + - Fri, 28 Mar 2025 09:13:55 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -242,10 +242,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3270140b-6ef2-4b22-ac6f-bec0c6b04ba8 + - a5dd9e7f-8277-4ee3-b2f6-37df6be0f319 status: 200 OK code: 200 - duration: 150.304959ms + duration: 128.760417ms - id: 5 request: proto: HTTP/1.1 @@ -270,18 +270,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 427 + content_length: 422 uncompressed: false - body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-14T16:16:43.798008Z","included_monthly_emails":100000,"max_custom_blocklists_per_domain":-1,"max_dedicated_ips":1,"max_domains":-1,"max_webhooks_per_domain":-1,"offer_name":"scale","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":99.9,"subscribed_at":"2025-03-14T15:56:47.106678Z"}],"total_count":1}' + body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-27T08:57:33.592099Z","included_monthly_emails":300,"max_custom_blocklists_per_domain":0,"max_dedicated_ips":0,"max_domains":5,"max_webhooks_per_domain":1,"offer_name":"essential","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":0,"subscribed_at":"2025-03-27T08:57:33.609412Z"}],"total_count":1}' headers: Content-Length: - - "427" + - "422" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:45:58 GMT + - Fri, 28 Mar 2025 09:13:55 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -291,10 +291,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 917f81c0-c8f2-4d84-9d47-d84127ea13d8 + - 65b9ece4-a336-4a3e-9333-d6152d1d121f status: 200 OK code: 200 - duration: 151.8745ms + duration: 193.148875ms - id: 6 request: proto: HTTP/1.1 @@ -330,7 +330,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:00 GMT + - Fri, 28 Mar 2025 09:13:56 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -340,10 +340,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 63e7316b-a1ac-4b32-9ebd-8b3e6542f47c + - 802f20e0-38e9-41c1-a695-ff032ac17f77 status: 200 OK code: 200 - duration: 894.924708ms + duration: 845.914917ms - id: 7 request: proto: HTTP/1.1 @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:00 GMT + - Fri, 28 Mar 2025 09:13:57 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -389,10 +389,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c4bb5795-e53a-49a6-ba76-dc10aeffc8b8 + - 9e144377-6a0b-40aa-8a96-592e8acb20df status: 200 OK code: 200 - duration: 142.342375ms + duration: 174.122834ms - id: 8 request: proto: HTTP/1.1 @@ -417,18 +417,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 427 + content_length: 422 uncompressed: false - body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-14T16:16:43.798008Z","included_monthly_emails":100000,"max_custom_blocklists_per_domain":-1,"max_dedicated_ips":1,"max_domains":-1,"max_webhooks_per_domain":-1,"offer_name":"scale","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":99.9,"subscribed_at":"2025-03-14T15:56:47.106678Z"}],"total_count":1}' + body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-27T08:57:33.592099Z","included_monthly_emails":300,"max_custom_blocklists_per_domain":0,"max_dedicated_ips":0,"max_domains":5,"max_webhooks_per_domain":1,"offer_name":"essential","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":0,"subscribed_at":"2025-03-27T08:57:33.609412Z"}],"total_count":1}' headers: Content-Length: - - "427" + - "422" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:00 GMT + - Fri, 28 Mar 2025 09:13:57 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -438,10 +438,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e537c8bd-bd3c-4cca-8c0e-abbdd071d842 + - b1e1d328-51e8-470f-b605-a2096b6dac72 status: 200 OK code: 200 - duration: 67.376458ms + duration: 123.655833ms - id: 9 request: proto: HTTP/1.1 @@ -477,7 +477,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:02 GMT + - Fri, 28 Mar 2025 09:13:58 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -487,10 +487,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 96f9fb21-757b-4f33-83ea-293c9900ef8a + - c89ba419-ecd6-431a-b906-cc1bb385100e status: 200 OK code: 200 - duration: 826.920209ms + duration: 906.651334ms - id: 10 request: proto: HTTP/1.1 @@ -526,7 +526,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:02 GMT + - Fri, 28 Mar 2025 09:13:58 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -536,10 +536,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 375e40e9-b34e-42ef-9850-97d8998c7914 + - 9f44c7d0-6ac7-4513-98fd-3c54b360c9d3 status: 200 OK code: 200 - duration: 122.135166ms + duration: 136.047708ms - id: 11 request: proto: HTTP/1.1 @@ -564,18 +564,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 427 + content_length: 422 uncompressed: false - body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-14T16:16:43.798008Z","included_monthly_emails":100000,"max_custom_blocklists_per_domain":-1,"max_dedicated_ips":1,"max_domains":-1,"max_webhooks_per_domain":-1,"offer_name":"scale","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":99.9,"subscribed_at":"2025-03-14T15:56:47.106678Z"}],"total_count":1}' + body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-27T08:57:33.592099Z","included_monthly_emails":300,"max_custom_blocklists_per_domain":0,"max_dedicated_ips":0,"max_domains":5,"max_webhooks_per_domain":1,"offer_name":"essential","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":0,"subscribed_at":"2025-03-27T08:57:33.609412Z"}],"total_count":1}' headers: Content-Length: - - "427" + - "422" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:02 GMT + - Fri, 28 Mar 2025 09:13:58 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -585,10 +585,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 71aff88f-0dca-4872-a6fa-f7f9af701e0a + - 322bfec7-94c5-4bae-a48a-3a6a43c4c639 status: 200 OK code: 200 - duration: 74.289959ms + duration: 91.451459ms - id: 12 request: proto: HTTP/1.1 @@ -624,7 +624,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:03 GMT + - Fri, 28 Mar 2025 09:13:59 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -634,10 +634,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 72a9640f-1c54-4b11-ab9a-7703f77262f2 + - 25d67884-4cf4-45ee-b919-c607ba94079b status: 200 OK code: 200 - duration: 979.666625ms + duration: 819.417625ms - id: 13 request: proto: HTTP/1.1 @@ -673,7 +673,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:03 GMT + - Fri, 28 Mar 2025 09:14:00 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -683,10 +683,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f833a547-e1f5-4f8b-916d-fed770549f62 + - f12be074-00de-4f51-bae9-9b88b7454694 status: 200 OK code: 200 - duration: 147.221042ms + duration: 159.805625ms - id: 14 request: proto: HTTP/1.1 @@ -711,18 +711,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 427 + content_length: 422 uncompressed: false - body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-14T16:16:43.798008Z","included_monthly_emails":100000,"max_custom_blocklists_per_domain":-1,"max_dedicated_ips":1,"max_domains":-1,"max_webhooks_per_domain":-1,"offer_name":"scale","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":99.9,"subscribed_at":"2025-03-14T15:56:47.106678Z"}],"total_count":1}' + body: '{"offer_subscriptions":[{"cancellation_available_at":"2025-03-27T08:57:33.592099Z","included_monthly_emails":300,"max_custom_blocklists_per_domain":0,"max_dedicated_ips":0,"max_domains":5,"max_webhooks_per_domain":1,"offer_name":"essential","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","sla":0,"subscribed_at":"2025-03-27T08:57:33.609412Z"}],"total_count":1}' headers: Content-Length: - - "427" + - "422" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 26 Mar 2025 13:46:03 GMT + - Fri, 28 Mar 2025 09:14:00 GMT Server: - Scaleway API Gateway (fr-par-2;edge02) Strict-Transport-Security: @@ -732,7 +732,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 22af2b3a-2a56-4475-9726-455420d931b3 + - c5580678-0be3-4228-a4c9-a25c12d27c58 status: 200 OK code: 200 - duration: 130.791542ms + duration: 138.915542ms