Skip to content

Commit

Permalink
updated recording
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Nov 13, 2024
1 parent 4b5d837 commit ca2dbea
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 35 deletions.
3 changes: 3 additions & 0 deletions internal/auth0/selfserviceprofile/data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
70 changes: 35 additions & 35 deletions test/data/recordings/TestSelfServiceDataSourceResource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -316,4 +316,4 @@ interactions:
- application/json; charset=utf-8
status: 204 No Content
code: 204
duration: 331.205458ms
duration: 2.347906375s

0 comments on commit ca2dbea

Please sign in to comment.