From ca2dbea995567c7d2c5bc3d3274f9dffaedb73b3 Mon Sep 17 00:00:00 2001 From: Rajat Bajaj Date: Thu, 14 Nov 2024 01:00:12 +0530 Subject: [PATCH] updated recording --- .../selfserviceprofile/data_source_test.go | 3 + .../TestSelfServiceDataSourceResource.yaml | 70 +++++++++---------- 2 files changed, 38 insertions(+), 35 deletions(-) diff --git a/internal/auth0/selfserviceprofile/data_source_test.go b/internal/auth0/selfserviceprofile/data_source_test.go index c9385375..f918831d 100644 --- a/internal/auth0/selfserviceprofile/data_source_test.go +++ b/internal/auth0/selfserviceprofile/data_source_test.go @@ -12,6 +12,9 @@ import ( const testAGivenSelfServiceProfile = ` resource "auth0_self_service_profile" "my_self_service_profile" { + name = "my-sso-profile" + description = "sample description" + allowed_strategies = ["oidc", "samlp"] user_attributes { name = "sample-name-{{.testName}}" description = "sample-description" diff --git a/test/data/recordings/TestSelfServiceDataSourceResource.yaml b/test/data/recordings/TestSelfServiceDataSourceResource.yaml index 786c7c9e..570c6f1e 100644 --- a/test/data/recordings/TestSelfServiceDataSourceResource.yaml +++ b/test/data/recordings/TestSelfServiceDataSourceResource.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 224 + content_length: 321 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"branding":{"colors":{"primary":"#0059d6"},"logo_url":"https://mycompany.org/v2/logo.png"}} + {"name":"my-sso-profile","description":"sample description","allowed_strategies":["oidc","samlp"],"user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"branding":{"colors":{"primary":"#0059d6"},"logo_url":"https://mycompany.org/v2/logo.png"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles method: POST response: @@ -28,15 +28,15 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 337 + content_length: 434 uncompressed: false - body: '{"id":"ssp_hcfmRKDq1o8P3eBFGBmc4y","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"created_at":"2024-08-22T20:57:45.382Z","updated_at":"2024-08-22T20:57:45.382Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' + body: '{"id":"ssp_7VyHvtyjmZZUAU1T498LFN","name":"my-sso-profile","description":"sample description","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"allowed_strategies":["oidc","samlp"],"created_at":"2024-11-13T19:29:15.702Z","updated_at":"2024-11-13T19:29:15.702Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 379.807291ms + duration: 410.859042ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_hcfmRKDq1o8P3eBFGBmc4y + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_7VyHvtyjmZZUAU1T498LFN method: GET response: proto: HTTP/2.0 @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"ssp_hcfmRKDq1o8P3eBFGBmc4y","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"created_at":"2024-08-22T20:57:45.382Z","updated_at":"2024-08-22T20:57:45.382Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' + body: '{"id":"ssp_7VyHvtyjmZZUAU1T498LFN","name":"my-sso-profile","description":"sample description","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"allowed_strategies":["oidc","samlp"],"created_at":"2024-11-13T19:29:15.702Z","updated_at":"2024-11-13T19:29:15.702Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 357.008ms + duration: 364.377333ms - id: 2 request: proto: HTTP/1.1 @@ -89,7 +89,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_bskks8aGbiq7qS13umnuvX method: GET response: @@ -106,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 353.041541ms + duration: 409.1435ms - id: 3 request: proto: HTTP/1.1 @@ -124,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_hcfmRKDq1o8P3eBFGBmc4y + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_7VyHvtyjmZZUAU1T498LFN method: GET response: proto: HTTP/2.0 @@ -135,13 +135,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"ssp_hcfmRKDq1o8P3eBFGBmc4y","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"created_at":"2024-08-22T20:57:45.382Z","updated_at":"2024-08-22T20:57:45.382Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' + body: '{"id":"ssp_7VyHvtyjmZZUAU1T498LFN","name":"my-sso-profile","description":"sample description","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"allowed_strategies":["oidc","samlp"],"created_at":"2024-11-13T19:29:15.702Z","updated_at":"2024-11-13T19:29:15.702Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 345.169042ms + duration: 1.4477905s - id: 4 request: proto: HTTP/1.1 @@ -159,8 +159,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_hcfmRKDq1o8P3eBFGBmc4y + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_7VyHvtyjmZZUAU1T498LFN method: GET response: proto: HTTP/2.0 @@ -170,13 +170,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"ssp_hcfmRKDq1o8P3eBFGBmc4y","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"created_at":"2024-08-22T20:57:45.382Z","updated_at":"2024-08-22T20:57:45.382Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' + body: '{"id":"ssp_7VyHvtyjmZZUAU1T498LFN","name":"my-sso-profile","description":"sample description","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"allowed_strategies":["oidc","samlp"],"created_at":"2024-11-13T19:29:15.702Z","updated_at":"2024-11-13T19:29:15.702Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 313.995208ms + duration: 1.5700585s - id: 5 request: proto: HTTP/1.1 @@ -194,8 +194,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_hcfmRKDq1o8P3eBFGBmc4y + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_7VyHvtyjmZZUAU1T498LFN method: GET response: proto: HTTP/2.0 @@ -205,13 +205,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"ssp_hcfmRKDq1o8P3eBFGBmc4y","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"created_at":"2024-08-22T20:57:45.382Z","updated_at":"2024-08-22T20:57:45.382Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' + body: '{"id":"ssp_7VyHvtyjmZZUAU1T498LFN","name":"my-sso-profile","description":"sample description","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"allowed_strategies":["oidc","samlp"],"created_at":"2024-11-13T19:29:15.702Z","updated_at":"2024-11-13T19:29:15.702Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 331.157916ms + duration: 3.92362225s - id: 6 request: proto: HTTP/1.1 @@ -229,8 +229,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_hcfmRKDq1o8P3eBFGBmc4y + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_7VyHvtyjmZZUAU1T498LFN method: GET response: proto: HTTP/2.0 @@ -240,13 +240,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"ssp_hcfmRKDq1o8P3eBFGBmc4y","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"created_at":"2024-08-22T20:57:45.382Z","updated_at":"2024-08-22T20:57:45.382Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' + body: '{"id":"ssp_7VyHvtyjmZZUAU1T498LFN","name":"my-sso-profile","description":"sample description","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"allowed_strategies":["oidc","samlp"],"created_at":"2024-11-13T19:29:15.702Z","updated_at":"2024-11-13T19:29:15.702Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 331.689167ms + duration: 1.965138583s - id: 7 request: proto: HTTP/1.1 @@ -264,8 +264,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_hcfmRKDq1o8P3eBFGBmc4y + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_7VyHvtyjmZZUAU1T498LFN method: GET response: proto: HTTP/2.0 @@ -275,13 +275,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"ssp_hcfmRKDq1o8P3eBFGBmc4y","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"created_at":"2024-08-22T20:57:45.382Z","updated_at":"2024-08-22T20:57:45.382Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' + body: '{"id":"ssp_7VyHvtyjmZZUAU1T498LFN","name":"my-sso-profile","description":"sample description","user_attributes":[{"name":"sample-name-TestSelfServiceDataSourceResource","description":"sample-description","is_optional":true}],"allowed_strategies":["oidc","samlp"],"created_at":"2024-11-13T19:29:15.702Z","updated_at":"2024-11-13T19:29:15.702Z","branding":{"logo_url":"https://mycompany.org/v2/logo.png","colors":{"primary":"#0059d6"}}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 328.803167ms + duration: 2.510987958s - id: 8 request: proto: HTTP/1.1 @@ -299,8 +299,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.9.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_hcfmRKDq1o8P3eBFGBmc4y + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/self-service-profiles/ssp_7VyHvtyjmZZUAU1T498LFN method: DELETE response: proto: HTTP/2.0 @@ -316,4 +316,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 331.205458ms + duration: 2.347906375s