diff --git a/.github/workflows/acceptance-tests.yaml b/.github/workflows/acceptance-tests.yaml index 3687a65315..08e5b93c2e 100644 --- a/.github/workflows/acceptance-tests.yaml +++ b/.github/workflows/acceptance-tests.yaml @@ -12,6 +12,7 @@ jobs: - Account - AppleSilicon - Baremetal + - Container - Domain - Function - Instance diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ea617421f0..ec4ee68e68 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -16,6 +16,7 @@ jobs: - Baremetal - Domain - Function + - Container - Instance - Iot - K8S diff --git a/docs/data-sources/container_namespace.md b/docs/data-sources/container_namespace.md new file mode 100644 index 0000000000..c0fd5c193e --- /dev/null +++ b/docs/data-sources/container_namespace.md @@ -0,0 +1,44 @@ +--- +page_title: "Scaleway: scaleway_container_namespace" +description: |- +Gets information about a container namespace. +--- + +# scaleway_container_namespace + +Gets information about a container namespace. + +## Example Usage + +```hcl +// Get info by namespace name +data "scaleway_container_namespace" "by_name" { + name = "my-namespace-name" +} + +// Get info by namespace ID +data "scaleway_container_namespace" "by_id" { + namespace_id = "11111111-1111-1111-1111-111111111111" +} +``` + +## Argument Reference + +- `name` - (Optional) The namespace name. + Only one of `name` and `namespace_id` should be specified. + +- `namespace_id` - (Optional) The namespace id. + Only one of `name` and `namespace_id` should be specified. +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the namespace exists. +- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the namespace is associated with. + +## Attributes Reference + +In addition to all above arguments, the following attributes are exported: + +- `id` - The ID of the Registry Namespace. +- `organization_id` - The organization ID the namespace is associated with. +- `description` - The description of the namespace. +- `environment_variables` - The environment variables of the namespace. +- `registry_endpoint` - The registry endpoint of the namespace. +- `registry_namespace_id` - The registry namespace ID of the namespace. diff --git a/docs/resources/container_namespace.md b/docs/resources/container_namespace.md new file mode 100644 index 0000000000..e247239d36 --- /dev/null +++ b/docs/resources/container_namespace.md @@ -0,0 +1,55 @@ +--- +page_title: "Scaleway: scaleway_container_namespace" +description: |- +Manages Scaleway Container Namespaces. +--- + +# scaleway_container_namespace + +Creates and manages Scaleway Container Namespace. +For more information see [the documentation](https://developers.scaleway.com/en/products/containers/api/#namespaces-cdce79). + +## Examples + +### Basic + +```hcl +resource "scaleway_container_namespace" "main" { + name = "main-container-namespace" + description = "Main container namespace" +} +``` + +## Arguments Reference + +The following arguments are supported: + +- `name` - (Required) The unique name of the container namespace. + +~> **Important** Updates to `name` will recreate the namespace. + +- `description` (Optional) The description of the namespace. + +- `region` - (Defaults to [provider](../index.md#region) `region`). The [region](../guides/regions_and_zones.md#regions) in which the namespace should be created. + +- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the namespace is associated with. + +- `environment_variables` - The environment variables of the namespace. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +- `id` - The ID of the namespace +- `organization_id` - The organization ID the namespace is associated with. +- `registry_endpoint` - The registry endpoint of the namespace. +- `registry_namespace_id` - The registry namespace ID of the namespace. + + +## Import + +Namespaces can be imported using the `{region}/{id}`, e.g. + +```bash +$ terraform import scaleway_container_namespace.main fr-par/11111111-1111-1111-1111-111111111111 +``` diff --git a/scaleway/data_source_container_namespace.go b/scaleway/data_source_container_namespace.go new file mode 100644 index 0000000000..db284117ee --- /dev/null +++ b/scaleway/data_source_container_namespace.go @@ -0,0 +1,63 @@ +package scaleway + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + container "github.com/scaleway/scaleway-sdk-go/api/container/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func dataSourceScalewayContainerNamespace() *schema.Resource { + // Generate datasource schema from resource + dsSchema := datasourceSchemaFromResourceSchema(resourceScalewayContainerNamespace().Schema) + + addOptionalFieldsToSchema(dsSchema, "name", "region") + + dsSchema["name"].ConflictsWith = []string{"namespace_id"} + dsSchema["namespace_id"] = &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The ID of the Container namespace", + ValidateFunc: validationUUIDorUUIDWithLocality(), + ConflictsWith: []string{"name"}, + } + + return &schema.Resource{ + ReadContext: dataSourceScalewayContainerNamespaceRead, + Schema: dsSchema, + } +} + +func dataSourceScalewayContainerNamespaceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := containerAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + namespaceID, ok := d.GetOk("namespace_id") + if !ok { + res, err := api.ListNamespaces(&container.ListNamespacesRequest{ + Region: region, + Name: expandStringPtr(d.Get("name")), + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + if len(res.Namespaces) == 0 { + return diag.FromErr(fmt.Errorf("no container namespace found with the name %s", d.Get("name"))) + } + if len(res.Namespaces) > 1 { + return diag.FromErr(fmt.Errorf("%d container namespaces found with the same name %s", len(res.Namespaces), d.Get("name"))) + } + namespaceID = res.Namespaces[0].ID + } + + regionalID := datasourceNewRegionalizedID(namespaceID, region) + d.SetId(regionalID) + _ = d.Set("namespace_id", regionalID) + + return resourceScalewayContainerNamespaceRead(ctx, d, meta) +} diff --git a/scaleway/data_source_container_namespace_test.go b/scaleway/data_source_container_namespace_test.go new file mode 100644 index 0000000000..12df88259f --- /dev/null +++ b/scaleway/data_source_container_namespace_test.go @@ -0,0 +1,43 @@ +package scaleway + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccScalewayDataSourceContainerNamespace_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayContainerNamespaceDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource "scaleway_container_namespace" "main" { + name = "test-cr-data" + } + + data "scaleway_container_namespace" "by_name" { + name = scaleway_container_namespace.main.name + } + + data "scaleway_container_namespace" "by_id" { + namespace_id = scaleway_container_namespace.main.id + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayContainerNamespaceExists(tt, "scaleway_container_namespace.main"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "name", "test-cr-data"), + resource.TestCheckResourceAttrSet("data.scaleway_container_namespace.by_name", "id"), + + resource.TestCheckResourceAttr("data.scaleway_container_namespace.by_id", "name", "test-cr-data"), + resource.TestCheckResourceAttrSet("data.scaleway_container_namespace.by_id", "id"), + ), + }, + }, + }) +} diff --git a/scaleway/helpers_container.go b/scaleway/helpers_container.go new file mode 100644 index 0000000000..65b3c7e147 --- /dev/null +++ b/scaleway/helpers_container.go @@ -0,0 +1,37 @@ +package scaleway + +import ( + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + container "github.com/scaleway/scaleway-sdk-go/api/container/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +const ( + defaultContainerNamespaceTimeout = 20 * time.Second +) + +// containerAPIWithRegion returns a new container API and the region. +func containerAPIWithRegion(d *schema.ResourceData, m interface{}) (*container.API, scw.Region, error) { + meta := m.(*Meta) + api := container.NewAPI(meta.scwClient) + + region, err := extractRegion(d, meta) + if err != nil { + return nil, "", err + } + return api, region, nil +} + +// containerAPIWithRegionAndID returns a new container API, region and ID. +func containerAPIWithRegionAndID(m interface{}, id string) (*container.API, scw.Region, string, error) { + meta := m.(*Meta) + api := container.NewAPI(meta.scwClient) + + region, id, err := parseRegionalID(id) + if err != nil { + return nil, "", "", err + } + return api, region, id, nil +} diff --git a/scaleway/provider.go b/scaleway/provider.go index 89097962c7..461e2178ef 100644 --- a/scaleway/provider.go +++ b/scaleway/provider.go @@ -63,6 +63,7 @@ func Provider(config *ProviderConfig) plugin.ProviderFunc { "scaleway_account_ssh_key": resourceScalewayAccountSSKKey(), "scaleway_apple_silicon_server": resourceScalewayAppleSiliconServer(), "scaleway_baremetal_server": resourceScalewayBaremetalServer(), + "scaleway_container_namespace": resourceScalewayContainerNamespace(), "scaleway_domain_record": resourceScalewayDomainRecord(), "scaleway_domain_zone": resourceScalewayDomainZone(), "scaleway_function_namespace": resourceScalewayFunctionNamespace(), @@ -107,6 +108,7 @@ func Provider(config *ProviderConfig) plugin.ProviderFunc { "scaleway_baremetal_offer": dataSourceScalewayBaremetalOffer(), "scaleway_domain_record": dataSourceScalewayDomainRecord(), "scaleway_domain_zone": dataSourceScalewayDomainZone(), + "scaleway_container_namespace": dataSourceScalewayContainerNamespace(), "scaleway_function_namespace": dataSourceScalewayFunctionNamespace(), "scaleway_instance_ip": dataSourceScalewayInstanceIP(), "scaleway_instance_security_group": dataSourceScalewayInstanceSecurityGroup(), diff --git a/scaleway/resource_container_namespace.go b/scaleway/resource_container_namespace.go new file mode 100644 index 0000000000..08cf964b7b --- /dev/null +++ b/scaleway/resource_container_namespace.go @@ -0,0 +1,178 @@ +package scaleway + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + container "github.com/scaleway/scaleway-sdk-go/api/container/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func resourceScalewayContainerNamespace() *schema.Resource { + return &schema.Resource{ + CreateContext: resourceScalewayContainerNamespaceCreate, + ReadContext: resourceScalewayContainerNamespaceRead, + UpdateContext: resourceScalewayContainerNamespaceUpdate, + DeleteContext: resourceScalewayContainerNamespaceDelete, + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + Timeouts: &schema.ResourceTimeout{ + Default: schema.DefaultTimeout(defaultContainerNamespaceTimeout), + }, + SchemaVersion: 0, + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Computed: true, + ForceNew: true, + Optional: true, + Description: "The name of the container namespace", + }, + "description": { + Type: schema.TypeString, + Optional: true, + Description: "The description of the container namespace", + }, + "environment_variables": { + Type: schema.TypeMap, + Optional: true, + Description: "The environment variables of the container namespace", + Elem: &schema.Schema{ + Type: schema.TypeString, + ValidateFunc: validation.StringLenBetween(0, 1000), + }, + ValidateDiagFunc: validation.MapKeyLenBetween(0, 100), + }, + "registry_endpoint": { + Type: schema.TypeString, + Computed: true, + Description: "The endpoint reachable by docker", + }, + "registry_namespace_id": { + Type: schema.TypeString, + Computed: true, + Description: "The ID of the registry namespace", + }, + "region": regionSchema(), + "organization_id": organizationIDSchema(), + "project_id": projectIDSchema(), + }, + } +} + +func resourceScalewayContainerNamespaceCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, err := containerAPIWithRegion(d, meta) + if err != nil { + return diag.FromErr(err) + } + + ns, err := api.CreateNamespace(&container.CreateNamespaceRequest{ + Description: expandStringPtr(d.Get("description").(string)), + EnvironmentVariables: expandMapStringStringPtr(d.Get("environment_variables")), + Name: expandOrGenerateString(d.Get("name").(string), "ns"), + ProjectID: d.Get("project_id").(string), + Region: region, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + d.SetId(newRegionalIDString(region, ns.ID)) + + return resourceScalewayContainerNamespaceRead(ctx, d, meta) +} + +func resourceScalewayContainerNamespaceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := containerAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + ns, err := api.WaitForNamespace(&container.WaitForNamespaceRequest{ + Region: region, + NamespaceID: id, + }, scw.WithContext(ctx)) + + if err != nil { + if is404Error(err) { + d.SetId("") + return nil + } + return diag.FromErr(err) + } + + _ = d.Set("description", flattenStringPtr(ns.Description)) + _ = d.Set("environment_variables", ns.EnvironmentVariables) + _ = d.Set("name", ns.Name) + _ = d.Set("organization_id", ns.OrganizationID) + _ = d.Set("project_id", ns.ProjectID) + _ = d.Set("region", ns.Region) + _ = d.Set("registry_endpoint", ns.RegistryEndpoint) + _ = d.Set("registry_namespace_id", ns.RegistryNamespaceID) + + return nil +} + +func resourceScalewayContainerNamespaceUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := containerAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + ns, err := api.WaitForNamespace(&container.WaitForNamespaceRequest{ + Region: region, + NamespaceID: id, + }, scw.WithContext(ctx)) + if err != nil { + return diag.FromErr(err) + } + + req := &container.UpdateNamespaceRequest{ + Region: region, + NamespaceID: ns.ID, + } + + if d.HasChange("description") { + description := d.Get("description").(string) + req.Description = &description + } + + if d.HasChanges("environment_variables") { + req.EnvironmentVariables = expandMapStringStringPtr(d.Get("environment_variables")) + } + + if _, err := api.UpdateNamespace(req, scw.WithContext(ctx)); err != nil { + return diag.FromErr(err) + } + + return resourceScalewayContainerNamespaceRead(ctx, d, meta) +} + +func resourceScalewayContainerNamespaceDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + api, region, id, err := containerAPIWithRegionAndID(meta, d.Id()) + if err != nil { + return diag.FromErr(err) + } + + _, err = api.WaitForNamespace(&container.WaitForNamespaceRequest{ + Region: region, + NamespaceID: id, + }, scw.WithContext(ctx)) + if err != nil { + return nil + } + + _, err = api.DeleteNamespace(&container.DeleteNamespaceRequest{ + Region: region, + NamespaceID: id, + }, scw.WithContext(ctx)) + + if err != nil && !is404Error(err) { + return diag.FromErr(err) + } + + return nil +} diff --git a/scaleway/resource_container_namespace_test.go b/scaleway/resource_container_namespace_test.go new file mode 100644 index 0000000000..f0dc3eda02 --- /dev/null +++ b/scaleway/resource_container_namespace_test.go @@ -0,0 +1,203 @@ +package scaleway + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + container "github.com/scaleway/scaleway-sdk-go/api/container/v1beta1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func init() { + resource.AddTestSweepers("scaleway_container_namespace", &resource.Sweeper{ + Name: "scaleway_container_namespace", + F: testSweepContainerNamespace, + }) +} + +func testSweepContainerNamespace(_ string) error { + return sweepRegions([]scw.Region{scw.RegionFrPar}, func(scwClient *scw.Client, region scw.Region) error { + containerAPI := container.NewAPI(scwClient) + l.Debugf("sweeper: destroying the container namespaces in (%s)", region) + listNamespaces, err := containerAPI.ListNamespaces( + &container.ListNamespacesRequest{ + Region: region, + }, scw.WithAllPages()) + if err != nil { + return fmt.Errorf("error listing namespaces in (%s) in sweeper: %s", region, err) + } + + for _, ns := range listNamespaces.Namespaces { + _, err := containerAPI.DeleteNamespace(&container.DeleteNamespaceRequest{ + NamespaceID: ns.ID, + Region: region, + }) + if err != nil { + l.Debugf("sweeper: error (%s)", err) + + return fmt.Errorf("error deleting namespace in sweeper: %s", err) + } + } + + return nil + }) +} + +func TestAccScalewayContainerNamespace_Basic(t *testing.T) { + tt := NewTestTools(t) + defer tt.Cleanup() + + resource.ParallelTest(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + ProviderFactories: tt.ProviderFactories, + CheckDestroy: testAccCheckScalewayContainerNamespaceDestroy(tt), + Steps: []resource.TestStep{ + { + Config: ` + resource scaleway_container_namespace main { + name = "test-cr-ns-01" + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayContainerNamespaceExists(tt, "scaleway_container_namespace.main"), + testCheckResourceAttrUUID("scaleway_container_namespace.main", "id"), + ), + }, + { + Config: ` + resource scaleway_container_namespace main { + name = "test-cr-ns-01" + description = "test container namespace 01" + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayContainerNamespaceExists(tt, "scaleway_container_namespace.main"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "description", "test container namespace 01"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "name", "test-cr-ns-01"), + testCheckResourceAttrUUID("scaleway_container_namespace.main", "id"), + ), + }, + { + Config: ` + resource scaleway_container_namespace main { + name = "test-cr-ns-01" + environment_variables = { + "test" = "test" + } + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayContainerNamespaceExists(tt, "scaleway_container_namespace.main"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "description", ""), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "name", "test-cr-ns-01"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "environment_variables.test", "test"), + + testCheckResourceAttrUUID("scaleway_container_namespace.main", "id"), + ), + }, + { + Config: ` + resource scaleway_container_namespace main { + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayContainerNamespaceExists(tt, "scaleway_container_namespace.main"), + resource.TestCheckResourceAttrSet("scaleway_container_namespace.main", "name"), + resource.TestCheckResourceAttrSet("scaleway_container_namespace.main", "registry_endpoint"), + resource.TestCheckResourceAttrSet("scaleway_container_namespace.main", "registry_namespace_id"), + ), + }, + { + Config: ` + resource scaleway_container_namespace main { + name = "tf-env-test" + environment_variables = { + "test" = "test" + } + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayContainerNamespaceExists(tt, "scaleway_container_namespace.main"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "name", "tf-env-test"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "environment_variables.test", "test"), + + testCheckResourceAttrUUID("scaleway_container_namespace.main", "id"), + ), + }, + { + Config: ` + resource scaleway_container_namespace main { + name = "tf-env-test" + environment_variables = { + "foo" = "bar" + } + } + `, + Check: resource.ComposeTestCheckFunc( + testAccCheckScalewayContainerNamespaceExists(tt, "scaleway_container_namespace.main"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "name", "tf-env-test"), + resource.TestCheckResourceAttr("scaleway_container_namespace.main", "environment_variables.foo", "bar"), + + testCheckResourceAttrUUID("scaleway_container_namespace.main", "id"), + ), + }, + }, + }) +} + +func testAccCheckScalewayContainerNamespaceExists(tt *TestTools, n string) resource.TestCheckFunc { + return func(state *terraform.State) error { + rs, ok := state.RootModule().Resources[n] + if !ok { + return fmt.Errorf("resource not found: %s", n) + } + + api, region, id, err := containerAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return nil + } + + _, err = api.GetNamespace(&container.GetNamespaceRequest{ + NamespaceID: id, + Region: region, + }) + + if err != nil { + return err + } + + return nil + } +} + +func testAccCheckScalewayContainerNamespaceDestroy(tt *TestTools) resource.TestCheckFunc { + return func(state *terraform.State) error { + for _, rs := range state.RootModule().Resources { + if rs.Type != "scaleway_container_namespace" { + continue + } + + api, region, id, err := containerAPIWithRegionAndID(tt.Meta, rs.Primary.ID) + if err != nil { + return err + } + + _, err = api.DeleteNamespace(&container.DeleteNamespaceRequest{ + NamespaceID: id, + Region: region, + }) + + if err == nil { + return fmt.Errorf("container namespace (%s) still exists", rs.Primary.ID) + } + + if !is404Error(err) { + return err + } + } + + return nil + } +} diff --git a/scaleway/testdata/container-namespace-basic.cassette.yaml b/scaleway/testdata/container-namespace-basic.cassette.yaml new file mode 100644 index 0000000000..b85cefa0e2 --- /dev/null +++ b/scaleway/testdata/container-namespace-basic.cassette.yaml @@ -0,0 +1,1539 @@ +--- +version: 1 +interactions: +- request: + body: '{"name":"test-cr-ns-01","environment_variables":{},"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","description":null,"secret_environment_variables":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces + method: POST + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"","error_message":null,"registry_endpoint":"","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "363" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6954f501-ded9-44a9-82f8-e0f3b947be86 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"","error_message":null,"registry_endpoint":"","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "363" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ae854bd9-ad44-4001-9a52-df75cb6bb498 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 897531e5-553b-4822-9d9d-3c6022af4274 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b96b20dc-c968-40c1-9780-7e7b6775e53f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 755bdb0f-5c52-4348-ab0b-5a74a46eb52f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fc4f5584-4fec-4d08-89e0-2a2841237a4d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 962ec5e1-fa49-42f4-b1fa-092a73c1a14a + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"environment_variables":null,"description":"test container namespace 01","secret_environment_variables":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: PATCH + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"test + container namespace 01","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "469" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2e3e7616-7472-44cd-aa1b-c144b84a7272 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"test + container namespace 01","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "469" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7ade9a6a-3d28-4d38-892e-3acc6efbcad0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"test + container namespace 01","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "469" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1df1bc87-da60-4d6b-89ba-0fa304adfd42 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"test + container namespace 01","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "469" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:38 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 80089c1d-23a5-4402-839b-2bd964cd6a99 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"test + container namespace 01","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "469" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:39 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4ca7d2d3-b8f4-4061-ba75-bdb8a6a753e9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"test + container namespace 01","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "469" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:39 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a60bcc1-1457-4a6a-b57d-4ab4db6cb7d9 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"environment_variables":{"test":"test"},"description":"","secret_environment_variables":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: PATCH + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "455" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:39 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 96babf0c-09f4-4be1-99de-676f07d9f637 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "455" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:40 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a15c4b2c-98f5-4739-a2dc-4afbd8b6aba7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "455" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:40 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 21f5d9d5-f9b7-4c93-b37a-73041921da92 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "455" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:40 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7683db29-db9d-4926-a105-f954c148657b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "455" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c2a1a81d-fb93-4f36-b26b-3848c450d070 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "455" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - be1feb8c-57f1-4def-9269-12049029001a + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"environment_variables":{},"description":null,"secret_environment_variables":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: PATCH + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ddc787f7-6c11-4cd9-9b2d-4826ef996ccf + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 53f9b338-2217-4634-94da-3cd479c7a3b9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:41 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3dcfbc8c-ff3f-4133-9b0f-ebe3490aa589 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cebdca68-e842-4670-b659-13131d096573 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a4e82aa9-ace7-4695-b399-c6b9656c2b3c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: GET + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "442" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0b701505-3121-4044-9210-a47167d9353e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/c563b1f0-d486-4872-b3b0-5e6f53b8aebb + method: DELETE + response: + body: '{"id":"c563b1f0-d486-4872-b3b0-5e6f53b8aebb","name":"test-cr-ns-01","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"deleting","registry_namespace_id":"abd05973-9ea1-4693-91af-985c5abc3f19","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrns011qeqxybh","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "445" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f3bec2d6-ad4d-4b00-8700-b18fd1a220bd + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"tf-env-test","environment_variables":{"test":"test"},"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","description":null,"secret_environment_variables":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces + method: POST + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"","error_message":null,"registry_endpoint":"","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "374" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f2557489-2549-4dc6-a0d8-4349f21a77b4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"","error_message":null,"registry_endpoint":"","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "374" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 04387f1e-a2ee-45c7-a65a-35529bcb1fef + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "454" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 23460fb9-ea17-4023-a6b9-afc570be851c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "454" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e541a5c8-42df-4969-aaf6-8083907c8168 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "454" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:31:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 03e33ca8-62af-47c2-976e-83bdd72e100d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "454" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:03 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2dbef898-2c9e-462f-b2d3-2f1324c29bf0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "454" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 15f93d5a-50be-4d59-9374-e8e48f3ae952 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "454" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fd561bb0-9ae5-4adb-ae81-f45a9d6028a5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:18 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 56c38e6f-d878-4896-87e6-7be26d8712af + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9a4643c2-9381-45a2-b89b-efa53c72de1e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:19 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e8194d22-a613-4d4b-8b98-f9007b9c991c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ab2cffbd-425d-4c60-a294-505e70472c2a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"test":"test"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "452" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:20 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 025a9956-7d29-46c3-8cfb-1b6028af6f6d + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"environment_variables":{"foo":"bar"},"description":null,"secret_environment_variables":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: PATCH + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"foo":"bar"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "450" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 23e59042-b9b9-45cb-9c15-dbe8fa93185b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"foo":"bar"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "450" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8b668212-5dab-4c13-b528-4dc2743b6380 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"foo":"bar"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "450" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f70c633c-3488-448d-b121-4ce597e8015c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"foo":"bar"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "450" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4482ee28-2cca-4fc7-977f-d0daa8f1120c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: GET + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"foo":"bar"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "450" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7cbec1f7-ac5c-4abb-9875-12932ebafc06 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: DELETE + response: + body: '{"id":"6e56223d-2e50-441e-bc43-6e8bf376502f","name":"tf-env-test","environment_variables":{"foo":"bar"},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"deleting","registry_namespace_id":"a4660302-aefe-4359-ad5b-2110872e5d85","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtfenvtest53mrocfz","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "453" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31c73e98-aba1-4196-a002-e8f636f6e371 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6e56223d-2e50-441e-bc43-6e8bf376502f + method: DELETE + response: + body: '{"message":"Namespace was not found"}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:32:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7f45645f-88b3-4c10-b4cc-270fb9220183 + status: 404 Not Found + code: 404 + duration: "" diff --git a/scaleway/testdata/data-source-container-namespace-basic.cassette.yaml b/scaleway/testdata/data-source-container-namespace-basic.cassette.yaml new file mode 100644 index 0000000000..90ca514b76 --- /dev/null +++ b/scaleway/testdata/data-source-container-namespace-basic.cassette.yaml @@ -0,0 +1,731 @@ +--- +version: 1 +interactions: +- request: + body: '{"name":"test-cr-data","environment_variables":{},"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","description":null,"secret_environment_variables":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces + method: POST + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"","error_message":null,"registry_endpoint":"","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "362" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2772d3b7-745a-4d7a-86fe-052d105e6e76 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"pending","registry_namespace_id":"","error_message":null,"registry_endpoint":"","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "362" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:00 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9be5705e-55bb-48a3-bad2-442bab3f8c48 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 787b1bd8-c874-43aa-b8a1-f45228e8fbf5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e7611198-de6f-4de0-bbeb-768956ae2a7c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces?name=test-cr-data&order_by=created_at_asc + method: GET + response: + body: '{"namespaces":[{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}],"total_count":1}' + headers: + Content-Length: + - "474" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6bd2e95e-a1e7-4493-957e-21c3fce0d3e5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6e9d86a5-11e1-442d-8fe6-2873348aa6bd + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2d33e52d-40f5-464a-b892-5b7c02ce06be + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6ca4cba5-ef23-4390-97db-8cd386e51f17 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces?name=test-cr-data&order_by=created_at_asc + method: GET + response: + body: '{"namespaces":[{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}],"total_count":1}' + headers: + Content-Length: + - "474" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 75e6eb4a-5c2b-4a84-bac7-f7998eecd3d7 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 969ff463-1703-4052-aa9c-a9d531a694ad + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 667c8fa2-b784-4f53-99dc-46d6e93ceb1e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fbe47e01-e49c-4c12-8c26-8b2913b9ab8a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces?name=test-cr-data&order_by=created_at_asc + method: GET + response: + body: '{"namespaces":[{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}],"total_count":1}' + headers: + Content-Length: + - "474" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 159a460a-78f3-44a8-81c8-ff7afb950a71 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f2ae3588-309f-4563-8f70-5d40d50e1f78 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces?name=test-cr-data&order_by=created_at_asc + method: GET + response: + body: '{"namespaces":[{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}],"total_count":1}' + headers: + Content-Length: + - "474" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c24f9178-82e3-4bf1-962a-e30ffc8c95cf + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1d950627-c425-4939-9d9c-4ad4966bb1fe + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2e029c13-b91a-4ab9-9397-387568e73084 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: GET + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "441" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 441f41a4-5cd9-44a2-a484-0fb73331bb51 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: DELETE + response: + body: '{"id":"6ce3483b-2b3d-4549-8bdc-c106891d8773","name":"test-cr-data","environment_variables":{},"organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"deleting","registry_namespace_id":"74dba7ea-bf3f-4688-98f7-72462e47975d","error_message":null,"registry_endpoint":"rg.fr-par.scw.cloud/funcscwtestcrdatacqr8ext9","description":"","secret_environment_variables":[],"region":"fr-par"}' + headers: + Content-Length: + - "444" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 36d309bf-0843-4de4-bedf-b158d0d2cf1c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: DELETE + response: + body: '{"message":"Namespace was not found"}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a859aa5f-9cea-4c0d-92c7-5d1df7f4b424 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: DELETE + response: + body: '{"message":"Namespace was not found"}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b49ef6b6-f918-44f2-ad30-8999cbb67d72 + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.7; darwin; amd64) terraform-provider/develop + terraform/terraform-tests + url: https://api.scaleway.com/containers/v1beta1/regions/fr-par/namespaces/6ce3483b-2b3d-4549-8bdc-c106891d8773 + method: DELETE + response: + body: '{"message":"Namespace was not found"}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 24 Feb 2022 10:53:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7fa32622-5276-480e-8a41-0ef1225a5b38 + status: 404 Not Found + code: 404 + duration: ""