From 509cf612115d3b5037ce3bc8252ff532e1c3c8b9 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Tue, 29 Oct 2024 18:21:23 +0000 Subject: [PATCH] Remove IGA-* triggers Added explicit check for handling missing env variables for login (#1065) * Added explicit check for handling missing env variables for login * Minor changes * Minor update to test * Updated test case * Updated test case Added support for Custom Email Provider (#1064) * Added support for custom email provider * bump * bump * Dummy --- README.md | 1 + docs/resources/email_provider.md | 15 +- docs/resources/trigger_action.md | 2 +- docs/resources/trigger_actions.md | 2 +- .../auth0_email_provider/resource.tf | 13 +- .../auth0/action/resource_trigger_action.go | 6 +- .../auth0/action/resource_trigger_actions.go | 7 +- internal/auth0/email/expand.go | 2 + internal/auth0/email/flatten.go | 2 + internal/auth0/email/resource.go | 4 +- internal/auth0/email/resource_test.go | 34 + internal/config/config.go | 11 + internal/config/config_test.go | 7 +- internal/provider/provider.go | 28 +- test/data/recordings/TestAccEmail.yaml | 756 ++++++++++++------ .../data/recordings/TestAccEmailTemplate.yaml | 70 +- 16 files changed, 614 insertions(+), 346 deletions(-) diff --git a/README.md b/README.md index 475b114d9..8321b05d6 100644 --- a/README.md +++ b/README.md @@ -95,3 +95,4 @@ This project is licensed under the MPL-2.0 license. See the [LICENSE](LICENSE) f report. + diff --git a/docs/resources/email_provider.md b/docs/resources/email_provider.md index 9064fd5dc..f776cc7d5 100644 --- a/docs/resources/email_provider.md +++ b/docs/resources/email_provider.md @@ -51,7 +51,7 @@ resource "auth0_email_provider" "sendgrid_email_provider" { # This is an example on how to set up the email provider with Azure CS. -resource "auth0_email_provider" "smtp_email_provider" { +resource "auth0_email_provider" "azure_cs_email_provider" { name = "azure_cs" enabled = true default_from_address = "accounts@example.com" @@ -63,7 +63,7 @@ resource "auth0_email_provider" "smtp_email_provider" { # This is an example on how to set up the email provider with MS365. -resource "auth0_email_provider" "smtp_email_provider" { +resource "auth0_email_provider" "ms365_email_provider" { name = "ms365" enabled = true default_from_address = "accounts@example.com" @@ -74,6 +74,15 @@ resource "auth0_email_provider" "smtp_email_provider" { ms365_client_secret = "ms365_client_secret" } } + +# This is an example on how to set up the email provider with a custom action. +# Make sure a corresponding action exists with custom-email-provider as supported triggers +resource "auth0_email_provider" "custom_email_provider" { + name = "custom" + enabled = true + default_from_address = "accounts@example.com" + credentials {} +} ``` @@ -83,7 +92,7 @@ resource "auth0_email_provider" "smtp_email_provider" { - `credentials` (Block List, Min: 1, Max: 1) Configuration settings for the credentials for the email provider. (see [below for nested schema](#nestedblock--credentials)) - `default_from_address` (String) Email address to use as the sender when no other "from" address is specified. -- `name` (String) Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. +- `name` (String) Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. ### Optional diff --git a/docs/resources/trigger_action.md b/docs/resources/trigger_action.md index ac4a6fae9..3f1687c83 100644 --- a/docs/resources/trigger_action.md +++ b/docs/resources/trigger_action.md @@ -45,7 +45,7 @@ resource "auth0_trigger_action" "post_login_alert_action" { ### Required - `action_id` (String) The ID of the action to bind to the trigger. -- `trigger` (String) The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. +- `trigger` (String) The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. ### Optional diff --git a/docs/resources/trigger_actions.md b/docs/resources/trigger_actions.md index 72295bef7..d464ce16a 100644 --- a/docs/resources/trigger_actions.md +++ b/docs/resources/trigger_actions.md @@ -66,7 +66,7 @@ resource "auth0_trigger_actions" "login_flow" { ### Required - `actions` (Block List, Min: 1) The list of actions bound to this trigger. (see [below for nested schema](#nestedblock--actions)) -- `trigger` (String) The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. +- `trigger` (String) The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. ### Read-Only diff --git a/examples/resources/auth0_email_provider/resource.tf b/examples/resources/auth0_email_provider/resource.tf index 7eef542cf..5ab5a44e2 100644 --- a/examples/resources/auth0_email_provider/resource.tf +++ b/examples/resources/auth0_email_provider/resource.tf @@ -38,7 +38,7 @@ resource "auth0_email_provider" "sendgrid_email_provider" { # This is an example on how to set up the email provider with Azure CS. -resource "auth0_email_provider" "smtp_email_provider" { +resource "auth0_email_provider" "azure_cs_email_provider" { name = "azure_cs" enabled = true default_from_address = "accounts@example.com" @@ -50,7 +50,7 @@ resource "auth0_email_provider" "smtp_email_provider" { # This is an example on how to set up the email provider with MS365. -resource "auth0_email_provider" "smtp_email_provider" { +resource "auth0_email_provider" "ms365_email_provider" { name = "ms365" enabled = true default_from_address = "accounts@example.com" @@ -61,3 +61,12 @@ resource "auth0_email_provider" "smtp_email_provider" { ms365_client_secret = "ms365_client_secret" } } + +# This is an example on how to set up the email provider with a custom action. +# Make sure a corresponding action exists with custom-email-provider as supported triggers +resource "auth0_email_provider" "custom_email_provider" { + name = "custom" + enabled = true + default_from_address = "accounts@example.com" + credentials {} +} diff --git a/internal/auth0/action/resource_trigger_action.go b/internal/auth0/action/resource_trigger_action.go index 694d8d813..e03f44357 100644 --- a/internal/auth0/action/resource_trigger_action.go +++ b/internal/auth0/action/resource_trigger_action.go @@ -38,12 +38,8 @@ func NewTriggerActionResource() *schema.Resource { "post-change-password", "send-phone-message", "password-reset-post-challenge", - "iga-approval", - "iga-certification", - "iga-fulfillment-assignment", - "iga-fulfillment-execution", }, false), - Description: "The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`.", + Description: "The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.", }, "action_id": { Type: schema.TypeString, diff --git a/internal/auth0/action/resource_trigger_actions.go b/internal/auth0/action/resource_trigger_actions.go index 02cb7fc84..d131aed22 100644 --- a/internal/auth0/action/resource_trigger_actions.go +++ b/internal/auth0/action/resource_trigger_actions.go @@ -39,15 +39,10 @@ func NewTriggerActionsResource() *schema.Resource { "post-change-password", "send-phone-message", "password-reset-post-challenge", - "iga-approval", - "iga-certification", - "iga-fulfillment-assignment", - "iga-fulfillment-execution", }, false), Description: "The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, " + "`pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, " + - "`password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, " + - "`iga-fulfillment-execution`.", + "`password-reset-post-challenge`.", }, "actions": { Type: schema.TypeList, diff --git a/internal/auth0/email/expand.go b/internal/auth0/email/expand.go index 3fe41d1af..06735a5b7 100644 --- a/internal/auth0/email/expand.go +++ b/internal/auth0/email/expand.go @@ -31,6 +31,8 @@ func expandEmailProvider(config cty.Value) *management.EmailProvider { expandEmailProviderAzureCS(config, emailProvider) case management.EmailProviderMS365: expandEmailProviderMS365(config, emailProvider) + case management.EmailProviderCustom: + emailProvider.Credentials = &management.EmailProviderCredentialsCustom{} } return emailProvider diff --git a/internal/auth0/email/flatten.go b/internal/auth0/email/flatten.go index 8061719a0..db710af62 100644 --- a/internal/auth0/email/flatten.go +++ b/internal/auth0/email/flatten.go @@ -67,6 +67,8 @@ func flattenEmailProviderCredentials(data *schema.ResourceData, emailProvider *m "ms365_client_id": data.Get("credentials.0.ms365_client_id").(string), "ms365_client_secret": data.Get("credentials.0.ms365_client_secret").(string), } + case *management.EmailProviderCredentialsCustom: + credentials = map[string]interface{}{} } return []interface{}{credentials} diff --git a/internal/auth0/email/resource.go b/internal/auth0/email/resource.go index 09ff71619..da1238cad 100644 --- a/internal/auth0/email/resource.go +++ b/internal/auth0/email/resource.go @@ -33,11 +33,11 @@ func NewResource() *schema.Resource { Type: schema.TypeString, Required: true, ValidateFunc: validation.StringInSlice( - []string{"azure_cs", "mailgun", "mandrill", "ms365", "sendgrid", "ses", "smtp", "sparkpost"}, + []string{"azure_cs", "custom", "mailgun", "mandrill", "ms365", "sendgrid", "ses", "smtp", "sparkpost"}, false, ), Description: "Name of the email provider. " + - "Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.", + "Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.", }, "enabled": { Type: schema.TypeBool, diff --git a/internal/auth0/email/resource_test.go b/internal/auth0/email/resource_test.go index f3d2b6ac4..8c241ee8d 100644 --- a/internal/auth0/email/resource_test.go +++ b/internal/auth0/email/resource_test.go @@ -174,6 +174,24 @@ resource "auth0_email_provider" "my_email_provider" { } ` +const testAccCreateCustomEmailProvider = ` +resource "auth0_email_provider" "my_email_provider" { + name = "custom" + enabled = true + credentials {} + default_from_address = "accounts@example.com" +} +` + +const testAccUpdateCustomEmailProvider = ` +resource "auth0_email_provider" "my_email_provider" { + name = "custom" + enabled = false + default_from_address = "accounts_updated@example.com" + credentials {} +} +` + const testAccAlreadyConfiguredEmailProviderWillNotConflict = ` resource "auth0_email_provider" "my_email_provider" { name = "mailgun" @@ -343,6 +361,22 @@ func TestAccEmail(t *testing.T) { resource.TestCheckResourceAttr("auth0_email_provider.my_email_provider", "credentials.0.ms365_client_secret", "ms365_updated_client_secret"), ), }, + { + Config: testAccCreateCustomEmailProvider, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_email_provider.my_email_provider", "name", "custom"), + resource.TestCheckResourceAttr("auth0_email_provider.my_email_provider", "enabled", "true"), + resource.TestCheckResourceAttr("auth0_email_provider.my_email_provider", "default_from_address", "accounts@example.com"), + ), + }, + { + Config: testAccUpdateCustomEmailProvider, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_email_provider.my_email_provider", "name", "custom"), + resource.TestCheckResourceAttr("auth0_email_provider.my_email_provider", "enabled", "false"), + resource.TestCheckResourceAttr("auth0_email_provider.my_email_provider", "default_from_address", "accounts_updated@example.com"), + ), + }, { Config: testAccAlreadyConfiguredEmailProviderWillNotConflict, Check: resource.ComposeTestCheckFunc( diff --git a/internal/config/config.go b/internal/config/config.go index 29bc15f41..372f19ce5 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -62,6 +62,17 @@ func ConfigureProvider(terraformVersion *string) schema.ConfigureContextFunc { audience := data.Get("audience").(string) debug := data.Get("debug").(bool) + if apiToken == "" && (clientID == "" || clientSecret == "" || domain == "") { + return nil, diag.Diagnostics{ + { + Severity: diag.Error, + Summary: "Missing environment variables", + Detail: fmt.Sprintf("Either AUTH0_API_TOKEN or AUTH0_DOMAIN:AUTH0_CLIENT_ID:AUTH0_CLIENT_SECRET must be configured. " + + "Ref: https://registry.terraform.io/providers/auth0/auth0/latest/docs"), + }, + } + } + apiClient, err := management.New(domain, authenticationOption(clientID, clientSecret, apiToken, audience), management.WithDebug(debug), diff --git a/internal/config/config_test.go b/internal/config/config_test.go index c2f359777..ec3d5e75c 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -25,7 +25,7 @@ func TestConfigureProvider(t *testing.T) { name: "it can configure a provider with client credentials", givenTerraformConfig: map[string]interface{}{ "domain": "example.auth0.com", - "clientID": "1234567", + "client_id": "1234567", "client_secret": "secret", }, expectedDiagnostics: nil, @@ -34,7 +34,7 @@ func TestConfigureProvider(t *testing.T) { name: "it can configure a provider with client credentials and audience", givenTerraformConfig: map[string]interface{}{ "domain": "example.auth0.com", - "clientID": "1234567", + "client_id": "1234567", "client_secret": "secret", "audience": "myaudience", }, @@ -56,7 +56,8 @@ func TestConfigureProvider(t *testing.T) { expectedDiagnostics: diag.Diagnostics{ diag.Diagnostic{ Severity: diag.Error, - Summary: "parse \"https://example.com:path\": invalid port \":path\" after host", + Summary: "Missing environment variables", + Detail: "Either AUTH0_API_TOKEN or AUTH0_DOMAIN:AUTH0_CLIENT_ID:AUTH0_CLIENT_SECRET must be configured. Ref: https://registry.terraform.io/providers/auth0/auth0/latest/docs", }, }, }, diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 84c883409..f0c54c928 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -1,12 +1,8 @@ package provider import ( - "context" - "fmt" "os" - "github.com/hashicorp/terraform-plugin-sdk/v2/diag" - "github.com/auth0/terraform-provider-auth0/internal/auth0/flow" "github.com/auth0/terraform-provider-auth0/internal/auth0/form" @@ -176,29 +172,7 @@ func New() *schema.Provider { }, } - provider.ConfigureContextFunc = func(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) { - var diags diag.Diagnostics - - // Check required environment variables. - requiredEnvVars := []string{"AUTH0_DOMAIN", "AUTH0_CLIENT_ID", "AUTH0_CLIENT_SECRET"} - for _, varName := range requiredEnvVars { - value, exists := os.LookupEnv(varName) - if !exists || value == "" { - diags = append(diags, diag.Diagnostic{ - Severity: diag.Error, - Summary: fmt.Sprintf("Missing environment variable: %s", varName), - Detail: fmt.Sprintf("The environment variable %s must be set and cannot be empty.", varName), - }) - } - } - - if len(diags) > 0 { - return nil, diags - } - - // Call the original configuration function if no errors. - return config.ConfigureProvider(&provider.TerraformVersion)(ctx, d) - } + provider.ConfigureContextFunc = config.ConfigureProvider(&provider.TerraformVersion) return provider } diff --git a/test/data/recordings/TestAccEmail.yaml b/test/data/recordings/TestAccEmail.yaml index c3165781f..883c64766 100644 --- a/test/data/recordings/TestAccEmail.yaml +++ b/test/data/recordings/TestAccEmail.yaml @@ -6,20 +6,19 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -30,13 +29,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"azure_cs","enabled":false,"default_from_address":"","credentials":{}}' + body: '{"statusCode":404,"error":"Not Found","message":"There is not a configured email provider","errorCode":"inexistent_email_provider"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 108.656625ms + status: 404 Not Found + code: 404 + duration: 357.314875ms - id: 1 request: proto: HTTP/1.1 @@ -55,43 +54,42 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider - method: PATCH + method: POST response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: -1 - uncompressed: true + content_length: 112 + uncompressed: false body: '{"name":"ses","enabled":true,"default_from_address":"accounts@example.com","credentials":{"region":"us-east-1"}}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 115.595625ms + status: 201 Created + code: 201 + duration: 321.3885ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -108,26 +106,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.26975ms + duration: 328.146584ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -144,26 +141,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.053333ms + duration: 475.15925ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -180,7 +176,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 101.508416ms + duration: 510.32875ms - id: 5 request: proto: HTTP/1.1 @@ -199,7 +195,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -216,26 +212,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.502042ms + duration: 458.765708ms - id: 6 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -252,26 +247,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 180.694167ms + duration: 302.300792ms - id: 7 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -288,26 +282,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.9065ms + duration: 591.062667ms - id: 8 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -324,7 +317,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.363167ms + duration: 535.695542ms - id: 9 request: proto: HTTP/1.1 @@ -343,7 +336,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -360,26 +353,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.708417ms + duration: 463.29375ms - id: 10 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -396,26 +388,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 131.294709ms + duration: 322.955416ms - id: 11 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -432,26 +423,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 106.2895ms + duration: 618.164708ms - id: 12 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -468,7 +458,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.556958ms + duration: 361.7225ms - id: 13 request: proto: HTTP/1.1 @@ -487,7 +477,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -504,26 +494,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.997583ms + duration: 550.471583ms - id: 14 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -540,26 +529,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 112.298ms + duration: 312.282667ms - id: 15 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -576,26 +564,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.02725ms + duration: 316.159334ms - id: 16 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -612,7 +599,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 94.833083ms + duration: 317.854125ms - id: 17 request: proto: HTTP/1.1 @@ -631,7 +618,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -648,26 +635,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 112.447708ms + duration: 344.467084ms - id: 18 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -684,26 +670,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.411791ms + duration: 378.216167ms - id: 19 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -720,26 +705,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.238667ms + duration: 553.515042ms - id: 20 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -756,7 +740,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 101.279875ms + duration: 323.8615ms - id: 21 request: proto: HTTP/1.1 @@ -775,7 +759,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -792,26 +776,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.545708ms + duration: 330.989542ms - id: 22 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -828,26 +811,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 95.960667ms + duration: 484.005291ms - id: 23 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -864,26 +846,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 168.078333ms + duration: 320.0495ms - id: 24 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -900,7 +881,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.500834ms + duration: 435.525ms - id: 25 request: proto: HTTP/1.1 @@ -919,7 +900,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -936,26 +917,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 182.612167ms + duration: 677.129625ms - id: 26 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -972,26 +952,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.199166ms + duration: 506.664958ms - id: 27 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1008,26 +987,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.334292ms + duration: 373.139666ms - id: 28 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1044,7 +1022,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 120.367166ms + duration: 432.164333ms - id: 29 request: proto: HTTP/1.1 @@ -1063,7 +1041,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -1080,26 +1058,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.507375ms + duration: 508.124125ms - id: 30 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1116,26 +1093,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 91.063083ms + duration: 818.583625ms - id: 31 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1152,26 +1128,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.96025ms + duration: 888.2355ms - id: 32 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1188,7 +1163,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 123.137458ms + duration: 501.452167ms - id: 33 request: proto: HTTP/1.1 @@ -1207,7 +1182,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -1224,26 +1199,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.649ms + duration: 368.962583ms - id: 34 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1260,26 +1234,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 89.32725ms + duration: 368.683458ms - id: 35 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1296,26 +1269,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.217583ms + duration: 591.328916ms - id: 36 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1332,7 +1304,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 96.942417ms + duration: 412.093167ms - id: 37 request: proto: HTTP/1.1 @@ -1351,7 +1323,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -1368,26 +1340,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 150.87025ms + duration: 520.859042ms - id: 38 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1404,26 +1375,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.588625ms + duration: 304.628375ms - id: 39 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1440,26 +1410,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.960583ms + duration: 370.872625ms - id: 40 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1476,7 +1445,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 109.791375ms + duration: 390.430666ms - id: 41 request: proto: HTTP/1.1 @@ -1495,7 +1464,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -1512,26 +1481,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.212958ms + duration: 347.226084ms - id: 42 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1548,26 +1516,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.270792ms + duration: 438.056791ms - id: 43 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1584,26 +1551,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.321583ms + duration: 405.584167ms - id: 44 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1620,7 +1586,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 101.217708ms + duration: 320.542958ms - id: 45 request: proto: HTTP/1.1 @@ -1639,7 +1605,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -1656,26 +1622,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 137.944875ms + duration: 461.95175ms - id: 46 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1692,26 +1657,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.282583ms + duration: 308.734666ms - id: 47 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1728,26 +1692,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 120.731625ms + duration: 319.943208ms - id: 48 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1764,8 +1727,290 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.900583ms + duration: 408.892ms - id: 49 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 96 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"custom","enabled":true,"default_from_address":"accounts@example.com","credentials":{}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"custom","enabled":true,"default_from_address":"accounts@example.com","credentials":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 449.371833ms + - id: 50 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"custom","enabled":true,"default_from_address":"accounts@example.com","credentials":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 355.630791ms + - id: 51 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"custom","enabled":true,"default_from_address":"accounts@example.com","credentials":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 457.460458ms + - id: 52 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"custom","enabled":true,"default_from_address":"accounts@example.com","credentials":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 390.194042ms + - id: 53 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 105 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"custom","enabled":false,"default_from_address":"accounts_updated@example.com","credentials":{}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"custom","enabled":false,"default_from_address":"accounts_updated@example.com","credentials":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 677.06875ms + - id: 54 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"custom","enabled":false,"default_from_address":"accounts_updated@example.com","credentials":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 408.811916ms + - id: 55 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"custom","enabled":false,"default_from_address":"accounts_updated@example.com","credentials":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 299.603958ms + - id: 56 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.11.2 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"custom","enabled":false,"default_from_address":"accounts_updated@example.com","credentials":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 294.275166ms + - id: 57 request: proto: HTTP/1.1 proto_major: 1 @@ -1783,7 +2028,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -1800,26 +2045,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 169.374708ms - - id: 50 + duration: 370.131833ms + - id: 58 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1836,26 +2080,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.479958ms - - id: 51 + duration: 491.704583ms + - id: 59 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1872,8 +2115,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.114375ms - - id: 52 + duration: 407.721666ms + - id: 60 request: proto: HTTP/1.1 proto_major: 1 @@ -1891,7 +2134,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -1908,26 +2151,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.1475ms - - id: 53 + duration: 660.833125ms + - id: 61 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1944,26 +2186,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 114.216959ms - - id: 54 + duration: 348.056458ms + - id: 62 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -1980,26 +2221,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.239166ms - - id: 55 + duration: 539.942667ms + - id: 63 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -2016,8 +2256,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 133.946833ms - - id: 56 + duration: 328.0565ms + - id: 64 request: proto: HTTP/1.1 proto_major: 1 @@ -2034,7 +2274,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: DELETE response: @@ -2051,8 +2291,8 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 132.334875ms - - id: 57 + duration: 376.1635ms + - id: 65 request: proto: HTTP/1.1 proto_major: 1 @@ -2069,7 +2309,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/latest + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: DELETE response: @@ -2086,4 +2326,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 136.72375ms + duration: 584.753667ms diff --git a/test/data/recordings/TestAccEmailTemplate.yaml b/test/data/recordings/TestAccEmailTemplate.yaml index c634b2a00..8f4164c92 100644 --- a/test/data/recordings/TestAccEmailTemplate.yaml +++ b/test/data/recordings/TestAccEmailTemplate.yaml @@ -6,20 +6,19 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -36,7 +35,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 97.529584ms + duration: 515.765541ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +54,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: POST response: @@ -72,26 +71,25 @@ interactions: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 153.511417ms + duration: 462.133542ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -108,26 +106,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 228.939917ms + duration: 439.004125ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/email-templates/welcome_email method: GET response: @@ -144,7 +141,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.861083ms + duration: 346.047583ms - id: 4 request: proto: HTTP/1.1 @@ -163,7 +160,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/email-templates/welcome_email method: PATCH response: @@ -180,26 +177,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.589875ms + duration: 339.499458ms - id: 5 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/email-templates/welcome_email method: GET response: @@ -216,26 +212,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 116.379959ms + duration: 358.856167ms - id: 6 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -252,26 +247,25 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 95.508416ms + duration: 440.48375ms - id: 7 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/email-templates/welcome_email method: GET response: @@ -288,7 +282,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 92.361083ms + duration: 327.876583ms - id: 8 request: proto: HTTP/1.1 @@ -307,7 +301,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/email-templates/welcome_email method: PATCH response: @@ -324,7 +318,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 164.831333ms + duration: 425.698917ms - id: 9 request: proto: HTTP/1.1 @@ -342,7 +336,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.0.0-beta.0 + - Go-Auth0/1.11.2 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: DELETE response: @@ -359,4 +353,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 182.187958ms + duration: 393.505583ms