diff --git a/test/e2e/e2e.test.ts b/test/e2e/e2e.test.ts index 6739acef7..88e282505 100644 --- a/test/e2e/e2e.test.ts +++ b/test/e2e/e2e.test.ts @@ -245,3 +245,116 @@ describe('#end-to-end dump and deploy cycle', function () { recordingDone(); }); }); + +describe('#end-to-end keyword replacement', function () { + it('should deploy yaml config with keyword replacements', async function () { + const { recordingDone } = await setupRecording(this.test?.title); + + //Resetting tenant to baseline state + await deploy({ + input_file: `${__dirname}/testdata/keyword-replacements/yaml/_reset.yaml`, + config: { + AUTH0_DOMAIN, + AUTH0_CLIENT_ID, + AUTH0_CLIENT_SECRET, + AUTH0_ACCESS_TOKEN, + AUTH0_INCLUDED_ONLY: ['tenant'], + }, + }); + + const keywordMapping = { + COMPANY_NAME: 'Travel0', + LANGUAGES: ['en', 'es'], + }; + + await deploy({ + input_file: `${__dirname}/testdata/keyword-replacements/yaml/tenant.yaml`, + config: { + AUTH0_DOMAIN, + AUTH0_CLIENT_ID, + AUTH0_CLIENT_SECRET, + AUTH0_ACCESS_TOKEN, + AUTH0_INCLUDED_ONLY: ['tenant'], + AUTH0_KEYWORD_REPLACE_MAPPINGS: keywordMapping, + }, + }); + + const workDirectory = testNameToWorkingDirectory(this.test?.title); + await dump({ + output_folder: workDirectory, + format: 'yaml', + config: { + AUTH0_DOMAIN, + AUTH0_CLIENT_ID, + AUTH0_CLIENT_SECRET, + AUTH0_ACCESS_TOKEN, + AUTH0_INCLUDED_ONLY: ['tenant'], + }, + }); + + const files = getFiles(workDirectory, ['.yaml']); + expect(files).to.have.length(1); + expect(files[0]).to.equal(path.join(workDirectory, 'tenant.yaml')); + + const yaml = yamlLoad(fs.readFileSync(files[0])); + expect(yaml.tenant.friendly_name).to.equal(`This is the ${keywordMapping.COMPANY_NAME} Tenant`); + expect(yaml.tenant.enabled_locales).to.deep.equal(keywordMapping.LANGUAGES); + + recordingDone(); + }); + + it('should deploy directory (JSON) config with keyword replacements', async function () { + const { recordingDone } = await setupRecording(this.test?.title); + + //Resetting tenant to baseline state + await deploy({ + input_file: `${__dirname}/testdata/keyword-replacements/directory`, + config: { + AUTH0_DOMAIN, + AUTH0_CLIENT_ID, + AUTH0_CLIENT_SECRET, + AUTH0_ACCESS_TOKEN, + AUTH0_INCLUDED_ONLY: ['tenant'], + }, + }); + + const keywordMapping = { + COMPANY_NAME: 'Travel0', + //LANGUAGES: ['en', 'es'], //TODO: support array replacement for directory format + }; + + await deploy({ + input_file: `${__dirname}/testdata/keyword-replacements/directory`, + config: { + AUTH0_DOMAIN, + AUTH0_CLIENT_ID, + AUTH0_CLIENT_SECRET, + AUTH0_ACCESS_TOKEN, + AUTH0_INCLUDED_ONLY: ['tenant'], + AUTH0_KEYWORD_REPLACE_MAPPINGS: keywordMapping, + }, + }); + + const workDirectory = testNameToWorkingDirectory(this.test?.title); + await dump({ + output_folder: workDirectory, + format: 'directory', + config: { + AUTH0_DOMAIN, + AUTH0_CLIENT_ID, + AUTH0_CLIENT_SECRET, + AUTH0_ACCESS_TOKEN, + AUTH0_INCLUDED_ONLY: ['tenant'], + }, + }); + + const files = getFiles(workDirectory, ['.json']); + expect(files).to.have.length(1); + expect(files[0]).to.equal(path.join(workDirectory, 'tenant.json')); + + const json = JSON.parse(fs.readFileSync(files[0]).toString()); + expect(json.friendly_name).to.equal(`This is the ${keywordMapping.COMPANY_NAME} Tenant`); + + recordingDone(); + }); +}); diff --git a/test/e2e/recordings/should-deploy-directory-(JSON)-config-with-keyword-replacements.json b/test/e2e/recordings/should-deploy-directory-(JSON)-config-with-keyword-replacements.json new file mode 100644 index 000000000..e7845c292 --- /dev/null +++ b/test/e2e/recordings/should-deploy-directory-(JSON)-config-with-keyword-replacements.json @@ -0,0 +1,341 @@ +[ + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "GET", + "path": "/api/v2/tenants/settings", + "body": "", + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "This is the Travel0 Tenant", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": {}, + "session_cookie": { + "mode": "non-persistent" + }, + "sandbox_versions_available": [ + "16", + "12" + ] + }, + "rawHeaders": [], + "responseIsBinary": false + }, + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "PATCH", + "path": "/api/v2/tenants/settings", + "body": { + "enabled_locales": [ + "en" + ], + "friendly_name": "This is the ##COMPANY_NAME## Tenant", + "flags": { + "new_universal_login_experience_enabled": true + }, + "universal_login": {} + }, + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "cannot_change_enforce_client_authentication_on_passwordless_start": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "enforce_client_authentication_on_passwordless_start": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "This is the ##COMPANY_NAME## Tenant", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": {}, + "session_cookie": { + "mode": "non-persistent" + } + }, + "rawHeaders": [], + "responseIsBinary": false + }, + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "GET", + "path": "/api/v2/tenants/settings", + "body": "", + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "This is the ##COMPANY_NAME## Tenant", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": {}, + "session_cookie": { + "mode": "non-persistent" + }, + "sandbox_versions_available": [ + "16", + "12" + ] + }, + "rawHeaders": [], + "responseIsBinary": false + }, + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "PATCH", + "path": "/api/v2/tenants/settings", + "body": { + "enabled_locales": [ + "en" + ], + "friendly_name": "This is the Travel0 Tenant", + "flags": { + "new_universal_login_experience_enabled": true + }, + "universal_login": {} + }, + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "cannot_change_enforce_client_authentication_on_passwordless_start": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "enforce_client_authentication_on_passwordless_start": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "This is the Travel0 Tenant", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": {}, + "session_cookie": { + "mode": "non-persistent" + } + }, + "rawHeaders": [], + "responseIsBinary": false + }, + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "GET", + "path": "/api/v2/tenants/settings", + "body": "", + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "This is the Travel0 Tenant", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": {}, + "session_cookie": { + "mode": "non-persistent" + }, + "sandbox_versions_available": [ + "16", + "12" + ] + }, + "rawHeaders": [], + "responseIsBinary": false + } +] diff --git a/test/e2e/recordings/should-deploy-yaml-config-with-keyword-replacements.json b/test/e2e/recordings/should-deploy-yaml-config-with-keyword-replacements.json new file mode 100644 index 000000000..5f27c9e6d --- /dev/null +++ b/test/e2e/recordings/should-deploy-yaml-config-with-keyword-replacements.json @@ -0,0 +1,368 @@ +[ + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "GET", + "path": "/api/v2/tenants/settings", + "body": "", + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en", + "es" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "This is the Travel0 Tenant", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": { + "colors": { + "primary": "#F8F8F2", + "page_background": "#222221" + } + }, + "session_cookie": { + "mode": "non-persistent" + }, + "sandbox_versions_available": [ + "16", + "12" + ] + }, + "rawHeaders": [], + "responseIsBinary": false + }, + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "PATCH", + "path": "/api/v2/tenants/settings", + "body": { + "friendly_name": "Tenant friendly name", + "enabled_locales": [ + "en" + ], + "flags": { + "new_universal_login_experience_enabled": true + } + }, + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "cannot_change_enforce_client_authentication_on_passwordless_start": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "enforce_client_authentication_on_passwordless_start": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "Tenant friendly name", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": { + "colors": { + "primary": "#F8F8F2", + "page_background": "#222221" + } + }, + "session_cookie": { + "mode": "non-persistent" + } + }, + "rawHeaders": [], + "responseIsBinary": false + }, + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "GET", + "path": "/api/v2/tenants/settings", + "body": "", + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "Tenant friendly name", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": { + "colors": { + "primary": "#F8F8F2", + "page_background": "#222221" + } + }, + "session_cookie": { + "mode": "non-persistent" + }, + "sandbox_versions_available": [ + "16", + "12" + ] + }, + "rawHeaders": [], + "responseIsBinary": false + }, + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "PATCH", + "path": "/api/v2/tenants/settings", + "body": { + "friendly_name": "This is the Travel0 Tenant", + "enabled_locales": [ + "en", + "es" + ], + "flags": { + "new_universal_login_experience_enabled": true + } + }, + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en", + "es" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "cannot_change_enforce_client_authentication_on_passwordless_start": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "enforce_client_authentication_on_passwordless_start": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "This is the Travel0 Tenant", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": { + "colors": { + "primary": "#F8F8F2", + "page_background": "#222221" + } + }, + "session_cookie": { + "mode": "non-persistent" + } + }, + "rawHeaders": [], + "responseIsBinary": false + }, + { + "scope": "https://deploy-cli-dev.eu.auth0.com:443", + "method": "GET", + "path": "/api/v2/tenants/settings", + "body": "", + "status": 200, + "response": { + "allowed_logout_urls": [ + "https://mycompany.org/logoutCallback" + ], + "change_password": { + "enabled": true, + "html": "Change Password\n" + }, + "enabled_locales": [ + "en", + "es" + ], + "error_page": { + "html": "Error Page\n", + "show_log_link": false, + "url": "https://mycompany.org/error" + }, + "flags": { + "allow_changing_enable_sso": false, + "allow_legacy_delegation_grant_types": true, + "allow_legacy_ro_grant_types": true, + "change_pwd_flow_v1": false, + "disable_impersonation": true, + "enable_apis_section": false, + "enable_client_connections": false, + "enable_custom_domain_in_emails": false, + "enable_dynamic_client_registration": false, + "enable_legacy_logs_search_v2": false, + "enable_public_signup_user_exists_error": true, + "enable_sso": true, + "new_universal_login_experience_enabled": true, + "universal_login": true, + "use_scope_descriptions_for_consent": false, + "revoke_refresh_token_grant": false, + "disable_clickjack_protection_headers": false, + "enable_pipeline2": false + }, + "friendly_name": "This is the Travel0 Tenant", + "guardian_mfa_page": { + "enabled": true, + "html": "MFA\n" + }, + "idle_session_lifetime": 1, + "picture_url": "https://upload.wikimedia.org/wikipedia/commons/0/0d/Grandmas_marathon_finishers.png", + "sandbox_version": "12", + "session_lifetime": 3.0166666666666666, + "support_email": "support@mycompany.org", + "support_url": "https://mycompany.org/support", + "universal_login": { + "colors": { + "primary": "#F8F8F2", + "page_background": "#222221" + } + }, + "session_cookie": { + "mode": "non-persistent" + }, + "sandbox_versions_available": [ + "16", + "12" + ] + }, + "rawHeaders": [], + "responseIsBinary": false + } +] diff --git a/test/e2e/testdata/keyword-replacements/directory/_reset.json b/test/e2e/testdata/keyword-replacements/directory/_reset.json new file mode 100644 index 000000000..753eeb120 --- /dev/null +++ b/test/e2e/testdata/keyword-replacements/directory/_reset.json @@ -0,0 +1,8 @@ +{ + "enabled_locales": ["en"], + "friendly_name": "Tenant friendly name", + "flags": { + "new_universal_login_experience_enabled": true + }, + "universal_login": {} + } \ No newline at end of file diff --git a/test/e2e/testdata/keyword-replacements/directory/tenant.json b/test/e2e/testdata/keyword-replacements/directory/tenant.json new file mode 100644 index 000000000..ec5489910 --- /dev/null +++ b/test/e2e/testdata/keyword-replacements/directory/tenant.json @@ -0,0 +1,8 @@ +{ + "enabled_locales": ["en"], + "friendly_name": "This is the ##COMPANY_NAME## Tenant", + "flags": { + "new_universal_login_experience_enabled": true + }, + "universal_login": {} + } \ No newline at end of file diff --git a/test/e2e/testdata/keyword-replacements/yaml/_reset.yaml b/test/e2e/testdata/keyword-replacements/yaml/_reset.yaml new file mode 100644 index 000000000..e0401ce60 --- /dev/null +++ b/test/e2e/testdata/keyword-replacements/yaml/_reset.yaml @@ -0,0 +1,6 @@ +#This configuration is to reset the tenant to a baseline state +tenant: + friendly_name: Tenant friendly name + enabled_locales: ['en'] + flags: + new_universal_login_experience_enabled: true diff --git a/test/e2e/testdata/keyword-replacements/yaml/tenant.yaml b/test/e2e/testdata/keyword-replacements/yaml/tenant.yaml new file mode 100644 index 000000000..1408628ae --- /dev/null +++ b/test/e2e/testdata/keyword-replacements/yaml/tenant.yaml @@ -0,0 +1,5 @@ +tenant: + friendly_name: This is the ##COMPANY_NAME## Tenant + enabled_locales: @@LANGUAGES@@ + flags: + new_universal_login_experience_enabled: true