From d4c1d30196d8994931bbfcc3f9b0045f29a6bd7f Mon Sep 17 00:00:00 2001 From: jremy Date: Tue, 10 Sep 2024 11:35:18 +0200 Subject: [PATCH 1/2] fix(mnq): add project for handle conflict --- internal/services/mnq/nats_account_test.go | 5 + .../services/mnq/nats_credentials_test.go | 22 +- .../testdata/nats-account-basic.cassette.yaml | 682 +++++++---- .../nats-credentials-basic.cassette.yaml | 1011 +++++++++++------ ...nats-credentials-update-name.cassette.yaml | 610 +++++++--- 5 files changed, 1652 insertions(+), 678 deletions(-) diff --git a/internal/services/mnq/nats_account_test.go b/internal/services/mnq/nats_account_test.go index 439e3e0ea..eaf434027 100644 --- a/internal/services/mnq/nats_account_test.go +++ b/internal/services/mnq/nats_account_test.go @@ -23,7 +23,12 @@ func TestAccNatsAccount_Basic(t *testing.T) { Steps: []resource.TestStep{ { Config: ` + resource scaleway_account_project main { + name = "tf_tests_mnq_nats_account_basic" + } + resource scaleway_mnq_nats_account main { + project_id = scaleway_account_project.main.id name = "test-mnq-nats-account-basic" } `, diff --git a/internal/services/mnq/nats_credentials_test.go b/internal/services/mnq/nats_credentials_test.go index a656bec04..8c5de0e8e 100644 --- a/internal/services/mnq/nats_credentials_test.go +++ b/internal/services/mnq/nats_credentials_test.go @@ -23,8 +23,14 @@ func TestAccNatsCredentials_Basic(t *testing.T) { Steps: []resource.TestStep{ { Config: ` + + resource scaleway_account_project main { + name = "tf_tests_mnq_nats_credential_basic" + } + resource scaleway_mnq_nats_account main { - name = "test-mnq-nats-credentials-basic" + project_id = scaleway_account_project.main.id + name = "test-mnq-nats-credentials-basic-test" } resource scaleway_mnq_nats_credentials main { @@ -51,8 +57,13 @@ func TestAccNatsCredentials_UpdateName(t *testing.T) { Steps: []resource.TestStep{ { Config: ` + resource scaleway_account_project main { + name = "tf_tests_mnq_nats_credential_update" + } + resource scaleway_mnq_nats_account main { - name = "test-mnq-nats-credentials-basic" + project_id = scaleway_account_project.main.id + name = "test-mnq-nats-credentials-update" } resource scaleway_mnq_nats_credentials main { @@ -66,8 +77,13 @@ func TestAccNatsCredentials_UpdateName(t *testing.T) { }, { Config: ` + resource scaleway_account_project main { + name = "tf_tests_mnq_nats_credential_update" + } + resource scaleway_mnq_nats_account main { - name = "test-mnq-nats-credentials-basic" + project_id = scaleway_account_project.main.id + name = "test-mnq-nats-credentials-update" } resource scaleway_mnq_nats_credentials main { diff --git a/internal/services/mnq/testdata/nats-account-basic.cassette.yaml b/internal/services/mnq/testdata/nats-account-basic.cassette.yaml index 7874c3c6b..3d139769c 100644 --- a/internal/services/mnq/testdata/nats-account-basic.cassette.yaml +++ b/internal/services/mnq/testdata/nats-account-basic.cassette.yaml @@ -1,195 +1,493 @@ --- version: 2 interactions: -- request: - body: '{"name":"test-mnq-nats-account-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b"}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts - method: POST - response: - body: '{"created_at":"2023-10-16T09:29:28.435972155Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3","name":"test-mnq-nats-account-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","region":"fr-par","updated_at":"2023-10-16T09:29:28.435972155Z"}' - headers: - Content-Length: - - "318" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:29 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - f337e694-f47f-4c3f-92ce-6c3b0415d2f1 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3 - method: GET - response: - body: '{"created_at":"2023-10-16T09:29:28.435972Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3","name":"test-mnq-nats-account-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","region":"fr-par","updated_at":"2023-10-16T09:29:28.435972Z"}' - headers: - Content-Length: - - "312" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:29 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - df4493c9-c49e-423b-9b8d-2c9521cd3c78 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3 - method: GET - response: - body: '{"created_at":"2023-10-16T09:29:28.435972Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3","name":"test-mnq-nats-account-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","region":"fr-par","updated_at":"2023-10-16T09:29:28.435972Z"}' - headers: - Content-Length: - - "312" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:29 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 98f23c28-17c6-4c1a-901d-015ccd38bb0a - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3 - method: GET - response: - body: '{"created_at":"2023-10-16T09:29:28.435972Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3","name":"test-mnq-nats-account-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","region":"fr-par","updated_at":"2023-10-16T09:29:28.435972Z"}' - headers: - Content-Length: - - "312" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:30 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 5ca4d678-0e45-4919-8014-b4a829a27d78 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3 - method: DELETE - response: - body: "" - headers: - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:31 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 10a9fc09-5d9d-4a45-abfb-2dcc6bce8a4e - status: 204 No Content - code: 204 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3 - method: DELETE - response: - body: '{"message":"resource is not found","resource":"namespace","resource_id":"ACGUWSEX2UKDYQAMN4ZW474CZBAQBO5OFGA2HCFGV3IMRYZEETCLQ6Q3","type":"not_found"}' - headers: - Content-Length: - - "150" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:31 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 98f0c452-e1c8-4b52-ad52-f75b941ef7d3 - status: 404 Not Found - code: 404 + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 116 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_tests_mnq_nats_account_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 246 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:24.111603Z","description":"","id":"e4d3c769-f8e0-43c7-bf58-394629fca69c","name":"tf_tests_mnq_nats_account_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:24.111603Z"}' + headers: + Content-Length: + - "246" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3cbfde38-9375-4f91-b8ad-84be2e8864b3 + status: 200 OK + code: 200 + duration: 350.248318ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/e4d3c769-f8e0-43c7-bf58-394629fca69c + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 246 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:24.111603Z","description":"","id":"e4d3c769-f8e0-43c7-bf58-394629fca69c","name":"tf_tests_mnq_nats_account_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:24.111603Z"}' + headers: + Content-Length: + - "246" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2df82db3-2e72-4be8-a9cd-3579741a6a56 + status: 200 OK + code: 200 + duration: 104.345649ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test-mnq-nats-account-basic","project_id":"e4d3c769-f8e0-43c7-bf58-394629fca69c"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 318 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:24.552232248Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6","name":"test-mnq-nats-account-basic","project_id":"e4d3c769-f8e0-43c7-bf58-394629fca69c","region":"fr-par","updated_at":"2024-09-10T09:30:24.552232248Z"}' + headers: + Content-Length: + - "318" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7eb84d6b-3e1d-4941-9829-19f6fc833cd0 + status: 200 OK + code: 200 + duration: 161.331498ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 312 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:24.552232Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6","name":"test-mnq-nats-account-basic","project_id":"e4d3c769-f8e0-43c7-bf58-394629fca69c","region":"fr-par","updated_at":"2024-09-10T09:30:24.552232Z"}' + headers: + Content-Length: + - "312" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e9f1640f-8501-48f9-91f1-18a77493600f + status: 200 OK + code: 200 + duration: 94.697561ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 312 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:24.552232Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6","name":"test-mnq-nats-account-basic","project_id":"e4d3c769-f8e0-43c7-bf58-394629fca69c","region":"fr-par","updated_at":"2024-09-10T09:30:24.552232Z"}' + headers: + Content-Length: + - "312" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ba1b8c41-9171-46b3-a92c-9a572b5f7d8e + status: 200 OK + code: 200 + duration: 62.824601ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/e4d3c769-f8e0-43c7-bf58-394629fca69c + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 246 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:24.111603Z","description":"","id":"e4d3c769-f8e0-43c7-bf58-394629fca69c","name":"tf_tests_mnq_nats_account_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:24.111603Z"}' + headers: + Content-Length: + - "246" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:25 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 35d7e6c2-5993-4755-87a0-2dbcbd3a2760 + status: 200 OK + code: 200 + duration: 122.78067ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 312 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:24.552232Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6","name":"test-mnq-nats-account-basic","project_id":"e4d3c769-f8e0-43c7-bf58-394629fca69c","region":"fr-par","updated_at":"2024-09-10T09:30:24.552232Z"}' + headers: + Content-Length: + - "312" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:25 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aa88e98a-c46e-479c-926b-1639f41eb070 + status: 200 OK + code: 200 + duration: 91.892615ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:26 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 444039e3-d92a-4106-9944-ec3a86871251 + status: 204 No Content + code: 204 + duration: 173.132453ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/e4d3c769-f8e0-43c7-bf58-394629fca69c + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:27 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6b740ffd-57dd-4da9-a0fd-98d348eb41f9 + status: 204 No Content + code: 204 + duration: 1.280631612s + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 150 + uncompressed: false + body: '{"message":"resource is not found","resource":"namespace","resource_id":"ACZFPXJNGJMX4A5VV7A7WJU3YC2V77KNFRX54VML4QTQUBSPHR3TDBP6","type":"not_found"}' + headers: + Content-Length: + - "150" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:27 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 84957519-73eb-4868-9084-81b8568933fa + status: 404 Not Found + code: 404 + duration: 26.069561ms diff --git a/internal/services/mnq/testdata/nats-credentials-basic.cassette.yaml b/internal/services/mnq/testdata/nats-credentials-basic.cassette.yaml index 585c4db93..6258193b8 100644 --- a/internal/services/mnq/testdata/nats-credentials-basic.cassette.yaml +++ b/internal/services/mnq/testdata/nats-credentials-basic.cassette.yaml @@ -1,328 +1,689 @@ --- version: 2 interactions: -- request: - body: '{"name":"test-mnq-nats-credentials-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b"}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts - method: POST - response: - body: '{"created_at":"2023-10-16T09:29:28.448677598Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4","name":"test-mnq-nats-credentials-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","region":"fr-par","updated_at":"2023-10-16T09:29:28.448677598Z"}' - headers: - Content-Length: - - "322" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:29 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 182610ad-57a1-4d29-9aa9-8b8b2186d590 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4 - method: GET - response: - body: '{"created_at":"2023-10-16T09:29:28.448677Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4","name":"test-mnq-nats-credentials-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","region":"fr-par","updated_at":"2023-10-16T09:29:28.448677Z"}' - headers: - Content-Length: - - "316" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:29 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ff89980e-ecc1-4a45-81a9-59d9d6858d99 - status: 200 OK - code: 200 -- request: - body: '{"nats_account_id":"ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4","name":"tf-nats-credentials-epic-noether"}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials - method: POST - response: - body: '{"checksum":"cfec606fd2cc45c6638d2c788e94b051740bca9a","created_at":"2023-10-16T09:29:29.662483679Z","credentials":{"content":"-----BEGIN - NATS USER JWT-----\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJMWldNMzJZRkwzS0JKSkpGVTJBR1VLVDZIU09ORVpJQVBOWVNDQk1GTENIN0xFVlIzSU5BIiwiaWF0IjoxNjk3NDQ4NTY5LCJpc3MiOiJBRFdFWUQ0T0RGNExRN09QUk01TEVQTVJOUlRPWjRVU0lEWjRBSEZMRk5KRzZGR0pTWVVJVEo1VSIsIm5hbWUiOiJ0Zi1uYXRzLWNyZWRlbnRpYWxzLWVwaWMtbm9ldGhlciIsInN1YiI6IlVDSTI0VjNXM0dGVVRHSU5WM1VQTkZMTllMTUlNVE9DVkRTSzZYTlBNUTM0V1JDR1I1RjI3UDdUIiwibmF0cyI6eyJwdWIiOnt9LCJzdWIiOnt9LCJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpc3N1ZXJfYWNjb3VudCI6IkFCR0paWFlHQlJTR1BXSFJBR0VTVU9VVUZYMkg3TkdWVUZJTExYQTY3TFQ1UUpDV1dUWDQ2V1M0IiwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.3re1n1JuuKHHe7T3Em1gbLBgXl7XtCd55fTHsWSvtMGdgrK6KILwtSveYj7FPCPcyDPB3yS-2Zhsc2iDk17vCQ\n------END - NATS USER JWT------\n\n************************* IMPORTANT *************************\nNKEY - Seed printed below can be used to sign and prove identity.\nNKEYs are sensitive - and should be treated as secrets.\n\n-----BEGIN USER NKEY SEED-----\nSUADAXGDOCZHJPHHOPK6HWIY64BYJJOEJT5M5ETTCJABYWF45GVTPHCKNI\n------END - USER NKEY SEED------\n\n*************************************************************\n","name":"user.creds"},"id":"f7282b66-58c1-424f-a3a6-af4d638f6df0","name":"tf-nats-credentials-epic-noether","nats_account_id":"ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4","updated_at":null}' - headers: - Content-Length: - - "1456" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:29 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 45a52bce-878d-443c-959c-cd6944e1ed10 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/f7282b66-58c1-424f-a3a6-af4d638f6df0 - method: GET - response: - body: '{"checksum":"cfec606fd2cc45c6638d2c788e94b051740bca9a","created_at":"2023-10-16T09:29:29.662835Z","credentials":null,"id":"f7282b66-58c1-424f-a3a6-af4d638f6df0","name":"tf-nats-credentials-epic-noether","nats_account_id":"ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4","updated_at":null}' - headers: - Content-Length: - - "298" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:29 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 19d14a39-b0b1-4dd8-8fa6-49dde1078db1 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/f7282b66-58c1-424f-a3a6-af4d638f6df0 - method: GET - response: - body: '{"checksum":"cfec606fd2cc45c6638d2c788e94b051740bca9a","created_at":"2023-10-16T09:29:29.662835Z","credentials":null,"id":"f7282b66-58c1-424f-a3a6-af4d638f6df0","name":"tf-nats-credentials-epic-noether","nats_account_id":"ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4","updated_at":null}' - headers: - Content-Length: - - "298" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:29 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 28cd9eeb-d908-4228-a902-3e33d0c75f97 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4 - method: GET - response: - body: '{"created_at":"2023-10-16T09:29:28.448677Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4","name":"test-mnq-nats-credentials-basic","project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b","region":"fr-par","updated_at":"2023-10-16T09:29:28.448677Z"}' - headers: - Content-Length: - - "316" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:30 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - f438e1e4-17cc-4cb9-95a5-d9c8a9d58be6 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/f7282b66-58c1-424f-a3a6-af4d638f6df0 - method: GET - response: - body: '{"checksum":"cfec606fd2cc45c6638d2c788e94b051740bca9a","created_at":"2023-10-16T09:29:29.662835Z","credentials":null,"id":"f7282b66-58c1-424f-a3a6-af4d638f6df0","name":"tf-nats-credentials-epic-noether","nats_account_id":"ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4","updated_at":null}' - headers: - Content-Length: - - "298" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:30 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 49fa93ff-05f7-465b-af8b-82755d6491f4 - status: 200 OK - code: 200 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/f7282b66-58c1-424f-a3a6-af4d638f6df0 - method: DELETE - response: - body: "" - headers: - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:31 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - f9068ea1-efa2-44fd-b085-e947e0c25b4d - status: 204 No Content - code: 204 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ABGJZXYGBRSGPWHRAGESUOUUFX2H7NGVUFILLXA67LT5QJCWWTX46WS4 - method: DELETE - response: - body: "" - headers: - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:32 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 7f92d4c7-fcd6-43ca-a048-8de2689adfce - status: 204 No Content - code: 204 -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) terraform-provider/develop - terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/f7282b66-58c1-424f-a3a6-af4d638f6df0 - method: DELETE - response: - body: '{"message":"resource is not found","resource":"credential","resource_id":"f7282b66-58c1-424f-a3a6-af4d638f6df0","type":"not_found"}' - headers: - Content-Length: - - "131" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 16 Oct 2023 09:29:32 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - d954d726-2438-4dd6-9f3a-8c4c2c0f37d7 - status: 404 Not Found - code: 404 + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 119 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"tf_tests_mnq_nats_credential_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","description":""}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 249 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:29.085054Z","description":"","id":"c9ebaf73-e459-45a7-82a9-cdb74d848025","name":"tf_tests_mnq_nats_credential_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:29.085054Z"}' + headers: + Content-Length: + - "249" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:29 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aba7d44d-1c8d-477c-baa3-26f608a9c93d + status: 200 OK + code: 200 + duration: 267.165035ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/c9ebaf73-e459-45a7-82a9-cdb74d848025 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 249 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:29.085054Z","description":"","id":"c9ebaf73-e459-45a7-82a9-cdb74d848025","name":"tf_tests_mnq_nats_credential_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:29.085054Z"}' + headers: + Content-Length: + - "249" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:29 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a919aa03-2005-4d46-a565-c121d6316322 + status: 200 OK + code: 200 + duration: 93.147475ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 99 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"name":"test-mnq-nats-credentials-basic-test","project_id":"c9ebaf73-e459-45a7-82a9-cdb74d848025"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 327 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:29.446683977Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV","name":"test-mnq-nats-credentials-basic-test","project_id":"c9ebaf73-e459-45a7-82a9-cdb74d848025","region":"fr-par","updated_at":"2024-09-10T09:30:29.446683977Z"}' + headers: + Content-Length: + - "327" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:29 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cb76293e-b096-441a-863c-ccd4b72cf16e + status: 200 OK + code: 200 + duration: 190.14909ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 321 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:29.446683Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV","name":"test-mnq-nats-credentials-basic-test","project_id":"c9ebaf73-e459-45a7-82a9-cdb74d848025","region":"fr-par","updated_at":"2024-09-10T09:30:29.446683Z"}' + headers: + Content-Length: + - "321" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:29 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8eab666b-67a4-4fa8-a755-c6d87bc197a2 + status: 200 OK + code: 200 + duration: 57.652385ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 121 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: '{"nats_account_id":"ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV","name":"tf-nats-credentials-gracious-bell"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 1458 + uncompressed: false + body: '{"checksum":"4871b4ee442f55ef6ee0369cdcee4fe053e13111","created_at":"2024-09-10T09:30:29.718047865Z","credentials":{"content":"-----BEGIN NATS USER JWT-----\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI3QlhIN0JETTJKRkRCMkQ3U1hOTlA3NlE3Q1FZSktQRVJESVAzUTZZVElNQ09TSFpaTlVBIiwiaWF0IjoxNzI1OTYwNjI5LCJpc3MiOiJBQURCSjZMU0xBVU1MWk5MU0ZIRE1TM0lPRks1QkxGQjYzVzNTR0xQR0Q1M0lMUERENjJXTjc0QSIsIm5hbWUiOiJ0Zi1uYXRzLWNyZWRlbnRpYWxzLWdyYWNpb3VzLWJlbGwiLCJzdWIiOiJVQ0tTRklMTFhHTEdLN1dTQlJPVUdHN1hDVlBJQkpORVU1REVKU1NMU0hNSUlYTFZBN1YzVVRONCIsIm5hdHMiOnsicHViIjp7fSwic3ViIjp7fSwic3VicyI6LTEsImRhdGEiOi0xLCJwYXlsb2FkIjotMSwiaXNzdWVyX2FjY291bnQiOiJBQ0tGV0RZNURHNTVIWFROU0dRV05RQlpRRkJNRTJRTUZKSFdGN0VaSkpNM0daNlJOUEVWTERJViIsInR5cGUiOiJ1c2VyIiwidmVyc2lvbiI6Mn19.t6ZcjhnbXR8ZTa-EL_6VL3y2X2qcYTCYdo06mwD1F1nO6G0qjIRt-B5mGl27u6rFhttp13sVLDIzmaN6J8YJDQ\n------END NATS USER JWT------\n\n************************* IMPORTANT *************************\nNKEY Seed printed below can be used to sign and prove identity.\nNKEYs are sensitive and should be treated as secrets.\n\n-----BEGIN USER NKEY SEED-----\nSUABUZKV4ZZGTMAENIGOCLVEC2NNQZPIPJMVFUGIMOYENDZIVRLGVR7YGE\n------END USER NKEY SEED------\n\n*************************************************************\n","name":"user.creds"},"id":"d1900821-4077-4333-8f6e-055b4286ba43","name":"tf-nats-credentials-gracious-bell","nats_account_id":"ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV","updated_at":null}' + headers: + Content-Length: + - "1458" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:29 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7e2d5bd6-af1d-4a6d-82f4-a74014464f13 + status: 200 OK + code: 200 + duration: 105.526556ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/d1900821-4077-4333-8f6e-055b4286ba43 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 299 + uncompressed: false + body: '{"checksum":"4871b4ee442f55ef6ee0369cdcee4fe053e13111","created_at":"2024-09-10T09:30:29.718291Z","credentials":null,"id":"d1900821-4077-4333-8f6e-055b4286ba43","name":"tf-nats-credentials-gracious-bell","nats_account_id":"ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV","updated_at":null}' + headers: + Content-Length: + - "299" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:29 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - faa4a80f-43e6-42b3-8221-3262ab8b4daf + status: 200 OK + code: 200 + duration: 60.87175ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/d1900821-4077-4333-8f6e-055b4286ba43 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 299 + uncompressed: false + body: '{"checksum":"4871b4ee442f55ef6ee0369cdcee4fe053e13111","created_at":"2024-09-10T09:30:29.718291Z","credentials":null,"id":"d1900821-4077-4333-8f6e-055b4286ba43","name":"tf-nats-credentials-gracious-bell","nats_account_id":"ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV","updated_at":null}' + headers: + Content-Length: + - "299" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:30 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 66e1c316-e281-4762-b6f1-c64768f4cb25 + status: 200 OK + code: 200 + duration: 58.492785ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/c9ebaf73-e459-45a7-82a9-cdb74d848025 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 249 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:29.085054Z","description":"","id":"c9ebaf73-e459-45a7-82a9-cdb74d848025","name":"tf_tests_mnq_nats_credential_basic","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:29.085054Z"}' + headers: + Content-Length: + - "249" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:30 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7b8f9a64-6f5d-4d79-b0bf-12ed93efa352 + status: 200 OK + code: 200 + duration: 102.48162ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 321 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:29.446683Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV","name":"test-mnq-nats-credentials-basic-test","project_id":"c9ebaf73-e459-45a7-82a9-cdb74d848025","region":"fr-par","updated_at":"2024-09-10T09:30:29.446683Z"}' + headers: + Content-Length: + - "321" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:30 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 686caef8-5004-41ec-a163-25a24b18305d + status: 200 OK + code: 200 + duration: 87.182336ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/d1900821-4077-4333-8f6e-055b4286ba43 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 299 + uncompressed: false + body: '{"checksum":"4871b4ee442f55ef6ee0369cdcee4fe053e13111","created_at":"2024-09-10T09:30:29.718291Z","credentials":null,"id":"d1900821-4077-4333-8f6e-055b4286ba43","name":"tf-nats-credentials-gracious-bell","nats_account_id":"ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV","updated_at":null}' + headers: + Content-Length: + - "299" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:30 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - de8f5a28-0fc2-4e6a-a866-59c6e1482a40 + status: 200 OK + code: 200 + duration: 71.863718ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/d1900821-4077-4333-8f6e-055b4286ba43 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:31 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 589fd357-d358-4b23-b6c1-3f2e119979fc + status: 204 No Content + code: 204 + duration: 101.415557ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACKFWDY5DG55HXTNSGQWNQBZQFBME2QMFJHWF7EZJJM3GZ6RNPEVLDIV + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:31 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0cae5a68-8232-45a8-a2ad-40b5ae8fc274 + status: 204 No Content + code: 204 + duration: 177.460965ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/c9ebaf73-e459-45a7-82a9-cdb74d848025 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:33 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7563d1de-1aa4-47f9-8ac7-78d7dfaf3f05 + status: 204 No Content + code: 204 + duration: 1.426469559s + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/d1900821-4077-4333-8f6e-055b4286ba43 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 131 + uncompressed: false + body: '{"message":"resource is not found","resource":"credential","resource_id":"d1900821-4077-4333-8f6e-055b4286ba43","type":"not_found"}' + headers: + Content-Length: + - "131" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:33 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 88b820d6-f443-460a-8cc9-892a9a038d2e + status: 404 Not Found + code: 404 + duration: 24.967612ms diff --git a/internal/services/mnq/testdata/nats-credentials-update-name.cassette.yaml b/internal/services/mnq/testdata/nats-credentials-update-name.cassette.yaml index ca8f1fb15..37049da7d 100644 --- a/internal/services/mnq/testdata/nats-credentials-update-name.cassette.yaml +++ b/internal/services/mnq/testdata/nats-credentials-update-name.cassette.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 94 + content_length: 120 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"name":"test-mnq-nats-credentials-basic","project_id":"105bdce1-64c0-48ab-899d-868455867ecf"}' + body: '{"name":"tf_tests_mnq_nats_credential_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","description":""}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects method: POST response: proto: HTTP/2.0 @@ -27,20 +27,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 322 + content_length: 250 uncompressed: false - body: '{"created_at":"2024-08-29T14:17:13.740673207Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","name":"test-mnq-nats-credentials-basic","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","updated_at":"2024-08-29T14:17:13.740673207Z"}' + body: '{"created_at":"2024-09-10T09:30:21.189590Z","description":"","id":"f546bcf5-afcd-4de5-b504-37e619291e02","name":"tf_tests_mnq_nats_credential_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:21.189590Z"}' headers: Content-Length: - - "322" + - "250" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:13 GMT + - Tue, 10 Sep 2024 09:30:21 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -48,10 +48,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 45f759d2-3f84-4c20-8cb2-c891da56751b + - 79e213e9-7c70-4e24-ac8c-0d88ade775d1 status: 200 OK code: 200 - duration: 162.292599ms + duration: 282.192707ms - id: 1 request: proto: HTTP/1.1 @@ -67,8 +67,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/f546bcf5-afcd-4de5-b504-37e619291e02 method: GET response: proto: HTTP/2.0 @@ -76,20 +76,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 316 + content_length: 250 uncompressed: false - body: '{"created_at":"2024-08-29T14:17:13.740673Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","name":"test-mnq-nats-credentials-basic","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","updated_at":"2024-08-29T14:17:13.740673Z"}' + body: '{"created_at":"2024-09-10T09:30:21.189590Z","description":"","id":"f546bcf5-afcd-4de5-b504-37e619291e02","name":"tf_tests_mnq_nats_credential_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:21.189590Z"}' headers: Content-Length: - - "316" + - "250" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:13 GMT + - Tue, 10 Sep 2024 09:30:21 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -97,29 +97,29 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3a395fea-e77b-4041-9a7a-e4448b9d49b4 + - 89479235-befc-42f7-9a76-1c05a96ad7db status: 200 OK code: 200 - duration: 50.986779ms + duration: 150.62268ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 127 + content_length: 95 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","name":"tf-nats-credentials-determined-robinson"}' + body: '{"name":"test-mnq-nats-credentials-update","project_id":"f546bcf5-afcd-4de5-b504-37e619291e02"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts method: POST response: proto: HTTP/2.0 @@ -127,20 +127,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 1472 + content_length: 323 uncompressed: false - body: '{"checksum":"303d602923c5c9e0eda21bac3cf4fee222c4208b","created_at":"2024-08-29T14:17:13.909919326Z","credentials":{"content":"-----BEGIN NATS USER JWT-----\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJVMjM2NFFGTUxQQVNSUVVUQ1Q1STRLRk5QMlpFUlVHQjdST1hQUUlGQlZUVkFDSTNRQVZBIiwiaWF0IjoxNzI0OTQxMDMzLCJpc3MiOiJBQk1JS0xUT1k2Q0lGWEFETTM1NFZLS1lIN09JUDJHUk1VSEhJRjQ2M00zQUlEU1RFSFkzNUFDUSIsIm5hbWUiOiJ0Zi1uYXRzLWNyZWRlbnRpYWxzLWRldGVybWluZWQtcm9iaW5zb24iLCJzdWIiOiJVQlhTMkE1UFJWU0VKQzRBSFhaTEdDT00yWlJCT1pERTI1Nk4zVDM2UUZQNDRSQkZYQjY3MjJIMiIsIm5hdHMiOnsicHViIjp7fSwic3ViIjp7fSwic3VicyI6LTEsImRhdGEiOi0xLCJwYXlsb2FkIjotMSwiaXNzdWVyX2FjY291bnQiOiJBQ1BHUUk2U1NIQUNIV0NLNFlGVEpaU05CQ082SkpUR0ZRTEdWU1BaSzVSREJBTkdESTRZWEo2UCIsInR5cGUiOiJ1c2VyIiwidmVyc2lvbiI6Mn19.V1N7QL29gyvuONWrVag9QBE-MtXfiJAN4cdgzzdbSYDwIXDxlKu8WBMRcfQBFdUvUCK6C7O9i70O7Znt6WTSCA\n------END NATS USER JWT------\n\n************************* IMPORTANT *************************\nNKEY Seed printed below can be used to sign and prove identity.\nNKEYs are sensitive and should be treated as secrets.\n\n-----BEGIN USER NKEY SEED-----\nSUAPXRZZG23WJZ4AHI75U5JKCW7LDE55A6IXTBPMYKQFE3WXZOE4HUK3QY\n------END USER NKEY SEED------\n\n*************************************************************\n","name":"user.creds"},"id":"2dd16bea-efbc-4a6f-8e03-25c62bc57f49","name":"tf-nats-credentials-determined-robinson","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"created_at":"2024-09-10T09:30:21.629943713Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","name":"test-mnq-nats-credentials-update","project_id":"f546bcf5-afcd-4de5-b504-37e619291e02","region":"fr-par","updated_at":"2024-09-10T09:30:21.629943713Z"}' headers: Content-Length: - - "1472" + - "323" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:13 GMT + - Tue, 10 Sep 2024 09:30:21 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -148,10 +148,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9b5e54b2-b181-4eee-9cd5-3fd1355f7237 + - 032056f4-c675-4e49-a59d-0cf2fcaf44cf status: 200 OK code: 200 - duration: 74.412927ms + duration: 189.401609ms - id: 3 request: proto: HTTP/1.1 @@ -167,8 +167,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/2dd16bea-efbc-4a6f-8e03-25c62bc57f49 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO method: GET response: proto: HTTP/2.0 @@ -176,20 +176,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 305 + content_length: 317 uncompressed: false - body: '{"checksum":"303d602923c5c9e0eda21bac3cf4fee222c4208b","created_at":"2024-08-29T14:17:13.910115Z","credentials":null,"id":"2dd16bea-efbc-4a6f-8e03-25c62bc57f49","name":"tf-nats-credentials-determined-robinson","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"created_at":"2024-09-10T09:30:21.629943Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","name":"test-mnq-nats-credentials-update","project_id":"f546bcf5-afcd-4de5-b504-37e619291e02","region":"fr-par","updated_at":"2024-09-10T09:30:21.629943Z"}' headers: Content-Length: - - "305" + - "317" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:13 GMT + - Tue, 10 Sep 2024 09:30:21 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -197,48 +197,50 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4a5bcb28-359f-497b-bed6-7336424068d1 + - 1517eb62-1805-44a2-9296-580458c745ec status: 200 OK code: 200 - duration: 51.284433ms + duration: 129.65429ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 0 + content_length: 121 transfer_encoding: [] trailer: {} host: api.scaleway.com remote_addr: "" request_uri: "" - body: "" + body: '{"nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","name":"tf-nats-credentials-jolly-wescoff"}' form: {} headers: + Content-Type: + - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/2dd16bea-efbc-4a6f-8e03-25c62bc57f49 - method: GET + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials + method: POST response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 305 + content_length: 1458 uncompressed: false - body: '{"checksum":"303d602923c5c9e0eda21bac3cf4fee222c4208b","created_at":"2024-08-29T14:17:13.910115Z","credentials":null,"id":"2dd16bea-efbc-4a6f-8e03-25c62bc57f49","name":"tf-nats-credentials-determined-robinson","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"checksum":"fd0e2be7a93591ea0b4d88650b38f5bae9bd3be9","created_at":"2024-09-10T09:30:21.979045803Z","credentials":{"content":"-----BEGIN NATS USER JWT-----\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJIRlFKWkdLSlIyNDJXRzJXMlhES05CWjZPVFUyRlE3M0VKWjZOWVlSRklWS0ZXTjIzR09RIiwiaWF0IjoxNzI1OTYwNjIxLCJpc3MiOiJBQ0pWQ1ZDVjJBWTNERzNVN0pMRFIzWjdTS1JZWllRUlg2QVVXNVNLVzZSRjZKWkVTVFZLV05NViIsIm5hbWUiOiJ0Zi1uYXRzLWNyZWRlbnRpYWxzLWpvbGx5LXdlc2NvZmYiLCJzdWIiOiJVQ09YR0VCR0U0NENaWEFCUUpQU09FV1A2VjVMUEoyVVhSNUczTUtCWDJQT001TVJPRUY0Uk1OUCIsIm5hdHMiOnsicHViIjp7fSwic3ViIjp7fSwic3VicyI6LTEsImRhdGEiOi0xLCJwYXlsb2FkIjotMSwiaXNzdWVyX2FjY291bnQiOiJBQjQyS1ZXSVFaQjRUSk1PM0lDNExPMkU2UVFSVlhaWUdYTFZZMlpPNkpUS01WUEJPWktRQ1VGTyIsInR5cGUiOiJ1c2VyIiwidmVyc2lvbiI6Mn19.ZJv9tMQW6ytJJ-cZXUNrFz02_XL622ZuhfgA-YsG90J1eGQIi62Y5OpDc6m_ZwVbK6djk4WV9w6vUqKfK9i0CA\n------END NATS USER JWT------\n\n************************* IMPORTANT *************************\nNKEY Seed printed below can be used to sign and prove identity.\nNKEYs are sensitive and should be treated as secrets.\n\n-----BEGIN USER NKEY SEED-----\nSUAO76TABMD7W5J3ZK5IJ25FHUVN3VUKTXGXVH7KCTKIEGL22KHICUXLLE\n------END USER NKEY SEED------\n\n*************************************************************\n","name":"user.creds"},"id":"7bcfb711-6321-4da6-bdba-e0cc9c44c6ef","name":"tf-nats-credentials-jolly-wescoff","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' headers: Content-Length: - - "305" + - "1458" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:14 GMT + - Tue, 10 Sep 2024 09:30:21 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -246,10 +248,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 76e7b6b3-da7c-491c-b295-f0bb91acc8eb + - b57049ca-b56e-4988-9207-3a46c3fa6634 status: 200 OK code: 200 - duration: 70.69564ms + duration: 145.283476ms - id: 5 request: proto: HTTP/1.1 @@ -265,8 +267,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/7bcfb711-6321-4da6-bdba-e0cc9c44c6ef method: GET response: proto: HTTP/2.0 @@ -274,20 +276,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 316 + content_length: 299 uncompressed: false - body: '{"created_at":"2024-08-29T14:17:13.740673Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","name":"test-mnq-nats-credentials-basic","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","updated_at":"2024-08-29T14:17:13.740673Z"}' + body: '{"checksum":"fd0e2be7a93591ea0b4d88650b38f5bae9bd3be9","created_at":"2024-09-10T09:30:21.979272Z","credentials":null,"id":"7bcfb711-6321-4da6-bdba-e0cc9c44c6ef","name":"tf-nats-credentials-jolly-wescoff","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' headers: Content-Length: - - "316" + - "299" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:14 GMT + - Tue, 10 Sep 2024 09:30:22 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -295,10 +297,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 19ca7a44-f6d6-4195-a775-d09e7ada46c2 + - 453cc453-750c-426a-9921-383afcf188a3 status: 200 OK code: 200 - duration: 64.806507ms + duration: 185.874532ms - id: 6 request: proto: HTTP/1.1 @@ -314,8 +316,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/2dd16bea-efbc-4a6f-8e03-25c62bc57f49 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/7bcfb711-6321-4da6-bdba-e0cc9c44c6ef method: GET response: proto: HTTP/2.0 @@ -323,20 +325,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 305 + content_length: 299 uncompressed: false - body: '{"checksum":"303d602923c5c9e0eda21bac3cf4fee222c4208b","created_at":"2024-08-29T14:17:13.910115Z","credentials":null,"id":"2dd16bea-efbc-4a6f-8e03-25c62bc57f49","name":"tf-nats-credentials-determined-robinson","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"checksum":"fd0e2be7a93591ea0b4d88650b38f5bae9bd3be9","created_at":"2024-09-10T09:30:21.979272Z","credentials":null,"id":"7bcfb711-6321-4da6-bdba-e0cc9c44c6ef","name":"tf-nats-credentials-jolly-wescoff","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' headers: Content-Length: - - "305" + - "299" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:14 GMT + - Tue, 10 Sep 2024 09:30:22 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -344,10 +346,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2cd60e96-9ed9-4a56-8b6d-93c155690c13 + - 9ffc297a-b79e-46c3-b085-d52fcb34f2c6 status: 200 OK code: 200 - duration: 52.013282ms + duration: 141.422057ms - id: 7 request: proto: HTTP/1.1 @@ -363,8 +365,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/f546bcf5-afcd-4de5-b504-37e619291e02 method: GET response: proto: HTTP/2.0 @@ -372,20 +374,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 316 + content_length: 250 uncompressed: false - body: '{"created_at":"2024-08-29T14:17:13.740673Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","name":"test-mnq-nats-credentials-basic","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","updated_at":"2024-08-29T14:17:13.740673Z"}' + body: '{"created_at":"2024-09-10T09:30:21.189590Z","description":"","id":"f546bcf5-afcd-4de5-b504-37e619291e02","name":"tf_tests_mnq_nats_credential_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:21.189590Z"}' headers: Content-Length: - - "316" + - "250" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:14 GMT + - Tue, 10 Sep 2024 09:30:23 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -393,10 +395,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 34b785b6-7ab8-4308-a5e4-1dc21223ba7c + - 9650b557-4f9d-4aa5-beb0-314c9a6ec4b3 status: 200 OK code: 200 - duration: 49.52871ms + duration: 123.823213ms - id: 8 request: proto: HTTP/1.1 @@ -412,8 +414,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/2dd16bea-efbc-4a6f-8e03-25c62bc57f49 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO method: GET response: proto: HTTP/2.0 @@ -421,20 +423,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 305 + content_length: 317 uncompressed: false - body: '{"checksum":"303d602923c5c9e0eda21bac3cf4fee222c4208b","created_at":"2024-08-29T14:17:13.910115Z","credentials":null,"id":"2dd16bea-efbc-4a6f-8e03-25c62bc57f49","name":"tf-nats-credentials-determined-robinson","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"created_at":"2024-09-10T09:30:21.629943Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","name":"test-mnq-nats-credentials-update","project_id":"f546bcf5-afcd-4de5-b504-37e619291e02","region":"fr-par","updated_at":"2024-09-10T09:30:21.629943Z"}' headers: Content-Length: - - "305" + - "317" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:15 GMT + - Tue, 10 Sep 2024 09:30:23 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -442,10 +444,10 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3694b05e-be83-490f-9dfb-9541b9093085 + - 920a8f97-cb64-4f56-806c-f420a99f9e6a status: 200 OK code: 200 - duration: 61.027395ms + duration: 73.638392ms - id: 9 request: proto: HTTP/1.1 @@ -461,8 +463,204 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/2dd16bea-efbc-4a6f-8e03-25c62bc57f49 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/7bcfb711-6321-4da6-bdba-e0cc9c44c6ef + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 299 + uncompressed: false + body: '{"checksum":"fd0e2be7a93591ea0b4d88650b38f5bae9bd3be9","created_at":"2024-09-10T09:30:21.979272Z","credentials":null,"id":"7bcfb711-6321-4da6-bdba-e0cc9c44c6ef","name":"tf-nats-credentials-jolly-wescoff","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' + headers: + Content-Length: + - "299" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - efd35dcb-7f08-441f-95f9-22205648f22c + status: 200 OK + code: 200 + duration: 110.327394ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/f546bcf5-afcd-4de5-b504-37e619291e02 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 250 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:21.189590Z","description":"","id":"f546bcf5-afcd-4de5-b504-37e619291e02","name":"tf_tests_mnq_nats_credential_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:21.189590Z"}' + headers: + Content-Length: + - "250" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 814e81f7-1058-454b-8987-61a326d6a1fe + status: 200 OK + code: 200 + duration: 198.912236ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 317 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:21.629943Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","name":"test-mnq-nats-credentials-update","project_id":"f546bcf5-afcd-4de5-b504-37e619291e02","region":"fr-par","updated_at":"2024-09-10T09:30:21.629943Z"}' + headers: + Content-Length: + - "317" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b9d75dfb-b031-41b5-9e04-921d5151d66f + status: 200 OK + code: 200 + duration: 119.066037ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/7bcfb711-6321-4da6-bdba-e0cc9c44c6ef + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 299 + uncompressed: false + body: '{"checksum":"fd0e2be7a93591ea0b4d88650b38f5bae9bd3be9","created_at":"2024-09-10T09:30:21.979272Z","credentials":null,"id":"7bcfb711-6321-4da6-bdba-e0cc9c44c6ef","name":"tf-nats-credentials-jolly-wescoff","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' + headers: + Content-Length: + - "299" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:24 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f50e3aae-9343-4a49-b940-febae9078240 + status: 200 OK + code: 200 + duration: 71.303044ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/7bcfb711-6321-4da6-bdba-e0cc9c44c6ef method: DELETE response: proto: HTTP/2.0 @@ -479,9 +677,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:15 GMT + - Tue, 10 Sep 2024 09:30:24 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -489,11 +687,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d8f8cdba-0c91-4760-a8f8-d63101f48284 + - b845818b-286d-43d6-90c2-eac96700dee5 status: 204 No Content code: 204 - duration: 81.997494ms - - id: 10 + duration: 99.007681ms + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -504,13 +702,13 @@ interactions: host: api.scaleway.com remote_addr: "" request_uri: "" - body: '{"nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","name":"toto"}' + body: '{"nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","name":"toto"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials method: POST response: @@ -521,7 +719,7 @@ interactions: trailer: {} content_length: 1391 uncompressed: false - body: '{"checksum":"afc3d9d07d101284dd6fe421fb90198831e8ac2a","created_at":"2024-08-29T14:17:15.602913099Z","credentials":{"content":"-----BEGIN NATS USER JWT-----\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJWRzZLVkVaSDVVUkVUWUlWMkxFSElNRUJLNjNWNTI1SjI3VUVDQTM3TVZRNDNXVTNYUzZRIiwiaWF0IjoxNzI0OTQxMDM1LCJpc3MiOiJBQk1JS0xUT1k2Q0lGWEFETTM1NFZLS1lIN09JUDJHUk1VSEhJRjQ2M00zQUlEU1RFSFkzNUFDUSIsIm5hbWUiOiJ0b3RvIiwic3ViIjoiVUFaR1BBVTM3VVhPWUlDVVZZMkNTTEhFRFBWVEpMQ1pHV1hIQjVGSTRQRDY1UkhYWTdRMkk3TFIiLCJuYXRzIjp7InB1YiI6e30sInN1YiI6e30sInN1YnMiOi0xLCJkYXRhIjotMSwicGF5bG9hZCI6LTEsImlzc3Vlcl9hY2NvdW50IjoiQUNQR1FJNlNTSEFDSFdDSzRZRlRKWlNOQkNPNkpKVEdGUUxHVlNQWks1UkRCQU5HREk0WVhKNlAiLCJ0eXBlIjoidXNlciIsInZlcnNpb24iOjJ9fQ.4F73hmpx0pggqQKicbhIcBj1bTPReL71LdCZaJRm8570AY4WJVJQHkgT_9sJ3I7vyuh0OvzLaHre-vYAa3HgAw\n------END NATS USER JWT------\n\n************************* IMPORTANT *************************\nNKEY Seed printed below can be used to sign and prove identity.\nNKEYs are sensitive and should be treated as secrets.\n\n-----BEGIN USER NKEY SEED-----\nSUALD6R57ECGS2O5FXPWZUQUWH5R4BBZJQV3KJGZXJ4YGHKLKUBDXDLEWQ\n------END USER NKEY SEED------\n\n*************************************************************\n","name":"user.creds"},"id":"e520f383-3256-4af5-8e3f-f18ce2c106bd","name":"toto","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"checksum":"75c70d8fbd891c97226fd0ae242fb6cde0d79131","created_at":"2024-09-10T09:30:24.934135911Z","credentials":{"content":"-----BEGIN NATS USER JWT-----\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJTTExYVUxLTFRWNEdQSTZGMkM3WDRPRVNIS1FHN0NBM1NIRzZPUzJGR0NTVUVOSlNVT1dBIiwiaWF0IjoxNzI1OTYwNjI0LCJpc3MiOiJBQ0pWQ1ZDVjJBWTNERzNVN0pMRFIzWjdTS1JZWllRUlg2QVVXNVNLVzZSRjZKWkVTVFZLV05NViIsIm5hbWUiOiJ0b3RvIiwic3ViIjoiVURDVkdNRldPTk5NTzJKWEFBQzJIWFdLSTI2TU1QRzNFR0tJRDNRQ05NRUc2WEJBVkRIS1dOUVAiLCJuYXRzIjp7InB1YiI6e30sInN1YiI6e30sInN1YnMiOi0xLCJkYXRhIjotMSwicGF5bG9hZCI6LTEsImlzc3Vlcl9hY2NvdW50IjoiQUI0MktWV0lRWkI0VEpNTzNJQzRMTzJFNlFRUlZYWllHWExWWTJaTzZKVEtNVlBCT1pLUUNVRk8iLCJ0eXBlIjoidXNlciIsInZlcnNpb24iOjJ9fQ.G-kfrG0lBZEf3DrD98uOTztHHCw59RDPkEsPLNY--GS020XyGJkfKFecpki_-wEJiII-KvLIXD8I_c6vp8-3CA\n------END NATS USER JWT------\n\n************************* IMPORTANT *************************\nNKEY Seed printed below can be used to sign and prove identity.\nNKEYs are sensitive and should be treated as secrets.\n\n-----BEGIN USER NKEY SEED-----\nSUAB3WDOMN2DJOWGXUVQD66JSJOSFWGGKGWHJV7NGCNJKIIEAD4OLTAXR4\n------END USER NKEY SEED------\n\n*************************************************************\n","name":"user.creds"},"id":"479d82a9-014a-43ee-9a34-940fcaee1372","name":"toto","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' headers: Content-Length: - "1391" @@ -530,9 +728,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:15 GMT + - Tue, 10 Sep 2024 09:30:24 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -540,11 +738,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f013fc0b-1432-4090-a543-93ada4a2ab96 + - ba09f8e0-cdb1-4a4d-bbbc-b4aeb9afc88b status: 200 OK code: 200 - duration: 54.693772ms - - id: 11 + duration: 118.60663ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -559,8 +757,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/e520f383-3256-4af5-8e3f-f18ce2c106bd + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/479d82a9-014a-43ee-9a34-940fcaee1372 method: GET response: proto: HTTP/2.0 @@ -570,7 +768,7 @@ interactions: trailer: {} content_length: 270 uncompressed: false - body: '{"checksum":"afc3d9d07d101284dd6fe421fb90198831e8ac2a","created_at":"2024-08-29T14:17:15.603175Z","credentials":null,"id":"e520f383-3256-4af5-8e3f-f18ce2c106bd","name":"toto","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"checksum":"75c70d8fbd891c97226fd0ae242fb6cde0d79131","created_at":"2024-09-10T09:30:24.934297Z","credentials":null,"id":"479d82a9-014a-43ee-9a34-940fcaee1372","name":"toto","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' headers: Content-Length: - "270" @@ -579,9 +777,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:15 GMT + - Tue, 10 Sep 2024 09:30:25 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -589,11 +787,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 95251ed0-c5aa-4444-a7c0-ad6551b6039b + - 3f1d05b3-ffae-4c1a-a7e9-12e95a512ace status: 200 OK code: 200 - duration: 50.995137ms - - id: 12 + duration: 99.527261ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -608,8 +806,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/e520f383-3256-4af5-8e3f-f18ce2c106bd + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/479d82a9-014a-43ee-9a34-940fcaee1372 method: GET response: proto: HTTP/2.0 @@ -619,7 +817,7 @@ interactions: trailer: {} content_length: 270 uncompressed: false - body: '{"checksum":"afc3d9d07d101284dd6fe421fb90198831e8ac2a","created_at":"2024-08-29T14:17:15.603175Z","credentials":null,"id":"e520f383-3256-4af5-8e3f-f18ce2c106bd","name":"toto","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"checksum":"75c70d8fbd891c97226fd0ae242fb6cde0d79131","created_at":"2024-09-10T09:30:24.934297Z","credentials":null,"id":"479d82a9-014a-43ee-9a34-940fcaee1372","name":"toto","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' headers: Content-Length: - "270" @@ -628,9 +826,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:15 GMT + - Tue, 10 Sep 2024 09:30:25 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -638,11 +836,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d395b24d-a092-4913-9313-de25e64c2887 + - 31e60ba5-4339-4255-9536-a757611b76b6 status: 200 OK code: 200 - duration: 64.40051ms - - id: 13 + duration: 88.814258ms + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -657,8 +855,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/f546bcf5-afcd-4de5-b504-37e619291e02 method: GET response: proto: HTTP/2.0 @@ -666,20 +864,20 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 316 + content_length: 250 uncompressed: false - body: '{"created_at":"2024-08-29T14:17:13.740673Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","name":"test-mnq-nats-credentials-basic","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","updated_at":"2024-08-29T14:17:15.506936Z"}' + body: '{"created_at":"2024-09-10T09:30:21.189590Z","description":"","id":"f546bcf5-afcd-4de5-b504-37e619291e02","name":"tf_tests_mnq_nats_credential_update","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","updated_at":"2024-09-10T09:30:21.189590Z"}' headers: Content-Length: - - "316" + - "250" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:16 GMT + - Tue, 10 Sep 2024 09:30:25 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -687,11 +885,60 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1e878b99-0e8f-4cee-8c70-9b0a874378c1 + - d5bbdeb7-0bf9-4c1e-9116-bd110332b7b7 status: 200 OK code: 200 - duration: 55.971733ms - - id: 14 + duration: 126.306146ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 317 + uncompressed: false + body: '{"created_at":"2024-09-10T09:30:21.629943Z","endpoint":"nats://nats.mnq.fr-par.scaleway.com:4222","id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","name":"test-mnq-nats-credentials-update","project_id":"f546bcf5-afcd-4de5-b504-37e619291e02","region":"fr-par","updated_at":"2024-09-10T09:30:24.797946Z"}' + headers: + Content-Length: + - "317" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:25 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b8ac1ed6-00b6-4cdf-9149-289f72849240 + status: 200 OK + code: 200 + duration: 77.073124ms + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -706,8 +953,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/e520f383-3256-4af5-8e3f-f18ce2c106bd + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/479d82a9-014a-43ee-9a34-940fcaee1372 method: GET response: proto: HTTP/2.0 @@ -717,7 +964,7 @@ interactions: trailer: {} content_length: 270 uncompressed: false - body: '{"checksum":"afc3d9d07d101284dd6fe421fb90198831e8ac2a","created_at":"2024-08-29T14:17:15.603175Z","credentials":null,"id":"e520f383-3256-4af5-8e3f-f18ce2c106bd","name":"toto","nats_account_id":"ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P","updated_at":null}' + body: '{"checksum":"75c70d8fbd891c97226fd0ae242fb6cde0d79131","created_at":"2024-09-10T09:30:24.934297Z","credentials":null,"id":"479d82a9-014a-43ee-9a34-940fcaee1372","name":"toto","nats_account_id":"AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO","updated_at":null}' headers: Content-Length: - "270" @@ -726,9 +973,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:16 GMT + - Tue, 10 Sep 2024 09:30:26 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -736,11 +983,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7ded7b96-336c-4467-91d4-ca9c47c90f78 + - c91acaf2-44e9-427a-b8f7-254105114f38 status: 200 OK code: 200 - duration: 42.040908ms - - id: 15 + duration: 82.594363ms + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -755,8 +1002,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/e520f383-3256-4af5-8e3f-f18ce2c106bd + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/479d82a9-014a-43ee-9a34-940fcaee1372 method: DELETE response: proto: HTTP/2.0 @@ -773,9 +1020,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:16 GMT + - Tue, 10 Sep 2024 09:30:26 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -783,11 +1030,11 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 219bc4f4-8158-4a4a-89f5-d89ca5fc877e + - fc6974b1-8fd4-4c97-9a98-3c19a95229d9 status: 204 No Content code: 204 - duration: 74.68599ms - - id: 16 + duration: 91.347236ms + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -802,8 +1049,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/ACPGQI6SSHACHWCK4YFTJZSNBCO6JJTGFQLGVSPZK5RDBANGDI4YXJ6P + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-accounts/AB42KVWIQZB4TJMO3IC4LO2E6QQRVXZYGXLVY2ZO6JTKMVPBOZKQCUFO method: DELETE response: proto: HTTP/2.0 @@ -820,9 +1067,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:16 GMT + - Tue, 10 Sep 2024 09:30:26 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -830,11 +1077,58 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 77ae5e7f-00f2-4f49-92e9-7a55c92c084a + - 5d037b84-e365-4834-a0eb-4d6212ac3ca4 status: 204 No Content code: 204 - duration: 203.984171ms - - id: 17 + duration: 162.571058ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: api.scaleway.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/account/v3/projects/f546bcf5-afcd-4de5-b504-37e619291e02 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 10 Sep 2024 09:30:28 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge03) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d81e4ebe-81ce-4707-9888-43f8bf085304 + status: 204 No Content + code: 204 + duration: 1.358404879s + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -849,8 +1143,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.4; darwin; amd64) terraform-provider/develop terraform/terraform-tests - url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/e520f383-3256-4af5-8e3f-f18ce2c106bd + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.0; darwin; amd64) terraform-provider/develop terraform/terraform-tests + url: https://api.scaleway.com/mnq/v1beta1/regions/fr-par/nats-credentials/479d82a9-014a-43ee-9a34-940fcaee1372 method: DELETE response: proto: HTTP/2.0 @@ -860,7 +1154,7 @@ interactions: trailer: {} content_length: 131 uncompressed: false - body: '{"message":"resource is not found","resource":"credential","resource_id":"e520f383-3256-4af5-8e3f-f18ce2c106bd","type":"not_found"}' + body: '{"message":"resource is not found","resource":"credential","resource_id":"479d82a9-014a-43ee-9a34-940fcaee1372","type":"not_found"}' headers: Content-Length: - "131" @@ -869,9 +1163,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Aug 2024 14:17:17 GMT + - Tue, 10 Sep 2024 09:30:28 GMT Server: - - Scaleway API Gateway (fr-par-1;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -879,7 +1173,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d865d91d-63a1-4571-a2b8-23139c99a289 + - 752e3fe0-3aaf-4c99-8516-d2c5bedd1b73 status: 404 Not Found code: 404 - duration: 25.889256ms + duration: 27.999981ms From 128dad44f54d1de66823c3f1c6d8a887daabc32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 11 Sep 2024 17:21:50 +0200 Subject: [PATCH 2/2] fix whitespace --- internal/services/mnq/nats_credentials_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/services/mnq/nats_credentials_test.go b/internal/services/mnq/nats_credentials_test.go index 8c5de0e8e..2629c3f6f 100644 --- a/internal/services/mnq/nats_credentials_test.go +++ b/internal/services/mnq/nats_credentials_test.go @@ -23,7 +23,6 @@ func TestAccNatsCredentials_Basic(t *testing.T) { Steps: []resource.TestStep{ { Config: ` - resource scaleway_account_project main { name = "tf_tests_mnq_nats_credential_basic" }