From 37a32bbc12dfc8b4414aefa9f2b6bf14fd49196d Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea Date: Sun, 31 Jul 2022 23:09:04 +0200 Subject: [PATCH] Reorganize project layout --- README.md | 2 +- {example => examples}/action/main.tf | 0 {example => examples}/attack_protection/main.tf | 0 {example => examples}/branding/main.tf | 0 .../branding/universal_login_body.html | 0 {example => examples}/client/main.tf | 0 {example => examples}/client_grant/main.tf | 0 {example => examples}/connection/main.tf | 0 {example => examples}/custom_domain/main.tf | 0 .../custom_domain_self_managed_certs/README.md | 0 .../custom_domain_self_managed_certs/addresses.tf | 0 .../custom_domain_self_managed_certs/main.tf | 0 .../custom_domain_self_managed_certs/proxy.tf | 0 .../custom_domain_self_managed_certs/variables.tf | 0 .../custom_domain_self_managed_certs/versions.tf | 0 .../custom_domain_verification/main.tf | 0 {example => examples}/email/main.tf | 0 {example => examples}/email_template/main.tf | 0 {example => examples}/global_client/main.tf | 0 {example => examples}/guardian/main.tf | 0 {example => examples}/log_stream/main.tf | 0 {example => examples}/multiple_environments/README.md | 0 .../multiple_environments/custom/main.tf | 0 .../multiple_environments/custom/versions.tf | 0 .../modules/admin_console/main.tf | 0 .../modules/admin_console/versions.tf | 0 .../multiple_environments/prod/main.tf | 0 .../multiple_environments/prod/versions.tf | 0 .../multiple_environments/stage/main.tf | 0 .../multiple_environments/stage/versions.tf | 0 {example => examples}/organization/main.tf | 0 {example => examples}/organization_connection/main.tf | 0 {example => examples}/organization_member/main.tf | 0 {example => examples}/prompt/main.tf | 0 {example => examples}/resource_server/main.tf | 0 {example => examples}/role/main.tf | 0 {example => examples}/rule/main.tf | 0 {example => examples}/rule_config/main.tf | 0 {example => examples}/tenant/main.tf | 0 {example => examples}/trigger_binding/main.tf | 0 {example => examples}/user/main.tf | 0 {auth0/internal => internal}/hash/hash.go | 0 {auth0/internal => internal}/hash/hash_test.go | 0 .../provider}/data_source_auth0_client.go | 2 +- .../provider}/data_source_auth0_client_test.go | 4 ++-- .../provider}/data_source_auth0_global_client.go | 2 +- .../provider}/data_source_auth0_global_client_test.go | 2 +- .../provider}/data_source_auth0_tenant.go | 2 +- .../provider}/data_source_auth0_tenant_test.go | 4 ++-- {auth0 => internal/provider}/data_source_helpers.go | 2 +- .../provider}/data_source_helpers_test.go | 2 +- {auth0 => internal/provider}/http_recorder_test.go | 4 ++-- {auth0 => internal/provider}/provider.go | 6 +++--- {auth0 => internal/provider}/provider_test.go | 10 +++++----- {auth0 => internal/provider}/resource_auth0_action.go | 2 +- .../provider}/resource_auth0_action_test.go | 4 ++-- .../provider}/resource_auth0_attack_protection.go | 2 +- .../provider}/resource_auth0_attack_protection_test.go | 2 +- .../provider}/resource_auth0_branding.go | 2 +- .../provider}/resource_auth0_branding_test.go | 2 +- {auth0 => internal/provider}/resource_auth0_client.go | 4 ++-- .../provider}/resource_auth0_client_grant.go | 2 +- .../provider}/resource_auth0_client_grant_test.go | 4 ++-- .../provider}/resource_auth0_client_test.go | 6 +++--- .../provider}/resource_auth0_connection.go | 2 +- .../provider}/resource_auth0_connection_test.go | 4 ++-- .../provider}/resource_auth0_custom_domain.go | 2 +- .../provider}/resource_auth0_custom_domain_test.go | 4 ++-- .../resource_auth0_custom_domain_verification.go | 2 +- .../resource_auth0_custom_domain_verification_test.go | 2 +- {auth0 => internal/provider}/resource_auth0_email.go | 2 +- .../provider}/resource_auth0_email_template.go | 2 +- .../provider}/resource_auth0_email_template_test.go | 2 +- .../provider}/resource_auth0_email_test.go | 2 +- .../provider}/resource_auth0_global_client.go | 2 +- .../provider}/resource_auth0_global_client_test.go | 2 +- .../provider}/resource_auth0_guardian.go | 2 +- .../provider}/resource_auth0_guardian_test.go | 2 +- {auth0 => internal/provider}/resource_auth0_hook.go | 2 +- .../provider}/resource_auth0_hook_test.go | 2 +- .../provider}/resource_auth0_log_stream.go | 2 +- .../provider}/resource_auth0_log_stream_test.go | 4 ++-- .../provider}/resource_auth0_organization.go | 2 +- .../resource_auth0_organization_connection.go | 2 +- .../resource_auth0_organization_connection_test.go | 4 ++-- .../provider}/resource_auth0_organization_member.go | 2 +- .../resource_auth0_organization_member_test.go | 6 +++--- .../provider}/resource_auth0_organization_test.go | 4 ++-- {auth0 => internal/provider}/resource_auth0_prompt.go | 2 +- .../provider}/resource_auth0_prompt_custom_text.go | 2 +- .../resource_auth0_prompt_custom_text_test.go | 2 +- .../provider}/resource_auth0_prompt_test.go | 2 +- .../provider}/resource_auth0_resource_server.go | 2 +- .../provider}/resource_auth0_resource_server_test.go | 4 ++-- {auth0 => internal/provider}/resource_auth0_role.go | 2 +- .../provider}/resource_auth0_role_test.go | 4 ++-- {auth0 => internal/provider}/resource_auth0_rule.go | 2 +- .../provider}/resource_auth0_rule_config.go | 2 +- .../provider}/resource_auth0_rule_config_test.go | 4 ++-- .../provider}/resource_auth0_rule_test.go | 4 ++-- {auth0 => internal/provider}/resource_auth0_tenant.go | 4 ++-- .../provider}/resource_auth0_tenant_test.go | 2 +- .../provider}/resource_auth0_trigger_binding.go | 2 +- .../provider}/resource_auth0_trigger_binding_test.go | 4 ++-- {auth0 => internal/provider}/resource_auth0_user.go | 2 +- .../provider}/resource_auth0_user_test.go | 4 ++-- .../provider/resource_data_helpers.go | 2 +- .../provider/resource_data_helpers_test.go | 2 +- .../provider}/structure_auth0_connection.go | 2 +- .../provider}/structure_auth0_connection_test.go | 2 +- .../provider}/structure_auth0_guardian.go | 2 +- {auth0 => internal/provider}/structure_auth0_tenant.go | 2 +- {auth0/internal => internal}/template/template.go | 0 {auth0/internal => internal}/template/template_test.go | 0 {auth0/internal => internal}/validation/validation.go | 0 .../validation/validation_test.go | 0 main.go | 4 ++-- scripts/gendocs.go | 5 +++-- .../data}/recordings/TestAccAction.yaml | 0 .../data}/recordings/TestAccAction_FailedBuild.yaml | 0 ...stAccAttackProtectionBreachedPasswordDetection.yaml | 0 .../TestAccAttackProtectionBruteForceProtection.yaml | 0 .../TestAccAttackProtectionSuspiciousIPThrottling.yaml | 0 .../data}/recordings/TestAccBranding.yaml | 0 .../data}/recordings/TestAccClient.yaml | 0 .../data}/recordings/TestAccClientGrant.yaml | 0 .../data}/recordings/TestAccClientJwtScopes.yaml | 0 .../data}/recordings/TestAccClientMobile.yaml | 0 .../recordings/TestAccClientRefreshTokenApplied.yaml | 0 .../data}/recordings/TestAccClientRotateSecret.yaml | 0 .../data}/recordings/TestAccClientSSOIntegration.yaml | 0 .../data}/recordings/TestAccClientZeroValueCheck.yaml | 0 .../data}/recordings/TestAccConnection.yaml | 0 .../data}/recordings/TestAccConnectionAD.yaml | 0 .../data}/recordings/TestAccConnectionApple.yaml | 0 .../data}/recordings/TestAccConnectionAzureAD.yaml | 0 .../recordings/TestAccConnectionConfiguration.yaml | 0 .../data}/recordings/TestAccConnectionCustomSMS.yaml | 0 .../data}/recordings/TestAccConnectionEmail.yaml | 0 .../data}/recordings/TestAccConnectionFacebook.yaml | 0 .../data}/recordings/TestAccConnectionGitHub.yaml | 0 .../data}/recordings/TestAccConnectionGoogleApps.yaml | 0 .../recordings/TestAccConnectionGoogleOAuth2.yaml | 0 .../data}/recordings/TestAccConnectionLinkedin.yaml | 0 .../data}/recordings/TestAccConnectionOAuth2.yaml | 0 .../data}/recordings/TestAccConnectionOIDC.yaml | 0 .../data}/recordings/TestAccConnectionSAML.yaml | 0 .../data}/recordings/TestAccConnectionSMS.yaml | 0 .../data}/recordings/TestAccConnectionSalesforce.yaml | 0 .../data}/recordings/TestAccConnectionTwitter.yaml | 0 .../data}/recordings/TestAccConnectionWindowslive.yaml | 0 .../TestAccConnectionWithEnabledClients.yaml | 0 .../data}/recordings/TestAccCustomDomain.yaml | 0 ...cCustomDomainVerificationWithAuth0ManagedCerts.yaml | 0 ...ccCustomDomainVerificationWithSelfManagedCerts.yaml | 0 .../data}/recordings/TestAccDataClientById.yaml | 0 .../data}/recordings/TestAccDataClientByName.yaml | 0 .../data}/recordings/TestAccDataGlobalClient.yaml | 0 .../data}/recordings/TestAccDataTenant.yaml | 0 .../data}/recordings/TestAccEmail.yaml | 0 .../data}/recordings/TestAccEmailTemplate.yaml | 0 .../data}/recordings/TestAccGlobalClient.yaml | 0 .../data}/recordings/TestAccGuardian.yaml | 0 .../data}/recordings/TestAccGuardianDUO.yaml | 0 .../data}/recordings/TestAccGuardianPhone.yaml | 0 .../data}/recordings/TestAccGuardianPush.yaml | 0 .../recordings/TestAccGuardianWebAuthnPlatform.yaml | 0 .../recordings/TestAccGuardianWebAuthnRoaming.yaml | 0 .../testdata => test/data}/recordings/TestAccHook.yaml | 0 .../data}/recordings/TestAccHookSecrets.yaml | 0 .../data}/recordings/TestAccLogStreamDatadog.yaml | 0 .../data}/recordings/TestAccLogStreamEventBridge.yaml | 0 .../data}/recordings/TestAccLogStreamHTTP.yaml | 0 .../data}/recordings/TestAccLogStreamSplunk.yaml | 0 .../data}/recordings/TestAccLogStreamSumo.yaml | 0 .../data}/recordings/TestAccOrganization.yaml | 0 .../recordings/TestAccOrganizationConnection.yaml | 0 .../data}/recordings/TestAccOrganizationMember.yaml | 0 .../data}/recordings/TestAccPrompt.yaml | 0 .../data}/recordings/TestAccPromptCustomText.yaml | 0 .../data}/recordings/TestAccResourceServer.yaml | 0 .../testdata => test/data}/recordings/TestAccRole.yaml | 0 .../data}/recordings/TestAccRolePermissions.yaml | 0 .../testdata => test/data}/recordings/TestAccRule.yaml | 0 .../data}/recordings/TestAccRuleConfig.yaml | 0 .../data}/recordings/TestAccTenant.yaml | 0 .../data}/recordings/TestAccTenantDefaults.yaml | 0 .../data}/recordings/TestAccTriggerBinding.yaml | 0 .../testdata => test/data}/recordings/TestAccUser.yaml | 0 .../data}/recordings/TestAccUserChangeUsername.yaml | 0 {auth0/testdata => test/data}/saml_metadata.xml | 0 191 files changed, 103 insertions(+), 102 deletions(-) rename {example => examples}/action/main.tf (100%) rename {example => examples}/attack_protection/main.tf (100%) rename {example => examples}/branding/main.tf (100%) rename {example => examples}/branding/universal_login_body.html (100%) rename {example => examples}/client/main.tf (100%) rename {example => examples}/client_grant/main.tf (100%) rename {example => examples}/connection/main.tf (100%) rename {example => examples}/custom_domain/main.tf (100%) rename {example => examples}/custom_domain_self_managed_certs/README.md (100%) rename {example => examples}/custom_domain_self_managed_certs/addresses.tf (100%) rename {example => examples}/custom_domain_self_managed_certs/main.tf (100%) rename {example => examples}/custom_domain_self_managed_certs/proxy.tf (100%) rename {example => examples}/custom_domain_self_managed_certs/variables.tf (100%) rename {example => examples}/custom_domain_self_managed_certs/versions.tf (100%) rename {example => examples}/custom_domain_verification/main.tf (100%) rename {example => examples}/email/main.tf (100%) rename {example => examples}/email_template/main.tf (100%) rename {example => examples}/global_client/main.tf (100%) rename {example => examples}/guardian/main.tf (100%) rename {example => examples}/log_stream/main.tf (100%) rename {example => examples}/multiple_environments/README.md (100%) rename {example => examples}/multiple_environments/custom/main.tf (100%) rename {example => examples}/multiple_environments/custom/versions.tf (100%) rename {example => examples}/multiple_environments/modules/admin_console/main.tf (100%) rename {example => examples}/multiple_environments/modules/admin_console/versions.tf (100%) rename {example => examples}/multiple_environments/prod/main.tf (100%) rename {example => examples}/multiple_environments/prod/versions.tf (100%) rename {example => examples}/multiple_environments/stage/main.tf (100%) rename {example => examples}/multiple_environments/stage/versions.tf (100%) rename {example => examples}/organization/main.tf (100%) rename {example => examples}/organization_connection/main.tf (100%) rename {example => examples}/organization_member/main.tf (100%) rename {example => examples}/prompt/main.tf (100%) rename {example => examples}/resource_server/main.tf (100%) rename {example => examples}/role/main.tf (100%) rename {example => examples}/rule/main.tf (100%) rename {example => examples}/rule_config/main.tf (100%) rename {example => examples}/tenant/main.tf (100%) rename {example => examples}/trigger_binding/main.tf (100%) rename {example => examples}/user/main.tf (100%) rename {auth0/internal => internal}/hash/hash.go (100%) rename {auth0/internal => internal}/hash/hash_test.go (100%) rename {auth0 => internal/provider}/data_source_auth0_client.go (98%) rename {auth0 => internal/provider}/data_source_auth0_client_test.go (97%) rename {auth0 => internal/provider}/data_source_auth0_global_client.go (96%) rename {auth0 => internal/provider}/data_source_auth0_global_client_test.go (98%) rename {auth0 => internal/provider}/data_source_auth0_tenant.go (98%) rename {auth0 => internal/provider}/data_source_auth0_tenant_test.go (92%) rename {auth0 => internal/provider}/data_source_helpers.go (99%) rename {auth0 => internal/provider}/data_source_helpers_test.go (99%) rename {auth0 => internal/provider}/http_recorder_test.go (97%) rename {auth0 => internal/provider}/provider.go (98%) rename {auth0 => internal/provider}/provider_test.go (97%) rename {auth0 => internal/provider}/resource_auth0_action.go (99%) rename {auth0 => internal/provider}/resource_auth0_action_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_attack_protection.go (99%) rename {auth0 => internal/provider}/resource_auth0_attack_protection_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_branding.go (99%) rename {auth0 => internal/provider}/resource_auth0_branding_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_client.go (99%) rename {auth0 => internal/provider}/resource_auth0_client_grant.go (99%) rename {auth0 => internal/provider}/resource_auth0_client_grant_test.go (97%) rename {auth0 => internal/provider}/resource_auth0_client_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_connection.go (99%) rename {auth0 => internal/provider}/resource_auth0_connection_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_custom_domain.go (99%) rename {auth0 => internal/provider}/resource_auth0_custom_domain_test.go (95%) rename {auth0 => internal/provider}/resource_auth0_custom_domain_verification.go (99%) rename {auth0 => internal/provider}/resource_auth0_custom_domain_verification_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_email.go (99%) rename {auth0 => internal/provider}/resource_auth0_email_template.go (99%) rename {auth0 => internal/provider}/resource_auth0_email_template_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_email_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_global_client.go (99%) rename {auth0 => internal/provider}/resource_auth0_global_client_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_guardian.go (99%) rename {auth0 => internal/provider}/resource_auth0_guardian_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_hook.go (99%) rename {auth0 => internal/provider}/resource_auth0_hook_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_log_stream.go (99%) rename {auth0 => internal/provider}/resource_auth0_log_stream_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_organization.go (99%) rename {auth0 => internal/provider}/resource_auth0_organization_connection.go (99%) rename {auth0 => internal/provider}/resource_auth0_organization_connection_test.go (97%) rename {auth0 => internal/provider}/resource_auth0_organization_member.go (99%) rename {auth0 => internal/provider}/resource_auth0_organization_member_test.go (97%) rename {auth0 => internal/provider}/resource_auth0_organization_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_prompt.go (99%) rename {auth0 => internal/provider}/resource_auth0_prompt_custom_text.go (99%) rename {auth0 => internal/provider}/resource_auth0_prompt_custom_text_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_prompt_test.go (98%) rename {auth0 => internal/provider}/resource_auth0_resource_server.go (99%) rename {auth0 => internal/provider}/resource_auth0_resource_server_test.go (98%) rename {auth0 => internal/provider}/resource_auth0_role.go (99%) rename {auth0 => internal/provider}/resource_auth0_role_test.go (98%) rename {auth0 => internal/provider}/resource_auth0_rule.go (99%) rename {auth0 => internal/provider}/resource_auth0_rule_config.go (99%) rename {auth0 => internal/provider}/resource_auth0_rule_config_test.go (96%) rename {auth0 => internal/provider}/resource_auth0_rule_test.go (95%) rename {auth0 => internal/provider}/resource_auth0_tenant.go (99%) rename {auth0 => internal/provider}/resource_auth0_tenant_test.go (99%) rename {auth0 => internal/provider}/resource_auth0_trigger_binding.go (99%) rename {auth0 => internal/provider}/resource_auth0_trigger_binding_test.go (97%) rename {auth0 => internal/provider}/resource_auth0_user.go (99%) rename {auth0 => internal/provider}/resource_auth0_user_test.go (99%) rename auth0/resource_data.go => internal/provider/resource_data_helpers.go (99%) rename auth0/resource_data_test.go => internal/provider/resource_data_helpers_test.go (98%) rename {auth0 => internal/provider}/structure_auth0_connection.go (99%) rename {auth0 => internal/provider}/structure_auth0_connection_test.go (98%) rename {auth0 => internal/provider}/structure_auth0_guardian.go (99%) rename {auth0 => internal/provider}/structure_auth0_tenant.go (99%) rename {auth0/internal => internal}/template/template.go (100%) rename {auth0/internal => internal}/template/template_test.go (100%) rename {auth0/internal => internal}/validation/validation.go (100%) rename {auth0/internal => internal}/validation/validation_test.go (100%) rename {auth0/testdata => test/data}/recordings/TestAccAction.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccAction_FailedBuild.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccAttackProtectionBreachedPasswordDetection.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccAttackProtectionBruteForceProtection.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccAttackProtectionSuspiciousIPThrottling.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccBranding.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccClient.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccClientGrant.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccClientJwtScopes.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccClientMobile.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccClientRefreshTokenApplied.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccClientRotateSecret.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccClientSSOIntegration.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccClientZeroValueCheck.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnection.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionAD.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionApple.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionAzureAD.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionConfiguration.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionCustomSMS.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionEmail.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionFacebook.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionGitHub.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionGoogleApps.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionGoogleOAuth2.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionLinkedin.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionOAuth2.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionOIDC.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionSAML.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionSMS.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionSalesforce.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionTwitter.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionWindowslive.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccConnectionWithEnabledClients.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccCustomDomain.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccCustomDomainVerificationWithAuth0ManagedCerts.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccCustomDomainVerificationWithSelfManagedCerts.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccDataClientById.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccDataClientByName.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccDataGlobalClient.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccDataTenant.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccEmail.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccEmailTemplate.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccGlobalClient.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccGuardian.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccGuardianDUO.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccGuardianPhone.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccGuardianPush.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccGuardianWebAuthnPlatform.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccGuardianWebAuthnRoaming.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccHook.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccHookSecrets.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccLogStreamDatadog.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccLogStreamEventBridge.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccLogStreamHTTP.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccLogStreamSplunk.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccLogStreamSumo.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccOrganization.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccOrganizationConnection.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccOrganizationMember.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccPrompt.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccPromptCustomText.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccResourceServer.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccRole.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccRolePermissions.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccRule.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccRuleConfig.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccTenant.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccTenantDefaults.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccTriggerBinding.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccUser.yaml (100%) rename {auth0/testdata => test/data}/recordings/TestAccUserChangeUsername.yaml (100%) rename {auth0/testdata => test/data}/saml_metadata.xml (100%) diff --git a/README.md b/README.md index 6c5f68921..3f258a7aa 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ available resources. ## Usage -You can find examples on usage under the [example](example) folder. +You can find examples on usage under the [examples](examples) folder. [[table of contents]](#table-of-contents) diff --git a/example/action/main.tf b/examples/action/main.tf similarity index 100% rename from example/action/main.tf rename to examples/action/main.tf diff --git a/example/attack_protection/main.tf b/examples/attack_protection/main.tf similarity index 100% rename from example/attack_protection/main.tf rename to examples/attack_protection/main.tf diff --git a/example/branding/main.tf b/examples/branding/main.tf similarity index 100% rename from example/branding/main.tf rename to examples/branding/main.tf diff --git a/example/branding/universal_login_body.html b/examples/branding/universal_login_body.html similarity index 100% rename from example/branding/universal_login_body.html rename to examples/branding/universal_login_body.html diff --git a/example/client/main.tf b/examples/client/main.tf similarity index 100% rename from example/client/main.tf rename to examples/client/main.tf diff --git a/example/client_grant/main.tf b/examples/client_grant/main.tf similarity index 100% rename from example/client_grant/main.tf rename to examples/client_grant/main.tf diff --git a/example/connection/main.tf b/examples/connection/main.tf similarity index 100% rename from example/connection/main.tf rename to examples/connection/main.tf diff --git a/example/custom_domain/main.tf b/examples/custom_domain/main.tf similarity index 100% rename from example/custom_domain/main.tf rename to examples/custom_domain/main.tf diff --git a/example/custom_domain_self_managed_certs/README.md b/examples/custom_domain_self_managed_certs/README.md similarity index 100% rename from example/custom_domain_self_managed_certs/README.md rename to examples/custom_domain_self_managed_certs/README.md diff --git a/example/custom_domain_self_managed_certs/addresses.tf b/examples/custom_domain_self_managed_certs/addresses.tf similarity index 100% rename from example/custom_domain_self_managed_certs/addresses.tf rename to examples/custom_domain_self_managed_certs/addresses.tf diff --git a/example/custom_domain_self_managed_certs/main.tf b/examples/custom_domain_self_managed_certs/main.tf similarity index 100% rename from example/custom_domain_self_managed_certs/main.tf rename to examples/custom_domain_self_managed_certs/main.tf diff --git a/example/custom_domain_self_managed_certs/proxy.tf b/examples/custom_domain_self_managed_certs/proxy.tf similarity index 100% rename from example/custom_domain_self_managed_certs/proxy.tf rename to examples/custom_domain_self_managed_certs/proxy.tf diff --git a/example/custom_domain_self_managed_certs/variables.tf b/examples/custom_domain_self_managed_certs/variables.tf similarity index 100% rename from example/custom_domain_self_managed_certs/variables.tf rename to examples/custom_domain_self_managed_certs/variables.tf diff --git a/example/custom_domain_self_managed_certs/versions.tf b/examples/custom_domain_self_managed_certs/versions.tf similarity index 100% rename from example/custom_domain_self_managed_certs/versions.tf rename to examples/custom_domain_self_managed_certs/versions.tf diff --git a/example/custom_domain_verification/main.tf b/examples/custom_domain_verification/main.tf similarity index 100% rename from example/custom_domain_verification/main.tf rename to examples/custom_domain_verification/main.tf diff --git a/example/email/main.tf b/examples/email/main.tf similarity index 100% rename from example/email/main.tf rename to examples/email/main.tf diff --git a/example/email_template/main.tf b/examples/email_template/main.tf similarity index 100% rename from example/email_template/main.tf rename to examples/email_template/main.tf diff --git a/example/global_client/main.tf b/examples/global_client/main.tf similarity index 100% rename from example/global_client/main.tf rename to examples/global_client/main.tf diff --git a/example/guardian/main.tf b/examples/guardian/main.tf similarity index 100% rename from example/guardian/main.tf rename to examples/guardian/main.tf diff --git a/example/log_stream/main.tf b/examples/log_stream/main.tf similarity index 100% rename from example/log_stream/main.tf rename to examples/log_stream/main.tf diff --git a/example/multiple_environments/README.md b/examples/multiple_environments/README.md similarity index 100% rename from example/multiple_environments/README.md rename to examples/multiple_environments/README.md diff --git a/example/multiple_environments/custom/main.tf b/examples/multiple_environments/custom/main.tf similarity index 100% rename from example/multiple_environments/custom/main.tf rename to examples/multiple_environments/custom/main.tf diff --git a/example/multiple_environments/custom/versions.tf b/examples/multiple_environments/custom/versions.tf similarity index 100% rename from example/multiple_environments/custom/versions.tf rename to examples/multiple_environments/custom/versions.tf diff --git a/example/multiple_environments/modules/admin_console/main.tf b/examples/multiple_environments/modules/admin_console/main.tf similarity index 100% rename from example/multiple_environments/modules/admin_console/main.tf rename to examples/multiple_environments/modules/admin_console/main.tf diff --git a/example/multiple_environments/modules/admin_console/versions.tf b/examples/multiple_environments/modules/admin_console/versions.tf similarity index 100% rename from example/multiple_environments/modules/admin_console/versions.tf rename to examples/multiple_environments/modules/admin_console/versions.tf diff --git a/example/multiple_environments/prod/main.tf b/examples/multiple_environments/prod/main.tf similarity index 100% rename from example/multiple_environments/prod/main.tf rename to examples/multiple_environments/prod/main.tf diff --git a/example/multiple_environments/prod/versions.tf b/examples/multiple_environments/prod/versions.tf similarity index 100% rename from example/multiple_environments/prod/versions.tf rename to examples/multiple_environments/prod/versions.tf diff --git a/example/multiple_environments/stage/main.tf b/examples/multiple_environments/stage/main.tf similarity index 100% rename from example/multiple_environments/stage/main.tf rename to examples/multiple_environments/stage/main.tf diff --git a/example/multiple_environments/stage/versions.tf b/examples/multiple_environments/stage/versions.tf similarity index 100% rename from example/multiple_environments/stage/versions.tf rename to examples/multiple_environments/stage/versions.tf diff --git a/example/organization/main.tf b/examples/organization/main.tf similarity index 100% rename from example/organization/main.tf rename to examples/organization/main.tf diff --git a/example/organization_connection/main.tf b/examples/organization_connection/main.tf similarity index 100% rename from example/organization_connection/main.tf rename to examples/organization_connection/main.tf diff --git a/example/organization_member/main.tf b/examples/organization_member/main.tf similarity index 100% rename from example/organization_member/main.tf rename to examples/organization_member/main.tf diff --git a/example/prompt/main.tf b/examples/prompt/main.tf similarity index 100% rename from example/prompt/main.tf rename to examples/prompt/main.tf diff --git a/example/resource_server/main.tf b/examples/resource_server/main.tf similarity index 100% rename from example/resource_server/main.tf rename to examples/resource_server/main.tf diff --git a/example/role/main.tf b/examples/role/main.tf similarity index 100% rename from example/role/main.tf rename to examples/role/main.tf diff --git a/example/rule/main.tf b/examples/rule/main.tf similarity index 100% rename from example/rule/main.tf rename to examples/rule/main.tf diff --git a/example/rule_config/main.tf b/examples/rule_config/main.tf similarity index 100% rename from example/rule_config/main.tf rename to examples/rule_config/main.tf diff --git a/example/tenant/main.tf b/examples/tenant/main.tf similarity index 100% rename from example/tenant/main.tf rename to examples/tenant/main.tf diff --git a/example/trigger_binding/main.tf b/examples/trigger_binding/main.tf similarity index 100% rename from example/trigger_binding/main.tf rename to examples/trigger_binding/main.tf diff --git a/example/user/main.tf b/examples/user/main.tf similarity index 100% rename from example/user/main.tf rename to examples/user/main.tf diff --git a/auth0/internal/hash/hash.go b/internal/hash/hash.go similarity index 100% rename from auth0/internal/hash/hash.go rename to internal/hash/hash.go diff --git a/auth0/internal/hash/hash_test.go b/internal/hash/hash_test.go similarity index 100% rename from auth0/internal/hash/hash_test.go rename to internal/hash/hash_test.go diff --git a/auth0/data_source_auth0_client.go b/internal/provider/data_source_auth0_client.go similarity index 98% rename from auth0/data_source_auth0_client.go rename to internal/provider/data_source_auth0_client.go index ea5e13c2b..475273067 100644 --- a/auth0/data_source_auth0_client.go +++ b/internal/provider/data_source_auth0_client.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/data_source_auth0_client_test.go b/internal/provider/data_source_auth0_client_test.go similarity index 97% rename from auth0/data_source_auth0_client_test.go rename to internal/provider/data_source_auth0_client_test.go index caebb13c2..4691f753b 100644 --- a/auth0/data_source_auth0_client_test.go +++ b/internal/provider/data_source_auth0_client_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) const testAccDataClientConfigByName = ` diff --git a/auth0/data_source_auth0_global_client.go b/internal/provider/data_source_auth0_global_client.go similarity index 96% rename from auth0/data_source_auth0_global_client.go rename to internal/provider/data_source_auth0_global_client.go index 9001ee3ee..d5902d3b3 100644 --- a/auth0/data_source_auth0_global_client.go +++ b/internal/provider/data_source_auth0_global_client.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/data_source_auth0_global_client_test.go b/internal/provider/data_source_auth0_global_client_test.go similarity index 98% rename from auth0/data_source_auth0_global_client_test.go rename to internal/provider/data_source_auth0_global_client_test.go index c1b4abc35..b5441bcdc 100644 --- a/auth0/data_source_auth0_global_client_test.go +++ b/internal/provider/data_source_auth0_global_client_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" diff --git a/auth0/data_source_auth0_tenant.go b/internal/provider/data_source_auth0_tenant.go similarity index 98% rename from auth0/data_source_auth0_tenant.go rename to internal/provider/data_source_auth0_tenant.go index 3bfde10f6..75fc32aeb 100644 --- a/auth0/data_source_auth0_tenant.go +++ b/internal/provider/data_source_auth0_tenant.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/data_source_auth0_tenant_test.go b/internal/provider/data_source_auth0_tenant_test.go similarity index 92% rename from auth0/data_source_auth0_tenant_test.go rename to internal/provider/data_source_auth0_tenant_test.go index b04d5f7c7..11e64b499 100644 --- a/auth0/data_source_auth0_tenant_test.go +++ b/internal/provider/data_source_auth0_tenant_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) const testAccDataTenantConfig = ` diff --git a/auth0/data_source_helpers.go b/internal/provider/data_source_helpers.go similarity index 99% rename from auth0/data_source_helpers.go rename to internal/provider/data_source_helpers.go index 9534f23fe..4fb0f8acb 100644 --- a/auth0/data_source_helpers.go +++ b/internal/provider/data_source_helpers.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/auth0/data_source_helpers_test.go b/internal/provider/data_source_helpers_test.go similarity index 99% rename from auth0/data_source_helpers_test.go rename to internal/provider/data_source_helpers_test.go index d6de1b59e..6b8d79f0e 100644 --- a/auth0/data_source_helpers_test.go +++ b/internal/provider/data_source_helpers_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/http_recorder_test.go b/internal/provider/http_recorder_test.go similarity index 97% rename from auth0/http_recorder_test.go rename to internal/provider/http_recorder_test.go index d6eed0739..a25994ddb 100644 --- a/auth0/http_recorder_test.go +++ b/internal/provider/http_recorder_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "encoding/json" @@ -16,7 +16,7 @@ import ( ) const ( - recordingsDIR = "testdata/recordings/" + recordingsDIR = "./../../test/data/recordings/" recordingsDomain = "terraform-provider-auth0-dev.eu.auth0.com" ) diff --git a/auth0/provider.go b/internal/provider/provider.go similarity index 98% rename from auth0/provider.go rename to internal/provider/provider.go index 6a2e572b9..f5a8ae991 100644 --- a/auth0/provider.go +++ b/internal/provider/provider.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" @@ -14,8 +14,8 @@ import ( "github.com/auth0/terraform-provider-auth0/version" ) -// Provider returns a *schema.Provider. -func Provider() *schema.Provider { +// New returns a *schema.Provider. +func New() *schema.Provider { provider := &schema.Provider{ Schema: map[string]*schema.Schema{ "domain": { diff --git a/auth0/provider_test.go b/internal/provider/provider_test.go similarity index 97% rename from auth0/provider_test.go rename to internal/provider/provider_test.go index f2ef15538..ac8d0e802 100644 --- a/auth0/provider_test.go +++ b/internal/provider/provider_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" @@ -20,7 +20,7 @@ import ( func testProviders(httpRecorder *recorder.Recorder) map[string]func() (*schema.Provider, error) { return map[string]func() (*schema.Provider, error){ "auth0": func() (*schema.Provider, error) { - provider := Provider() + provider := New() provider.ConfigureContextFunc = configureTestProvider(httpRecorder) @@ -101,7 +101,7 @@ func TestMain(m *testing.M) { } func TestProvider(t *testing.T) { - if err := Provider().InternalValidate(); err != nil { + if err := New().InternalValidate(); err != nil { t.Fatal(err) } } @@ -122,7 +122,7 @@ func TestProvider_debugDefaults(t *testing.T) { _ = os.Setenv("AUTH0_DEBUG", value) } - p := Provider() + p := New() debug, err := p.Schema["debug"].DefaultValue() if err != nil { t.Fatalf("Unexpected error: %v", err) @@ -199,7 +199,7 @@ func TestProvider_configValidation(t *testing.T) { for _, test := range testCases { t.Run(test.name, func(t *testing.T) { config := terraform.NewResourceConfigRaw(test.resourceConfig) - provider := Provider() + provider := New() errs := provider.Validate(config) assertErrorsSliceEqual(t, test.expectedErrors, errs) diff --git a/auth0/resource_auth0_action.go b/internal/provider/resource_auth0_action.go similarity index 99% rename from auth0/resource_auth0_action.go rename to internal/provider/resource_auth0_action.go index 64d491936..bd83afe6e 100644 --- a/auth0/resource_auth0_action.go +++ b/internal/provider/resource_auth0_action.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_action_test.go b/internal/provider/resource_auth0_action_test.go similarity index 99% rename from auth0/resource_auth0_action_test.go rename to internal/provider/resource_auth0_action_test.go index 55e6e7134..e6203b0ce 100644 --- a/auth0/resource_auth0_action_test.go +++ b/internal/provider/resource_auth0_action_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/stretchr/testify/assert" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) const testAccActionConfigCreate = ` diff --git a/auth0/resource_auth0_attack_protection.go b/internal/provider/resource_auth0_attack_protection.go similarity index 99% rename from auth0/resource_auth0_attack_protection.go rename to internal/provider/resource_auth0_attack_protection.go index 79afb79e6..9da28eec7 100644 --- a/auth0/resource_auth0_attack_protection.go +++ b/internal/provider/resource_auth0_attack_protection.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_attack_protection_test.go b/internal/provider/resource_auth0_attack_protection_test.go similarity index 99% rename from auth0/resource_auth0_attack_protection_test.go rename to internal/provider/resource_auth0_attack_protection_test.go index 2b763c48f..39bf0b58f 100644 --- a/auth0/resource_auth0_attack_protection_test.go +++ b/internal/provider/resource_auth0_attack_protection_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/resource_auth0_branding.go b/internal/provider/resource_auth0_branding.go similarity index 99% rename from auth0/resource_auth0_branding.go rename to internal/provider/resource_auth0_branding.go index ac4fd257a..3df0c6534 100644 --- a/auth0/resource_auth0_branding.go +++ b/internal/provider/resource_auth0_branding.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_branding_test.go b/internal/provider/resource_auth0_branding_test.go similarity index 99% rename from auth0/resource_auth0_branding_test.go rename to internal/provider/resource_auth0_branding_test.go index b1f628eae..535edfe34 100644 --- a/auth0/resource_auth0_branding_test.go +++ b/internal/provider/resource_auth0_branding_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/resource_auth0_client.go b/internal/provider/resource_auth0_client.go similarity index 99% rename from auth0/resource_auth0_client.go rename to internal/provider/resource_auth0_client.go index 8af3d95fe..0cb88e9e9 100644 --- a/auth0/resource_auth0_client.go +++ b/internal/provider/resource_auth0_client.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - internalValidation "github.com/auth0/terraform-provider-auth0/auth0/internal/validation" + internalValidation "github.com/auth0/terraform-provider-auth0/internal/validation" ) func newClient() *schema.Resource { diff --git a/auth0/resource_auth0_client_grant.go b/internal/provider/resource_auth0_client_grant.go similarity index 99% rename from auth0/resource_auth0_client_grant.go rename to internal/provider/resource_auth0_client_grant.go index 8cbe1acc5..5d23cb9da 100644 --- a/auth0/resource_auth0_client_grant.go +++ b/internal/provider/resource_auth0_client_grant.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_client_grant_test.go b/internal/provider/resource_auth0_client_grant_test.go similarity index 97% rename from auth0/resource_auth0_client_grant_test.go rename to internal/provider/resource_auth0_client_grant_test.go index 53d63bcb1..f46791f0f 100644 --- a/auth0/resource_auth0_client_grant_test.go +++ b/internal/provider/resource_auth0_client_grant_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func TestAccClientGrant(t *testing.T) { diff --git a/auth0/resource_auth0_client_test.go b/internal/provider/resource_auth0_client_test.go similarity index 99% rename from auth0/resource_auth0_client_test.go rename to internal/provider/resource_auth0_client_test.go index 01f0f385f..4462a5285 100644 --- a/auth0/resource_auth0_client_test.go +++ b/internal/provider/resource_auth0_client_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { @@ -585,7 +585,7 @@ const testAccClientConfigWithRefreshToken = ` resource "auth0_client" "my_client" { name = "Acceptance Test - Refresh Token - {{.testName}}" app_type = "spa" - + refresh_token { rotation_type = "non-rotating" expiration_type = "non-expiring" diff --git a/auth0/resource_auth0_connection.go b/internal/provider/resource_auth0_connection.go similarity index 99% rename from auth0/resource_auth0_connection.go rename to internal/provider/resource_auth0_connection.go index 739ca1682..8ef710979 100644 --- a/auth0/resource_auth0_connection.go +++ b/internal/provider/resource_auth0_connection.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_connection_test.go b/internal/provider/resource_auth0_connection_test.go similarity index 99% rename from auth0/resource_auth0_connection_test.go rename to internal/provider/resource_auth0_connection_test.go index 2dff3cfe0..0952629ce 100644 --- a/auth0/resource_auth0_connection_test.go +++ b/internal/provider/resource_auth0_connection_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { diff --git a/auth0/resource_auth0_custom_domain.go b/internal/provider/resource_auth0_custom_domain.go similarity index 99% rename from auth0/resource_auth0_custom_domain.go rename to internal/provider/resource_auth0_custom_domain.go index d48c8fd42..167b1d08f 100644 --- a/auth0/resource_auth0_custom_domain.go +++ b/internal/provider/resource_auth0_custom_domain.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_custom_domain_test.go b/internal/provider/resource_auth0_custom_domain_test.go similarity index 95% rename from auth0/resource_auth0_custom_domain_test.go rename to internal/provider/resource_auth0_custom_domain_test.go index 86ac9cbd7..a3b987708 100644 --- a/auth0/resource_auth0_custom_domain_test.go +++ b/internal/provider/resource_auth0_custom_domain_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { diff --git a/auth0/resource_auth0_custom_domain_verification.go b/internal/provider/resource_auth0_custom_domain_verification.go similarity index 99% rename from auth0/resource_auth0_custom_domain_verification.go rename to internal/provider/resource_auth0_custom_domain_verification.go index 09e866ae2..3415ade74 100644 --- a/auth0/resource_auth0_custom_domain_verification.go +++ b/internal/provider/resource_auth0_custom_domain_verification.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_custom_domain_verification_test.go b/internal/provider/resource_auth0_custom_domain_verification_test.go similarity index 99% rename from auth0/resource_auth0_custom_domain_verification_test.go rename to internal/provider/resource_auth0_custom_domain_verification_test.go index 27a961393..c1b799173 100644 --- a/auth0/resource_auth0_custom_domain_verification_test.go +++ b/internal/provider/resource_auth0_custom_domain_verification_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/resource_auth0_email.go b/internal/provider/resource_auth0_email.go similarity index 99% rename from auth0/resource_auth0_email.go rename to internal/provider/resource_auth0_email.go index be5bef5dc..9b40c976d 100644 --- a/auth0/resource_auth0_email.go +++ b/internal/provider/resource_auth0_email.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_email_template.go b/internal/provider/resource_auth0_email_template.go similarity index 99% rename from auth0/resource_auth0_email_template.go rename to internal/provider/resource_auth0_email_template.go index 292641047..ff222a539 100644 --- a/auth0/resource_auth0_email_template.go +++ b/internal/provider/resource_auth0_email_template.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_email_template_test.go b/internal/provider/resource_auth0_email_template_test.go similarity index 99% rename from auth0/resource_auth0_email_template_test.go rename to internal/provider/resource_auth0_email_template_test.go index 440c9efce..e46fb26eb 100644 --- a/auth0/resource_auth0_email_template_test.go +++ b/internal/provider/resource_auth0_email_template_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/resource_auth0_email_test.go b/internal/provider/resource_auth0_email_test.go similarity index 99% rename from auth0/resource_auth0_email_test.go rename to internal/provider/resource_auth0_email_test.go index 9cda6d9b3..50ac7c1bb 100644 --- a/auth0/resource_auth0_email_test.go +++ b/internal/provider/resource_auth0_email_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/resource_auth0_global_client.go b/internal/provider/resource_auth0_global_client.go similarity index 99% rename from auth0/resource_auth0_global_client.go rename to internal/provider/resource_auth0_global_client.go index f7bc5ec59..51a073b75 100644 --- a/auth0/resource_auth0_global_client.go +++ b/internal/provider/resource_auth0_global_client.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_global_client_test.go b/internal/provider/resource_auth0_global_client_test.go similarity index 99% rename from auth0/resource_auth0_global_client_test.go rename to internal/provider/resource_auth0_global_client_test.go index fe73ebcb4..166c28c23 100644 --- a/auth0/resource_auth0_global_client_test.go +++ b/internal/provider/resource_auth0_global_client_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "errors" diff --git a/auth0/resource_auth0_guardian.go b/internal/provider/resource_auth0_guardian.go similarity index 99% rename from auth0/resource_auth0_guardian.go rename to internal/provider/resource_auth0_guardian.go index 6ca44d0b8..3a4811971 100644 --- a/auth0/resource_auth0_guardian.go +++ b/internal/provider/resource_auth0_guardian.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_guardian_test.go b/internal/provider/resource_auth0_guardian_test.go similarity index 99% rename from auth0/resource_auth0_guardian_test.go rename to internal/provider/resource_auth0_guardian_test.go index 97a9d2d11..9d139a18d 100644 --- a/auth0/resource_auth0_guardian_test.go +++ b/internal/provider/resource_auth0_guardian_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/resource_auth0_hook.go b/internal/provider/resource_auth0_hook.go similarity index 99% rename from auth0/resource_auth0_hook.go rename to internal/provider/resource_auth0_hook.go index f6d291093..260ed9db9 100644 --- a/auth0/resource_auth0_hook.go +++ b/internal/provider/resource_auth0_hook.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_hook_test.go b/internal/provider/resource_auth0_hook_test.go similarity index 99% rename from auth0/resource_auth0_hook_test.go rename to internal/provider/resource_auth0_hook_test.go index edd008e52..e871a2b3c 100644 --- a/auth0/resource_auth0_hook_test.go +++ b/internal/provider/resource_auth0_hook_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" diff --git a/auth0/resource_auth0_log_stream.go b/internal/provider/resource_auth0_log_stream.go similarity index 99% rename from auth0/resource_auth0_log_stream.go rename to internal/provider/resource_auth0_log_stream.go index f379a50cb..86da76453 100644 --- a/auth0/resource_auth0_log_stream.go +++ b/internal/provider/resource_auth0_log_stream.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_log_stream_test.go b/internal/provider/resource_auth0_log_stream_test.go similarity index 99% rename from auth0/resource_auth0_log_stream_test.go rename to internal/provider/resource_auth0_log_stream_test.go index f3eb9aa38..185a975b5 100644 --- a/auth0/resource_auth0_log_stream_test.go +++ b/internal/provider/resource_auth0_log_stream_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { diff --git a/auth0/resource_auth0_organization.go b/internal/provider/resource_auth0_organization.go similarity index 99% rename from auth0/resource_auth0_organization.go rename to internal/provider/resource_auth0_organization.go index 74eaf66ea..9f7e89fa1 100644 --- a/auth0/resource_auth0_organization.go +++ b/internal/provider/resource_auth0_organization.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_organization_connection.go b/internal/provider/resource_auth0_organization_connection.go similarity index 99% rename from auth0/resource_auth0_organization_connection.go rename to internal/provider/resource_auth0_organization_connection.go index e93150bb5..a61372222 100644 --- a/auth0/resource_auth0_organization_connection.go +++ b/internal/provider/resource_auth0_organization_connection.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_organization_connection_test.go b/internal/provider/resource_auth0_organization_connection_test.go similarity index 97% rename from auth0/resource_auth0_organization_connection_test.go rename to internal/provider/resource_auth0_organization_connection_test.go index 524c49699..3ced1cd2a 100644 --- a/auth0/resource_auth0_organization_connection_test.go +++ b/internal/provider/resource_auth0_organization_connection_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "strings" @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) const testAccOrganizationConnectionGivenAnOrgAndAConnection = ` diff --git a/auth0/resource_auth0_organization_member.go b/internal/provider/resource_auth0_organization_member.go similarity index 99% rename from auth0/resource_auth0_organization_member.go rename to internal/provider/resource_auth0_organization_member.go index e1d688fa6..342efff1e 100644 --- a/auth0/resource_auth0_organization_member.go +++ b/internal/provider/resource_auth0_organization_member.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_organization_member_test.go b/internal/provider/resource_auth0_organization_member_test.go similarity index 97% rename from auth0/resource_auth0_organization_member_test.go rename to internal/provider/resource_auth0_organization_member_test.go index 4aa11bac4..64fdec260 100644 --- a/auth0/resource_auth0_organization_member_test.go +++ b/internal/provider/resource_auth0_organization_member_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "strings" @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func TestAccOrganizationMember(t *testing.T) { @@ -104,7 +104,7 @@ resource auth0_role reader { } resource auth0_role admin { - depends_on = [ auth0_role.reader ] + depends_on = [ auth0_role.reader ] name = "Admin - {{.testName}}" } diff --git a/auth0/resource_auth0_organization_test.go b/internal/provider/resource_auth0_organization_test.go similarity index 99% rename from auth0/resource_auth0_organization_test.go rename to internal/provider/resource_auth0_organization_test.go index c5c99e35e..32f2021f4 100644 --- a/auth0/resource_auth0_organization_test.go +++ b/internal/provider/resource_auth0_organization_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { diff --git a/auth0/resource_auth0_prompt.go b/internal/provider/resource_auth0_prompt.go similarity index 99% rename from auth0/resource_auth0_prompt.go rename to internal/provider/resource_auth0_prompt.go index e133b1b83..be33a84ae 100644 --- a/auth0/resource_auth0_prompt.go +++ b/internal/provider/resource_auth0_prompt.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_prompt_custom_text.go b/internal/provider/resource_auth0_prompt_custom_text.go similarity index 99% rename from auth0/resource_auth0_prompt_custom_text.go rename to internal/provider/resource_auth0_prompt_custom_text.go index 73f4a954b..b4e088d7c 100644 --- a/auth0/resource_auth0_prompt_custom_text.go +++ b/internal/provider/resource_auth0_prompt_custom_text.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "bytes" diff --git a/auth0/resource_auth0_prompt_custom_text_test.go b/internal/provider/resource_auth0_prompt_custom_text_test.go similarity index 99% rename from auth0/resource_auth0_prompt_custom_text_test.go rename to internal/provider/resource_auth0_prompt_custom_text_test.go index 641fed655..13555e272 100644 --- a/auth0/resource_auth0_prompt_custom_text_test.go +++ b/internal/provider/resource_auth0_prompt_custom_text_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/resource_auth0_prompt_test.go b/internal/provider/resource_auth0_prompt_test.go similarity index 98% rename from auth0/resource_auth0_prompt_test.go rename to internal/provider/resource_auth0_prompt_test.go index cdd033161..b64e35c26 100644 --- a/auth0/resource_auth0_prompt_test.go +++ b/internal/provider/resource_auth0_prompt_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/resource_auth0_resource_server.go b/internal/provider/resource_auth0_resource_server.go similarity index 99% rename from auth0/resource_auth0_resource_server.go rename to internal/provider/resource_auth0_resource_server.go index e3a08ecb6..b3109b3c2 100644 --- a/auth0/resource_auth0_resource_server.go +++ b/internal/provider/resource_auth0_resource_server.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_resource_server_test.go b/internal/provider/resource_auth0_resource_server_test.go similarity index 98% rename from auth0/resource_auth0_resource_server_test.go rename to internal/provider/resource_auth0_resource_server_test.go index 268981196..370e66892 100644 --- a/auth0/resource_auth0_resource_server_test.go +++ b/internal/provider/resource_auth0_resource_server_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -9,7 +9,7 @@ import ( "github.com/auth0/go-auth0/management" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { diff --git a/auth0/resource_auth0_role.go b/internal/provider/resource_auth0_role.go similarity index 99% rename from auth0/resource_auth0_role.go rename to internal/provider/resource_auth0_role.go index e99c4da75..0089e674a 100644 --- a/auth0/resource_auth0_role.go +++ b/internal/provider/resource_auth0_role.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_role_test.go b/internal/provider/resource_auth0_role_test.go similarity index 98% rename from auth0/resource_auth0_role_test.go rename to internal/provider/resource_auth0_role_test.go index aac231c8e..3b1c0e904 100644 --- a/auth0/resource_auth0_role_test.go +++ b/internal/provider/resource_auth0_role_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { diff --git a/auth0/resource_auth0_rule.go b/internal/provider/resource_auth0_rule.go similarity index 99% rename from auth0/resource_auth0_rule.go rename to internal/provider/resource_auth0_rule.go index d0bfd9a3b..92fae1c64 100644 --- a/auth0/resource_auth0_rule.go +++ b/internal/provider/resource_auth0_rule.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_rule_config.go b/internal/provider/resource_auth0_rule_config.go similarity index 99% rename from auth0/resource_auth0_rule_config.go rename to internal/provider/resource_auth0_rule_config.go index 861d9f3b0..63ecaecda 100644 --- a/auth0/resource_auth0_rule_config.go +++ b/internal/provider/resource_auth0_rule_config.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_rule_config_test.go b/internal/provider/resource_auth0_rule_config_test.go similarity index 96% rename from auth0/resource_auth0_rule_config_test.go rename to internal/provider/resource_auth0_rule_config_test.go index 4fc943140..8902267a1 100644 --- a/auth0/resource_auth0_rule_config_test.go +++ b/internal/provider/resource_auth0_rule_config_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { diff --git a/auth0/resource_auth0_rule_test.go b/internal/provider/resource_auth0_rule_test.go similarity index 95% rename from auth0/resource_auth0_rule_test.go rename to internal/provider/resource_auth0_rule_test.go index f37c0e743..ee0a0054c 100644 --- a/auth0/resource_auth0_rule_test.go +++ b/internal/provider/resource_auth0_rule_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func TestAccRule(t *testing.T) { diff --git a/auth0/resource_auth0_tenant.go b/internal/provider/resource_auth0_tenant.go similarity index 99% rename from auth0/resource_auth0_tenant.go rename to internal/provider/resource_auth0_tenant.go index 2ce5e8c22..035652c3a 100644 --- a/auth0/resource_auth0_tenant.go +++ b/internal/provider/resource_auth0_tenant.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - internalValidation "github.com/auth0/terraform-provider-auth0/auth0/internal/validation" + internalValidation "github.com/auth0/terraform-provider-auth0/internal/validation" ) func newTenant() *schema.Resource { diff --git a/auth0/resource_auth0_tenant_test.go b/internal/provider/resource_auth0_tenant_test.go similarity index 99% rename from auth0/resource_auth0_tenant_test.go rename to internal/provider/resource_auth0_tenant_test.go index 2c19b0518..813644520 100644 --- a/auth0/resource_auth0_tenant_test.go +++ b/internal/provider/resource_auth0_tenant_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "os" diff --git a/auth0/resource_auth0_trigger_binding.go b/internal/provider/resource_auth0_trigger_binding.go similarity index 99% rename from auth0/resource_auth0_trigger_binding.go rename to internal/provider/resource_auth0_trigger_binding.go index 37e8ebc7a..02ba29879 100644 --- a/auth0/resource_auth0_trigger_binding.go +++ b/internal/provider/resource_auth0_trigger_binding.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_trigger_binding_test.go b/internal/provider/resource_auth0_trigger_binding_test.go similarity index 97% rename from auth0/resource_auth0_trigger_binding_test.go rename to internal/provider/resource_auth0_trigger_binding_test.go index ab26aa364..674787d99 100644 --- a/auth0/resource_auth0_trigger_binding_test.go +++ b/internal/provider/resource_auth0_trigger_binding_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func TestAccTriggerBinding(t *testing.T) { diff --git a/auth0/resource_auth0_user.go b/internal/provider/resource_auth0_user.go similarity index 99% rename from auth0/resource_auth0_user.go rename to internal/provider/resource_auth0_user.go index 6b60dfd96..80cce0d52 100644 --- a/auth0/resource_auth0_user.go +++ b/internal/provider/resource_auth0_user.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "context" diff --git a/auth0/resource_auth0_user_test.go b/internal/provider/resource_auth0_user_test.go similarity index 99% rename from auth0/resource_auth0_user_test.go rename to internal/provider/resource_auth0_user_test.go index 575389000..f441c6b75 100644 --- a/auth0/resource_auth0_user_test.go +++ b/internal/provider/resource_auth0_user_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/auth0/terraform-provider-auth0/auth0/internal/template" + "github.com/auth0/terraform-provider-auth0/internal/template" ) func init() { diff --git a/auth0/resource_data.go b/internal/provider/resource_data_helpers.go similarity index 99% rename from auth0/resource_data.go rename to internal/provider/resource_data_helpers.go index 9434cb0c7..dae888ea3 100644 --- a/auth0/resource_data.go +++ b/internal/provider/resource_data_helpers.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "reflect" diff --git a/auth0/resource_data_test.go b/internal/provider/resource_data_helpers_test.go similarity index 98% rename from auth0/resource_data_test.go rename to internal/provider/resource_data_helpers_test.go index 20ffa23eb..6608ca808 100644 --- a/auth0/resource_data_test.go +++ b/internal/provider/resource_data_helpers_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/structure_auth0_connection.go b/internal/provider/structure_auth0_connection.go similarity index 99% rename from auth0/structure_auth0_connection.go rename to internal/provider/structure_auth0_connection.go index 464b2780b..aba811aa4 100644 --- a/auth0/structure_auth0_connection.go +++ b/internal/provider/structure_auth0_connection.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "fmt" diff --git a/auth0/structure_auth0_connection_test.go b/internal/provider/structure_auth0_connection_test.go similarity index 98% rename from auth0/structure_auth0_connection_test.go rename to internal/provider/structure_auth0_connection_test.go index 160fe7373..488d71a0e 100644 --- a/auth0/structure_auth0_connection_test.go +++ b/internal/provider/structure_auth0_connection_test.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "testing" diff --git a/auth0/structure_auth0_guardian.go b/internal/provider/structure_auth0_guardian.go similarity index 99% rename from auth0/structure_auth0_guardian.go rename to internal/provider/structure_auth0_guardian.go index 694a6d81e..176a95c59 100644 --- a/auth0/structure_auth0_guardian.go +++ b/internal/provider/structure_auth0_guardian.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "github.com/auth0/go-auth0/management" diff --git a/auth0/structure_auth0_tenant.go b/internal/provider/structure_auth0_tenant.go similarity index 99% rename from auth0/structure_auth0_tenant.go rename to internal/provider/structure_auth0_tenant.go index f29058cd3..5db465334 100644 --- a/auth0/structure_auth0_tenant.go +++ b/internal/provider/structure_auth0_tenant.go @@ -1,4 +1,4 @@ -package auth0 +package provider import ( "github.com/auth0/go-auth0/management" diff --git a/auth0/internal/template/template.go b/internal/template/template.go similarity index 100% rename from auth0/internal/template/template.go rename to internal/template/template.go diff --git a/auth0/internal/template/template_test.go b/internal/template/template_test.go similarity index 100% rename from auth0/internal/template/template_test.go rename to internal/template/template_test.go diff --git a/auth0/internal/validation/validation.go b/internal/validation/validation.go similarity index 100% rename from auth0/internal/validation/validation.go rename to internal/validation/validation.go diff --git a/auth0/internal/validation/validation_test.go b/internal/validation/validation_test.go similarity index 100% rename from auth0/internal/validation/validation_test.go rename to internal/validation/validation_test.go diff --git a/main.go b/main.go index 43edade97..2552c0147 100644 --- a/main.go +++ b/main.go @@ -4,13 +4,13 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" - "github.com/auth0/terraform-provider-auth0/auth0" + "github.com/auth0/terraform-provider-auth0/internal/provider" ) func main() { plugin.Serve(&plugin.ServeOpts{ ProviderFunc: func() *schema.Provider { - return auth0.Provider() + return provider.New() }, }) } diff --git a/scripts/gendocs.go b/scripts/gendocs.go index d4eac6b14..3966f0353 100644 --- a/scripts/gendocs.go +++ b/scripts/gendocs.go @@ -12,8 +12,9 @@ import ( "strings" "text/template" - "github.com/auth0/terraform-provider-auth0/auth0" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/provider" ) var args = struct { @@ -31,7 +32,7 @@ func init() { func main() { buf := bytes.NewBuffer([]byte{}) - p := auth0.Provider() + p := provider.New() r := &Resource{ ProviderKey: args.provider, ProviderName: args.providerName, diff --git a/auth0/testdata/recordings/TestAccAction.yaml b/test/data/recordings/TestAccAction.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccAction.yaml rename to test/data/recordings/TestAccAction.yaml diff --git a/auth0/testdata/recordings/TestAccAction_FailedBuild.yaml b/test/data/recordings/TestAccAction_FailedBuild.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccAction_FailedBuild.yaml rename to test/data/recordings/TestAccAction_FailedBuild.yaml diff --git a/auth0/testdata/recordings/TestAccAttackProtectionBreachedPasswordDetection.yaml b/test/data/recordings/TestAccAttackProtectionBreachedPasswordDetection.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccAttackProtectionBreachedPasswordDetection.yaml rename to test/data/recordings/TestAccAttackProtectionBreachedPasswordDetection.yaml diff --git a/auth0/testdata/recordings/TestAccAttackProtectionBruteForceProtection.yaml b/test/data/recordings/TestAccAttackProtectionBruteForceProtection.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccAttackProtectionBruteForceProtection.yaml rename to test/data/recordings/TestAccAttackProtectionBruteForceProtection.yaml diff --git a/auth0/testdata/recordings/TestAccAttackProtectionSuspiciousIPThrottling.yaml b/test/data/recordings/TestAccAttackProtectionSuspiciousIPThrottling.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccAttackProtectionSuspiciousIPThrottling.yaml rename to test/data/recordings/TestAccAttackProtectionSuspiciousIPThrottling.yaml diff --git a/auth0/testdata/recordings/TestAccBranding.yaml b/test/data/recordings/TestAccBranding.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccBranding.yaml rename to test/data/recordings/TestAccBranding.yaml diff --git a/auth0/testdata/recordings/TestAccClient.yaml b/test/data/recordings/TestAccClient.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccClient.yaml rename to test/data/recordings/TestAccClient.yaml diff --git a/auth0/testdata/recordings/TestAccClientGrant.yaml b/test/data/recordings/TestAccClientGrant.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccClientGrant.yaml rename to test/data/recordings/TestAccClientGrant.yaml diff --git a/auth0/testdata/recordings/TestAccClientJwtScopes.yaml b/test/data/recordings/TestAccClientJwtScopes.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccClientJwtScopes.yaml rename to test/data/recordings/TestAccClientJwtScopes.yaml diff --git a/auth0/testdata/recordings/TestAccClientMobile.yaml b/test/data/recordings/TestAccClientMobile.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccClientMobile.yaml rename to test/data/recordings/TestAccClientMobile.yaml diff --git a/auth0/testdata/recordings/TestAccClientRefreshTokenApplied.yaml b/test/data/recordings/TestAccClientRefreshTokenApplied.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccClientRefreshTokenApplied.yaml rename to test/data/recordings/TestAccClientRefreshTokenApplied.yaml diff --git a/auth0/testdata/recordings/TestAccClientRotateSecret.yaml b/test/data/recordings/TestAccClientRotateSecret.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccClientRotateSecret.yaml rename to test/data/recordings/TestAccClientRotateSecret.yaml diff --git a/auth0/testdata/recordings/TestAccClientSSOIntegration.yaml b/test/data/recordings/TestAccClientSSOIntegration.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccClientSSOIntegration.yaml rename to test/data/recordings/TestAccClientSSOIntegration.yaml diff --git a/auth0/testdata/recordings/TestAccClientZeroValueCheck.yaml b/test/data/recordings/TestAccClientZeroValueCheck.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccClientZeroValueCheck.yaml rename to test/data/recordings/TestAccClientZeroValueCheck.yaml diff --git a/auth0/testdata/recordings/TestAccConnection.yaml b/test/data/recordings/TestAccConnection.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnection.yaml rename to test/data/recordings/TestAccConnection.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionAD.yaml b/test/data/recordings/TestAccConnectionAD.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionAD.yaml rename to test/data/recordings/TestAccConnectionAD.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionApple.yaml b/test/data/recordings/TestAccConnectionApple.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionApple.yaml rename to test/data/recordings/TestAccConnectionApple.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionAzureAD.yaml b/test/data/recordings/TestAccConnectionAzureAD.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionAzureAD.yaml rename to test/data/recordings/TestAccConnectionAzureAD.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionConfiguration.yaml b/test/data/recordings/TestAccConnectionConfiguration.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionConfiguration.yaml rename to test/data/recordings/TestAccConnectionConfiguration.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionCustomSMS.yaml b/test/data/recordings/TestAccConnectionCustomSMS.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionCustomSMS.yaml rename to test/data/recordings/TestAccConnectionCustomSMS.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionEmail.yaml b/test/data/recordings/TestAccConnectionEmail.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionEmail.yaml rename to test/data/recordings/TestAccConnectionEmail.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionFacebook.yaml b/test/data/recordings/TestAccConnectionFacebook.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionFacebook.yaml rename to test/data/recordings/TestAccConnectionFacebook.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionGitHub.yaml b/test/data/recordings/TestAccConnectionGitHub.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionGitHub.yaml rename to test/data/recordings/TestAccConnectionGitHub.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionGoogleApps.yaml b/test/data/recordings/TestAccConnectionGoogleApps.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionGoogleApps.yaml rename to test/data/recordings/TestAccConnectionGoogleApps.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionGoogleOAuth2.yaml b/test/data/recordings/TestAccConnectionGoogleOAuth2.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionGoogleOAuth2.yaml rename to test/data/recordings/TestAccConnectionGoogleOAuth2.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionLinkedin.yaml b/test/data/recordings/TestAccConnectionLinkedin.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionLinkedin.yaml rename to test/data/recordings/TestAccConnectionLinkedin.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionOAuth2.yaml b/test/data/recordings/TestAccConnectionOAuth2.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionOAuth2.yaml rename to test/data/recordings/TestAccConnectionOAuth2.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionOIDC.yaml b/test/data/recordings/TestAccConnectionOIDC.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionOIDC.yaml rename to test/data/recordings/TestAccConnectionOIDC.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionSAML.yaml b/test/data/recordings/TestAccConnectionSAML.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionSAML.yaml rename to test/data/recordings/TestAccConnectionSAML.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionSMS.yaml b/test/data/recordings/TestAccConnectionSMS.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionSMS.yaml rename to test/data/recordings/TestAccConnectionSMS.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionSalesforce.yaml b/test/data/recordings/TestAccConnectionSalesforce.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionSalesforce.yaml rename to test/data/recordings/TestAccConnectionSalesforce.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionTwitter.yaml b/test/data/recordings/TestAccConnectionTwitter.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionTwitter.yaml rename to test/data/recordings/TestAccConnectionTwitter.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionWindowslive.yaml b/test/data/recordings/TestAccConnectionWindowslive.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionWindowslive.yaml rename to test/data/recordings/TestAccConnectionWindowslive.yaml diff --git a/auth0/testdata/recordings/TestAccConnectionWithEnabledClients.yaml b/test/data/recordings/TestAccConnectionWithEnabledClients.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccConnectionWithEnabledClients.yaml rename to test/data/recordings/TestAccConnectionWithEnabledClients.yaml diff --git a/auth0/testdata/recordings/TestAccCustomDomain.yaml b/test/data/recordings/TestAccCustomDomain.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccCustomDomain.yaml rename to test/data/recordings/TestAccCustomDomain.yaml diff --git a/auth0/testdata/recordings/TestAccCustomDomainVerificationWithAuth0ManagedCerts.yaml b/test/data/recordings/TestAccCustomDomainVerificationWithAuth0ManagedCerts.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccCustomDomainVerificationWithAuth0ManagedCerts.yaml rename to test/data/recordings/TestAccCustomDomainVerificationWithAuth0ManagedCerts.yaml diff --git a/auth0/testdata/recordings/TestAccCustomDomainVerificationWithSelfManagedCerts.yaml b/test/data/recordings/TestAccCustomDomainVerificationWithSelfManagedCerts.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccCustomDomainVerificationWithSelfManagedCerts.yaml rename to test/data/recordings/TestAccCustomDomainVerificationWithSelfManagedCerts.yaml diff --git a/auth0/testdata/recordings/TestAccDataClientById.yaml b/test/data/recordings/TestAccDataClientById.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccDataClientById.yaml rename to test/data/recordings/TestAccDataClientById.yaml diff --git a/auth0/testdata/recordings/TestAccDataClientByName.yaml b/test/data/recordings/TestAccDataClientByName.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccDataClientByName.yaml rename to test/data/recordings/TestAccDataClientByName.yaml diff --git a/auth0/testdata/recordings/TestAccDataGlobalClient.yaml b/test/data/recordings/TestAccDataGlobalClient.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccDataGlobalClient.yaml rename to test/data/recordings/TestAccDataGlobalClient.yaml diff --git a/auth0/testdata/recordings/TestAccDataTenant.yaml b/test/data/recordings/TestAccDataTenant.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccDataTenant.yaml rename to test/data/recordings/TestAccDataTenant.yaml diff --git a/auth0/testdata/recordings/TestAccEmail.yaml b/test/data/recordings/TestAccEmail.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccEmail.yaml rename to test/data/recordings/TestAccEmail.yaml diff --git a/auth0/testdata/recordings/TestAccEmailTemplate.yaml b/test/data/recordings/TestAccEmailTemplate.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccEmailTemplate.yaml rename to test/data/recordings/TestAccEmailTemplate.yaml diff --git a/auth0/testdata/recordings/TestAccGlobalClient.yaml b/test/data/recordings/TestAccGlobalClient.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccGlobalClient.yaml rename to test/data/recordings/TestAccGlobalClient.yaml diff --git a/auth0/testdata/recordings/TestAccGuardian.yaml b/test/data/recordings/TestAccGuardian.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccGuardian.yaml rename to test/data/recordings/TestAccGuardian.yaml diff --git a/auth0/testdata/recordings/TestAccGuardianDUO.yaml b/test/data/recordings/TestAccGuardianDUO.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccGuardianDUO.yaml rename to test/data/recordings/TestAccGuardianDUO.yaml diff --git a/auth0/testdata/recordings/TestAccGuardianPhone.yaml b/test/data/recordings/TestAccGuardianPhone.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccGuardianPhone.yaml rename to test/data/recordings/TestAccGuardianPhone.yaml diff --git a/auth0/testdata/recordings/TestAccGuardianPush.yaml b/test/data/recordings/TestAccGuardianPush.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccGuardianPush.yaml rename to test/data/recordings/TestAccGuardianPush.yaml diff --git a/auth0/testdata/recordings/TestAccGuardianWebAuthnPlatform.yaml b/test/data/recordings/TestAccGuardianWebAuthnPlatform.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccGuardianWebAuthnPlatform.yaml rename to test/data/recordings/TestAccGuardianWebAuthnPlatform.yaml diff --git a/auth0/testdata/recordings/TestAccGuardianWebAuthnRoaming.yaml b/test/data/recordings/TestAccGuardianWebAuthnRoaming.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccGuardianWebAuthnRoaming.yaml rename to test/data/recordings/TestAccGuardianWebAuthnRoaming.yaml diff --git a/auth0/testdata/recordings/TestAccHook.yaml b/test/data/recordings/TestAccHook.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccHook.yaml rename to test/data/recordings/TestAccHook.yaml diff --git a/auth0/testdata/recordings/TestAccHookSecrets.yaml b/test/data/recordings/TestAccHookSecrets.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccHookSecrets.yaml rename to test/data/recordings/TestAccHookSecrets.yaml diff --git a/auth0/testdata/recordings/TestAccLogStreamDatadog.yaml b/test/data/recordings/TestAccLogStreamDatadog.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccLogStreamDatadog.yaml rename to test/data/recordings/TestAccLogStreamDatadog.yaml diff --git a/auth0/testdata/recordings/TestAccLogStreamEventBridge.yaml b/test/data/recordings/TestAccLogStreamEventBridge.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccLogStreamEventBridge.yaml rename to test/data/recordings/TestAccLogStreamEventBridge.yaml diff --git a/auth0/testdata/recordings/TestAccLogStreamHTTP.yaml b/test/data/recordings/TestAccLogStreamHTTP.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccLogStreamHTTP.yaml rename to test/data/recordings/TestAccLogStreamHTTP.yaml diff --git a/auth0/testdata/recordings/TestAccLogStreamSplunk.yaml b/test/data/recordings/TestAccLogStreamSplunk.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccLogStreamSplunk.yaml rename to test/data/recordings/TestAccLogStreamSplunk.yaml diff --git a/auth0/testdata/recordings/TestAccLogStreamSumo.yaml b/test/data/recordings/TestAccLogStreamSumo.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccLogStreamSumo.yaml rename to test/data/recordings/TestAccLogStreamSumo.yaml diff --git a/auth0/testdata/recordings/TestAccOrganization.yaml b/test/data/recordings/TestAccOrganization.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccOrganization.yaml rename to test/data/recordings/TestAccOrganization.yaml diff --git a/auth0/testdata/recordings/TestAccOrganizationConnection.yaml b/test/data/recordings/TestAccOrganizationConnection.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccOrganizationConnection.yaml rename to test/data/recordings/TestAccOrganizationConnection.yaml diff --git a/auth0/testdata/recordings/TestAccOrganizationMember.yaml b/test/data/recordings/TestAccOrganizationMember.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccOrganizationMember.yaml rename to test/data/recordings/TestAccOrganizationMember.yaml diff --git a/auth0/testdata/recordings/TestAccPrompt.yaml b/test/data/recordings/TestAccPrompt.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccPrompt.yaml rename to test/data/recordings/TestAccPrompt.yaml diff --git a/auth0/testdata/recordings/TestAccPromptCustomText.yaml b/test/data/recordings/TestAccPromptCustomText.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccPromptCustomText.yaml rename to test/data/recordings/TestAccPromptCustomText.yaml diff --git a/auth0/testdata/recordings/TestAccResourceServer.yaml b/test/data/recordings/TestAccResourceServer.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccResourceServer.yaml rename to test/data/recordings/TestAccResourceServer.yaml diff --git a/auth0/testdata/recordings/TestAccRole.yaml b/test/data/recordings/TestAccRole.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccRole.yaml rename to test/data/recordings/TestAccRole.yaml diff --git a/auth0/testdata/recordings/TestAccRolePermissions.yaml b/test/data/recordings/TestAccRolePermissions.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccRolePermissions.yaml rename to test/data/recordings/TestAccRolePermissions.yaml diff --git a/auth0/testdata/recordings/TestAccRule.yaml b/test/data/recordings/TestAccRule.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccRule.yaml rename to test/data/recordings/TestAccRule.yaml diff --git a/auth0/testdata/recordings/TestAccRuleConfig.yaml b/test/data/recordings/TestAccRuleConfig.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccRuleConfig.yaml rename to test/data/recordings/TestAccRuleConfig.yaml diff --git a/auth0/testdata/recordings/TestAccTenant.yaml b/test/data/recordings/TestAccTenant.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccTenant.yaml rename to test/data/recordings/TestAccTenant.yaml diff --git a/auth0/testdata/recordings/TestAccTenantDefaults.yaml b/test/data/recordings/TestAccTenantDefaults.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccTenantDefaults.yaml rename to test/data/recordings/TestAccTenantDefaults.yaml diff --git a/auth0/testdata/recordings/TestAccTriggerBinding.yaml b/test/data/recordings/TestAccTriggerBinding.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccTriggerBinding.yaml rename to test/data/recordings/TestAccTriggerBinding.yaml diff --git a/auth0/testdata/recordings/TestAccUser.yaml b/test/data/recordings/TestAccUser.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccUser.yaml rename to test/data/recordings/TestAccUser.yaml diff --git a/auth0/testdata/recordings/TestAccUserChangeUsername.yaml b/test/data/recordings/TestAccUserChangeUsername.yaml similarity index 100% rename from auth0/testdata/recordings/TestAccUserChangeUsername.yaml rename to test/data/recordings/TestAccUserChangeUsername.yaml diff --git a/auth0/testdata/saml_metadata.xml b/test/data/saml_metadata.xml similarity index 100% rename from auth0/testdata/saml_metadata.xml rename to test/data/saml_metadata.xml