From 0259630899d0ac7af69e04c79d9956d23d5f7af5 Mon Sep 17 00:00:00 2001 From: jremy Date: Tue, 27 Feb 2024 11:32:58 +0100 Subject: [PATCH] feat(tem) : add ressource for validate tem domain --- docs/resources/tem_domain_validation.md | 38 + scaleway/resource_tem_domain_validation.go | 129 ++ .../resource_tem_domain_validation_test.go | 92 + .../tem-domain-validation-basic.cassette.yaml | 39 + ...ain-validation-no-validation.cassette.yaml | 455 +++++ ...domain-validation-validation.cassette.yaml | 1627 +++++++++++++++++ 6 files changed, 2380 insertions(+) create mode 100644 docs/resources/tem_domain_validation.md create mode 100644 scaleway/resource_tem_domain_validation.go create mode 100644 scaleway/resource_tem_domain_validation_test.go create mode 100644 scaleway/testdata/tem-domain-validation-basic.cassette.yaml create mode 100644 scaleway/testdata/tem-domain-validation-no-validation.cassette.yaml create mode 100644 scaleway/testdata/tem-domain-validation-validation.cassette.yaml diff --git a/docs/resources/tem_domain_validation.md b/docs/resources/tem_domain_validation.md new file mode 100644 index 0000000000..cbe7457833 --- /dev/null +++ b/docs/resources/tem_domain_validation.md @@ -0,0 +1,38 @@ +--- +subcategory: "Transactional Email" +page_title: "Scaleway: scaleway_tem_domain" +--- + +# Resource: scaleway_tem_domain_validation + +This Terraform resource manages the validation of domains for use with Scaleway's Transactional Email Management (TEM) service. It ensures that domains used for sending emails are verified and comply with Scaleway's requirements for email sending. +For more information see [the documentation](https://developers.scaleway.com/en/products/transactional_email/api/). + +## Example Usage + +### Basic + +```terraform +resource "scaleway_tem_domain_validation" "example" { + domain_id = "your-domain-id" + region = "fr-par" + timeout = 300 +} +``` + +## Argument Reference + +The following arguments are supported: + +- `domain_id` - (Required) The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service. + +- `region` - (Defaults to [provider](../index.md#region) `region`). Specifies the [region](../guides/regions_and_zones.md#regions) where the domain is registered. If not specified, it defaults to the provider's region. + +- `timeout` - (Optional) The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `validated` - Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource. + diff --git a/scaleway/resource_tem_domain_validation.go b/scaleway/resource_tem_domain_validation.go new file mode 100644 index 0000000000..cf1b19edf3 --- /dev/null +++ b/scaleway/resource_tem_domain_validation.go @@ -0,0 +1,129 @@ +package scaleway + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + tem "github.com/scaleway/scaleway-sdk-go/api/tem/v1alpha1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func resourceScalewayTemDomainValidation() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayTemDomainValidationCreate, + ReadContext: resourceScalewayTemDomainValidationRead, + DeleteContext: resourceScalewayTemDomainValidationDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Create: schema.DefaultTimeout(defaultTemDomainValidationTimeout), + Delete: schema.DefaultTimeout(defaultTemDomainValidationTimeout), + Default: schema.DefaultTimeout(defaultTemDomainValidationTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "domain_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "The id of domain name used when sending emails.", + }, + "region": regionSchema(), + "timeout": { + Type: schema.TypeInt, + Optional: true, + ForceNew: true, + Default: 300, + Description: "Maximum wait time in second before returning an error.", + }, + "validated": { + Type: schema.TypeBool, + Computed: true, + Description: "Indicates if the domain is verified for email sending", + }, + }, + } +} + +func resourceScalewayTemDomainValidationCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := temAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + d.SetId(d.Get("domain_id").(string)) + diagnostics := validateDomain(ctx, d, err, api, region) + if diagnostics != nil { + return diagnostics + } + return resourceScalewayTemDomainValidationRead(ctx, d, meta) +} + +func resourceScalewayTemDomainValidationRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := temAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + domainID := d.Id() + getDomainRequest := &tem.GetDomainRequest{ + Region: region, + DomainID: extractAfterSlash(domainID), + } + domain, err := api.GetDomain(getDomainRequest, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + _ = d.Set("validated", domain.Status == "checked") + + return nil +} + +func resourceScalewayTemDomainValidationDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + d.SetId("") + return nil +} + +func extractAfterSlash(s string) string { + lastIndex := strings.LastIndex(s, "/") + if lastIndex == -1 { + return s + } + return s[lastIndex+1:] +} + +func validateDomain(ctx context.Context, d *schema.ResourceData, err error, api *tem.API, region scw.Region) diag.Diagnostics { + domain, err := api.GetDomain(&tem.GetDomainRequest{ + Region: region, + DomainID: extractAfterSlash(d.Get("domain_id").(string)), + }, scw.WithContext(ctx)) + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + timeout := time.Duration(d.Get("timeout").(int)) * time.Second + err = retry.RetryContext(ctx, timeout, func() *retry.RetryError { + domainCheck, _ := api.CheckDomain(&tem.CheckDomainRequest{ + Region: region, + DomainID: domain.ID, + }) + if domainCheck == nil || domainCheck.Status == "pending" || domainCheck.Status == "unchecked" { + return retry.RetryableError(fmt.Errorf("retry")) + } + return nil + }) + return nil +} diff --git a/scaleway/resource_tem_domain_validation_test.go b/scaleway/resource_tem_domain_validation_test.go new file mode 100644 index 0000000000..424bdffb25 --- /dev/null +++ b/scaleway/resource_tem_domain_validation_test.go @@ -0,0 +1,92 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func init() { + resource.AddTestSweepers("scaleway_tem_domain_validation", &resource.Sweeper{ + Name: "scaleway_tem_domain_validation", + F: testSweepTemDomain, + }) +} + +func TestAccScalewayTemDomainValidation_NoValidation(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + + domainName := "terraform-rs.test.local" + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayTemDomainDestroy(tt), + Steps: []resource.TestStep{ + { + Config: fmt.Sprintf(` + resource scaleway_tem_domain cr01 { + name = "%s" + accept_tos = true + } + + resource scaleway_tem_domain_validation valid { + domain_id = scaleway_tem_domain.cr01.id + region = scaleway_tem_domain.cr01.region + timeout = 1 + } + `, domainName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("scaleway_tem_domain_validation.valid", "validated", "false"), + ), + }, + }, + }) +} + +func TestAccScalewayTemDomainValidation_Validation(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + domainName := "scaleway-terraform.com" + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayTemDomainDestroy(tt), + Steps: []resource.TestStep{ + { + Config: fmt.Sprintf(` + resource scaleway_tem_domain cr01 { + name = "%s" + accept_tos = true + } + resource "scaleway_domain_record" "spf" { + dns_zone = "%s" + type = "TXT" + data = "v=spf1 ${scaleway_tem_domain.cr01.spf_config} -all" + } + resource "scaleway_domain_record" "dkim" { + dns_zone = "%s" + name = "${scaleway_tem_domain.cr01.project_id}._domainkey" + type = "TXT" + data = scaleway_tem_domain.cr01.dkim_config + } + resource "scaleway_domain_record" "mx" { + dns_zone = "%s" + type = "MX" + data = "." + } + resource scaleway_tem_domain_validation valid { + domain_id = scaleway_tem_domain.cr01.id + region = scaleway_tem_domain.cr01.region + timeout = 3600 + } + `, domainName, domainName, domainName, domainName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("scaleway_tem_domain_validation.valid", "validated", "true"), + ), + }, + }, + }) +} diff --git a/scaleway/testdata/tem-domain-validation-basic.cassette.yaml b/scaleway/testdata/tem-domain-validation-basic.cassette.yaml new file mode 100644 index 0000000000..9c8fea4b1d --- /dev/null +++ b/scaleway/testdata/tem-domain-validation-basic.cassette.yaml @@ -0,0 +1,39 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"46fd79d8-1a35-4548-bfb8-03df51a0ebae","domain_name":"terraform-rs.test.local","accept_tos":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains + method: POST + response: + body: '{"details":[{"current":3,"quota":3,"resource":"TemDomains"}],"message":"quota(s) + exceeded for this resource","type":"quotas_exceeded"}' + headers: + Content-Length: + - "134" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 23 Feb 2024 14:30:23 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 41712974-663b-4829-bf95-e485f9dcf3cf + status: 403 Forbidden + code: 403 + duration: "" diff --git a/scaleway/testdata/tem-domain-validation-no-validation.cassette.yaml b/scaleway/testdata/tem-domain-validation-no-validation.cassette.yaml new file mode 100644 index 0000000000..ae34dd87ee --- /dev/null +++ b/scaleway/testdata/tem-domain-validation-no-validation.cassette.yaml @@ -0,0 +1,455 @@ +--- +version: 1 +interactions: +- request: + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","domain_name":"terraform-rs.test.local","accept_tos":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains + method: POST + response: + body: '{"created_at":"2024-02-27T10:25:57.928318946Z","dkim_config":"v=DKIM1; + h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "946" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:25:57 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4d885e69-ac3a-4ab8-960c-9975121dd063 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a + method: GET + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "943" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:25:58 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 29500b53-7666-467a-a0db-4682d6fab713 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a + method: GET + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "943" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:25:58 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0c4088cd-b8d3-45a9-ac5e-b23013eecad2 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":"2024-02-27T10:25:58.314604925Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "971" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:25:58 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1c15e0b9-d65d-4fe6-bd44-e21c96778f9b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":"2024-02-27T10:25:58.863954717Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "971" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:25:58 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dcc21f0c-ecec-49ef-9d3b-1f0f87c5f13c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a + method: GET + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":"2024-02-27T10:25:58.863954Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "968" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:25:59 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 380c82f4-294d-42e5-aa42-c8d6f934444b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a + method: GET + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":"2024-02-27T10:25:58.863954Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "968" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:26:00 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a04b8536-972f-426c-b960-7a11d0b351c5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a + method: GET + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":"2024-02-27T10:25:58.863954Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "968" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:26:00 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 312ed4ef-2e12-4bb8-9398-e7529caa3644 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a + method: GET + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":"2024-02-27T10:25:58.863954Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "968" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:26:01 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 403f9d66-d158-42e2-aa56-446a1b987451 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a/revoke + method: POST + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":"2024-02-27T10:26:01.808108761Z","spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"revoked"}' + headers: + Content-Length: + - "969" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:26:01 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 48253422-4951-4c39-a93c-77bebc3a08c4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a + method: GET + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":"2024-02-27T10:26:01.808108Z","spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"revoked"}' + headers: + Content-Length: + - "966" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:26:01 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 110af9fe-0b1c-4b3d-b600-5b36231ba4c3 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a/revoke + method: POST + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":"2024-02-27T10:26:01.808108Z","spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"revoked"}' + headers: + Content-Length: + - "966" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:26:01 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 06c1d060-c874-4340-ab60-fb266e2555aa + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/6d7d5aaf-d212-43b5-a2e5-b7430d55896a + method: GET + response: + body: '{"created_at":"2024-02-27T10:25:57.928318Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Hia+HtosTjcrx5SbPK5mYN6InQoeCkjtFVp7o9zZV1KSjlFK3rISBqYd1YY+KZt9BDIHg1E0eSHpE0qMgSgIyNOOAEOH8Dj33pcz1rOfA8Mjif/B2LVecs1udOhZF/54yzFg5G7LMEjwpUgZ8wDdUOGOveVB+00cHrskkORVqsUsvpNPGG9ho6PQd9/5n3LHbZHJ4akWlQrqKasHJylYaYtM82QGRF1Um5RhZPOIs6QXM4PPI2WDZedMfWcU5liLiInAioZQHQp0nBMqyQeSHi+Xlwj9o6KGlcpxchsuidZCjeGh8vFGisxqJgWg3aYfUEsT805AIbhYPUbpGO7cwIDAQAB","id":"6d7d5aaf-d212-43b5-a2e5-b7430d55896a","last_error":null,"last_valid_at":null,"name":"terraform-rs.test.local","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":"2024-02-27T10:26:01.808108Z","spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"revoked"}' + headers: + Content-Length: + - "966" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:26:02 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge02) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 40056875-5cff-4918-99ee-e991caa431ae + status: 200 OK + code: 200 + duration: "" diff --git a/scaleway/testdata/tem-domain-validation-validation.cassette.yaml b/scaleway/testdata/tem-domain-validation-validation.cassette.yaml new file mode 100644 index 0000000000..3462fbe2e5 --- /dev/null +++ b/scaleway/testdata/tem-domain-validation-validation.cassette.yaml @@ -0,0 +1,1627 @@ +--- +version: 1 +interactions: +- request: + body: '{"changes":[{"add":{"records":[{"data":".","name":"","priority":0,"ttl":3600,"type":"MX","comment":null,"id":""}]}}],"return_all_records":false,"disallow_new_zone_creation":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records + method: PATCH + response: + body: '{"records":[{"comment":null,"data":"0 .","id":"6da83cdc-9bb2-4f3f-8306-10ef53ef8c79","name":"","priority":0,"ttl":3600,"type":"MX"}]}' + headers: + Content-Length: + - "139" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:21 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2215dc25-284e-4057-8c43-336f9712f965 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?name=&order_by=name_asc&type=MX + method: GET + response: + body: '{"records":[{"comment":null,"data":"0 .","id":"6da83cdc-9bb2-4f3f-8306-10ef53ef8c79","name":"","priority":0,"ttl":3600,"type":"MX"}],"total_count":1}' + headers: + Content-Length: + - "156" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:21 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 66f913e2-d7d0-49f2-a49a-6d169a9f4d10 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?name=&order_by=name_asc&page=1&type=MX + method: GET + response: + body: '{"records":[{"comment":null,"data":"0 .","id":"6da83cdc-9bb2-4f3f-8306-10ef53ef8c79","name":"","priority":0,"ttl":3600,"type":"MX"}],"total_count":1}' + headers: + Content-Length: + - "156" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:21 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3e8e0c34-bd9d-4d31-9100-48a8b37ff260 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?id=6da83cdc-9bb2-4f3f-8306-10ef53ef8c79&name=&order_by=name_asc&page=1&type=unknown + method: GET + response: + body: '{"records":[{"comment":null,"data":"0 .","id":"6da83cdc-9bb2-4f3f-8306-10ef53ef8c79","name":"","priority":0,"ttl":3600,"type":"MX"}],"total_count":1}' + headers: + Content-Length: + - "156" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:21 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dea3573c-67e8-446b-84ce-0ecd8fe6d7ea + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones?dns_zone=scaleway-terraform.com&domain=&order_by=domain_asc&page=1 + method: GET + response: + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"","updated_at":"2024-02-27T10:27:21Z"}],"total_count":1}' + headers: + Content-Length: + - "354" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:21 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b3d2f58e-2500-4c49-9e75-e8b19b379cbf + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","domain_name":"scaleway-terraform.com","accept_tos":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356540Z","dkim_config":"v=DKIM1; + h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":null,"last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "945" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e9e65ad4-d7e0-44a3-b9e7-a9e5213cfb78 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389 + method: GET + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":null,"last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "942" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 702818ac-1a6f-4554-a023-52c873714fd3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389 + method: GET + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":null,"last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "942" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4d5f6f06-d916-40fc-b09a-027affa3cd9b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"changes":[{"add":{"records":[{"data":"v=spf1 include:_spf.scw-tem.cloud + -all","name":"","priority":0,"ttl":3600,"type":"TXT","comment":null,"id":""}]}}],"return_all_records":false,"disallow_new_zone_creation":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records + method: PATCH + response: + body: '{"records":[{"comment":null,"data":"\"v=spf1 include:_spf.scw-tem.cloud + -all\"","id":"72f232b5-c15d-4a75-a3ff-0f37e948d8ff","name":"","priority":0,"ttl":3600,"type":"TXT"}]}' + headers: + Content-Length: + - "179" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8c13589e-c01d-4c55-8dc4-7932678759c5 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"changes":[{"add":{"records":[{"data":"v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","name":"105bdce1-64c0-48ab-899d-868455867ecf._domainkey","priority":0,"ttl":3600,"type":"TXT","comment":null,"id":""}]}}],"return_all_records":false,"disallow_new_zone_creation":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records + method: PATCH + response: + body: '{"records":[{"comment":null,"data":"\"v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB\"","id":"45d5225f-d8c7-457d-8b77-71f85e2fa603","name":"105bdce1-64c0-48ab-899d-868455867ecf._domainkey","priority":0,"ttl":3600,"type":"TXT"}]}' + headers: + Content-Length: + - "608" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 37e4213f-e486-44f4-a9c8-51ada60eb0ea + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":null,"last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:27:22.503711070Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "970" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b2829328-9b7f-48b4-b421-4787a3a68e3c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?name=&order_by=name_asc&type=TXT + method: GET + response: + body: '{"records":[{"comment":null,"data":"\"v=spf1 include:_spf.scw-tem.cloud + -all\"","id":"72f232b5-c15d-4a75-a3ff-0f37e948d8ff","name":"","priority":0,"ttl":3600,"type":"TXT"},{"comment":null,"data":"\"v=DKIM1; + h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB\"","id":"45d5225f-d8c7-457d-8b77-71f85e2fa603","name":"105bdce1-64c0-48ab-899d-868455867ecf._domainkey","priority":0,"ttl":3600,"type":"TXT"}],"total_count":2}' + headers: + Content-Length: + - "792" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cc4a807f-ac8c-4f73-90bf-8996c2be4035 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?name=105bdce1-64c0-48ab-899d-868455867ecf._domainkey&order_by=name_asc&type=TXT + method: GET + response: + body: '{"records":[{"comment":null,"data":"\"v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB\"","id":"45d5225f-d8c7-457d-8b77-71f85e2fa603","name":"105bdce1-64c0-48ab-899d-868455867ecf._domainkey","priority":0,"ttl":3600,"type":"TXT"}],"total_count":1}' + headers: + Content-Length: + - "625" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e8e638ef-4416-41c8-bfd4-92e536891dd5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?name=&order_by=name_asc&page=1&type=TXT + method: GET + response: + body: '{"records":[{"comment":null,"data":"\"v=spf1 include:_spf.scw-tem.cloud + -all\"","id":"72f232b5-c15d-4a75-a3ff-0f37e948d8ff","name":"","priority":0,"ttl":3600,"type":"TXT"},{"comment":null,"data":"\"v=DKIM1; + h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB\"","id":"45d5225f-d8c7-457d-8b77-71f85e2fa603","name":"105bdce1-64c0-48ab-899d-868455867ecf._domainkey","priority":0,"ttl":3600,"type":"TXT"}],"total_count":2}' + headers: + Content-Length: + - "792" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 079e472d-b057-487b-8577-1e881ab6e44d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?name=105bdce1-64c0-48ab-899d-868455867ecf._domainkey&order_by=name_asc&page=1&type=TXT + method: GET + response: + body: '{"records":[{"comment":null,"data":"\"v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB\"","id":"45d5225f-d8c7-457d-8b77-71f85e2fa603","name":"105bdce1-64c0-48ab-899d-868455867ecf._domainkey","priority":0,"ttl":3600,"type":"TXT"}],"total_count":1}' + headers: + Content-Length: + - "625" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 91c4456d-508d-4a7a-a6d9-418a5621eb15 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?id=72f232b5-c15d-4a75-a3ff-0f37e948d8ff&name=&order_by=name_asc&page=1&type=unknown + method: GET + response: + body: '{"records":[{"comment":null,"data":"\"v=spf1 include:_spf.scw-tem.cloud + -all\"","id":"72f232b5-c15d-4a75-a3ff-0f37e948d8ff","name":"","priority":0,"ttl":3600,"type":"TXT"}],"total_count":1}' + headers: + Content-Length: + - "196" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b1ab9d6b-c21e-4029-bbb6-5fe5f7b09ffe + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?id=45d5225f-d8c7-457d-8b77-71f85e2fa603&name=&order_by=name_asc&page=1&type=unknown + method: GET + response: + body: '{"records":[{"comment":null,"data":"\"v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB\"","id":"45d5225f-d8c7-457d-8b77-71f85e2fa603","name":"105bdce1-64c0-48ab-899d-868455867ecf._domainkey","priority":0,"ttl":3600,"type":"TXT"}],"total_count":1}' + headers: + Content-Length: + - "625" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 650ea68c-7acb-457c-8fb6-816def6fc124 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones?dns_zone=scaleway-terraform.com&domain=&order_by=domain_asc&page=1 + method: GET + response: + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"","updated_at":"2024-02-27T10:27:22Z"}],"total_count":1}' + headers: + Content-Length: + - "354" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 37fd3561-a373-4e33-91a8-c4a94731be49 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones?dns_zone=scaleway-terraform.com&domain=&order_by=domain_asc&page=1 + method: GET + response: + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","subdomain":"","updated_at":"2024-02-27T10:27:22Z"}],"total_count":1}' + headers: + Content-Length: + - "354" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:22 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 66194103-a8c7-4e2f-9b1b-4dd601e8d2a2 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":null,"last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:27:23.045006731Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "970" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:23 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 434a515e-8d25-4283-bbce-898a9c157ac7 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":null,"last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:27:24.108428248Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "970" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:24 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 01841d0b-1b10-4f82-8b8f-92104ef9098e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":null,"last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:27:26.193022021Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "970" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:26 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d0c42e84-7727-4e9f-8bb7-aa06ea25d04e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"no + SPF record found\nfailed lookup for TXT record on the DKIM selector \"105bdce1-64c0-48ab-899d-868455867ecf._domainkey.scaleway-terraform.com\": + nxdomain\nno MX record found\nfailed lookup for TXT record on the DMARC selector + \"_dmarc.scaleway-terraform.com\": nxdomain","last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:28:27.630025Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "1236" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:30 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5cade01a-82db-4430-a551-f386551301b6 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"no + SPF record found\nfailed lookup for TXT record on the DKIM selector \"105bdce1-64c0-48ab-899d-868455867ecf._domainkey.scaleway-terraform.com\": + nxdomain\nno MX record found\nfailed lookup for TXT record on the DMARC selector + \"_dmarc.scaleway-terraform.com\": nxdomain","last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:28:27.630025Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "1236" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:38 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0eeb9a07-8faf-4aff-aaf5-6781c26e450a + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"no + SPF record found\nfailed lookup for TXT record on the DKIM selector \"105bdce1-64c0-48ab-899d-868455867ecf._domainkey.scaleway-terraform.com\": + nxdomain\nno MX record found\nfailed lookup for TXT record on the DMARC selector + \"_dmarc.scaleway-terraform.com\": nxdomain","last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:28:27.630025Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "1236" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:48 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 26d5b35f-a95c-4e15-af7c-b9d42d1ad8e6 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"no + SPF record found\nfailed lookup for TXT record on the DKIM selector \"105bdce1-64c0-48ab-899d-868455867ecf._domainkey.scaleway-terraform.com\": + nxdomain\nno MX record found\nfailed lookup for TXT record on the DMARC selector + \"_dmarc.scaleway-terraform.com\": nxdomain","last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:28:27.630025Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "1236" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:27:58 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3bad1583-5f07-4d10-9b36-03eaadbd99be + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"no + SPF record found\nfailed lookup for TXT record on the DKIM selector \"105bdce1-64c0-48ab-899d-868455867ecf._domainkey.scaleway-terraform.com\": + nxdomain\nno MX record found\nfailed lookup for TXT record on the DMARC selector + \"_dmarc.scaleway-terraform.com\": nxdomain","last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:28:27.630025Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "1236" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:08 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f1009478-8e2f-4fef-9833-8ee500c29c8e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"no + SPF record found\nfailed lookup for TXT record on the DKIM selector \"105bdce1-64c0-48ab-899d-868455867ecf._domainkey.scaleway-terraform.com\": + nxdomain\nno MX record found\nfailed lookup for TXT record on the DMARC selector + \"_dmarc.scaleway-terraform.com\": nxdomain","last_valid_at":null,"name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:28:27.630025Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"unchecked"}' + headers: + Content-Length: + - "1236" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:18 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3e3b6f90-d46c-42d7-9955-f6b05c22e9a3 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/check + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:29:28.597646Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"checked"}' + headers: + Content-Length: + - "1082" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:28 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 95a27cff-72ed-48e7-8a7c-f984b08bbb8e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389 + method: GET + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:29:28.597646Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"checked"}' + headers: + Content-Length: + - "1082" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:28 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c4bc69ce-aa68-4b19-9d10-86acf461ccdd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389 + method: GET + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:29:28.597646Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":{"previous_score":null,"previous_scored_at":null,"score":100,"scored_at":"2024-02-27T10:28:28.843622Z","status":"excellent"},"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"checked"}' + headers: + Content-Length: + - "1206" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 397c7c3b-98ba-4347-8275-a02fbfdbeba9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?id=6da83cdc-9bb2-4f3f-8306-10ef53ef8c79&name=&order_by=name_asc&page=1&type=MX + method: GET + response: + body: '{"records":[{"comment":null,"data":"0 .","id":"6da83cdc-9bb2-4f3f-8306-10ef53ef8c79","name":"","priority":0,"ttl":3600,"type":"MX"}],"total_count":1}' + headers: + Content-Length: + - "156" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f4c1ae6c-5940-4659-93a3-fadea94b4c42 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389 + method: GET + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:29:28.597646Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":{"previous_score":null,"previous_scored_at":null,"score":100,"scored_at":"2024-02-27T10:28:28.843622Z","status":"excellent"},"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"checked"}' + headers: + Content-Length: + - "1206" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0a1084c1-d271-4fe6-afe3-ee7b3b76463d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?id=72f232b5-c15d-4a75-a3ff-0f37e948d8ff&name=&order_by=name_asc&page=1&type=TXT + method: GET + response: + body: '{"records":[{"comment":null,"data":"\"v=spf1 include:_spf.scw-tem.cloud + -all\"","id":"72f232b5-c15d-4a75-a3ff-0f37e948d8ff","name":"","priority":0,"ttl":3600,"type":"TXT"}],"total_count":1}' + headers: + Content-Length: + - "196" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d14b6de0-c425-4ce1-8505-7cffc155d689 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones?dns_zone=scaleway-terraform.com&domain=&order_by=domain_asc&page=1 + method: GET + response: + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"active","subdomain":"","updated_at":"2024-02-27T10:27:29Z"}],"total_count":1}' + headers: + Content-Length: + - "353" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a1fcc990-5e09-42c0-ae77-5a320e2e9cb3 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records?id=45d5225f-d8c7-457d-8b77-71f85e2fa603&name=105bdce1-64c0-48ab-899d-868455867ecf._domainkey&order_by=name_asc&page=1&type=TXT + method: GET + response: + body: '{"records":[{"comment":null,"data":"\"v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB\"","id":"45d5225f-d8c7-457d-8b77-71f85e2fa603","name":"105bdce1-64c0-48ab-899d-868455867ecf._domainkey","priority":0,"ttl":3600,"type":"TXT"}],"total_count":1}' + headers: + Content-Length: + - "625" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c376fff2-8869-4dcd-9066-0aa4eb1dcd72 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones?dns_zone=scaleway-terraform.com&domain=&order_by=domain_asc&page=1 + method: GET + response: + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"active","subdomain":"","updated_at":"2024-02-27T10:27:29Z"}],"total_count":1}' + headers: + Content-Length: + - "353" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a7c2e200-583c-439d-8072-c38cc0630d0b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones?dns_zone=scaleway-terraform.com&domain=&order_by=domain_asc&page=1 + method: GET + response: + body: '{"dns_zones":[{"domain":"scaleway-terraform.com","linked_products":[],"message":null,"ns":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_default":["ns0.dom.scw.cloud","ns1.dom.scw.cloud"],"ns_master":[],"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"active","subdomain":"","updated_at":"2024-02-27T10:27:29Z"}],"total_count":1}' + headers: + Content-Length: + - "353" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:29 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 96847cea-4130-4f50-8a91-cb1f11c5d6c3 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"changes":[{"delete":{"id":"6da83cdc-9bb2-4f3f-8306-10ef53ef8c79"}}],"return_all_records":false,"disallow_new_zone_creation":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records + method: PATCH + response: + body: '{"records":[]}' + headers: + Content-Length: + - "14" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8a576b7d-5b05-4cc9-92cf-0a781699c9a7 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"changes":[{"delete":{"id":"72f232b5-c15d-4a75-a3ff-0f37e948d8ff"}}],"return_all_records":false,"disallow_new_zone_creation":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records + method: PATCH + response: + body: '{"records":[]}' + headers: + Content-Length: + - "14" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a716c352-fecb-44b5-b2a8-e28ad245eb8b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"changes":[{"delete":{"id":"45d5225f-d8c7-457d-8b77-71f85e2fa603"}}],"return_all_records":false,"disallow_new_zone_creation":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/domain/v2beta1/dns-zones/scaleway-terraform.com/records + method: PATCH + response: + body: '{"records":[]}' + headers: + Content-Length: + - "14" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a11593fb-3470-4ead-a101-55d457ea437f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389 + method: GET + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":"2024-02-27T10:29:28.597646Z","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":{"previous_score":null,"previous_scored_at":null,"score":100,"scored_at":"2024-02-27T10:28:28.843622Z","status":"excellent"},"revoked_at":null,"spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"checked"}' + headers: + Content-Length: + - "1206" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 64f708af-51a9-4fed-91f6-da4532a16c52 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/revoke + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":"2024-02-27T10:28:31.913832994Z","spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"revoked"}' + headers: + Content-Length: + - "1085" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d9912e93-9a33-48e8-b0b0-567f670d49bb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389 + method: GET + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":{"previous_score":null,"previous_scored_at":null,"score":100,"scored_at":"2024-02-27T10:28:28.843622Z","status":"excellent"},"revoked_at":"2024-02-27T10:28:31.913832Z","spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"revoked"}' + headers: + Content-Length: + - "1206" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:31 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e4adaf6c-57fd-43e6-80e7-606f0f95870e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389/revoke + method: POST + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":null,"revoked_at":"2024-02-27T10:28:31.913832Z","spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"revoked"}' + headers: + Content-Length: + - "1082" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:32 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - aa4053cc-0e79-431f-ba7b-9e5b33a1a802 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.5; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/transactional-email/v1alpha1/regions/fr-par/domains/83677dbb-f7dc-43b1-a37b-d469d4ee6389 + method: GET + response: + body: '{"created_at":"2024-02-27T10:27:22.045356Z","dkim_config":"v=DKIM1; h=sha256; + k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA69qDDM8QitmytCX3G7MAevjEcQmpEXjqgHTwapADzmIh02GtOsTL2zgydmS5LI0DT6qAMnqNOekzid/GZD6zmN/wNHEsGlZ6a4I5iqJB+qq28rwFFif2BluTh7lcs3CG+R2+YGMDMzA5lv8KtSzLQIuQpJJyYLn2C8jrZuNY38se0rPTJe6vEYJD8NiQWqwLKxV7vpPArMOUNSm7pUjr12Ba4EHVwtwWFUStJEyB7ChSjnzf23uBIs+1GtqW1ybIzU7T9FHKUoD9Cl3aE3P4n733TZ877AFTkUSkS8pY/qrnLaqAf29FDLtsK1KNdzQhZfVwN2BWjY4tW0A/15BlYQIDAQAB","id":"83677dbb-f7dc-43b1-a37b-d469d4ee6389","last_error":"failed + lookup for TXT record on the DMARC selector \"_dmarc.scaleway-terraform.com\": + nxdomain","last_valid_at":"2024-02-27T10:28:28.597646Z","name":"scaleway-terraform.com","next_check_at":null,"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","region":"fr-par","reputation":{"previous_score":null,"previous_scored_at":null,"score":100,"scored_at":"2024-02-27T10:28:28.843622Z","status":"excellent"},"revoked_at":"2024-02-27T10:28:31.913832Z","spf_config":"include:_spf.scw-tem.cloud","statistics":{"canceled_count":0,"failed_count":0,"sent_count":0,"total_count":0},"status":"revoked"}' + headers: + Content-Length: + - "1206" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 27 Feb 2024 10:28:32 GMT + Server: + - Scaleway API Gateway (fr-par-2;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 89669b26-893d-4731-8250-96c8bd36c80b + status: 200 OK + code: 200 + duration: ""