diff --git a/test/integration/custom-domains-test-cases.yaml b/test/integration/custom-domains-test-cases.yaml index 42e48e88d..142c74742 100644 --- a/test/integration/custom-domains-test-cases.yaml +++ b/test/integration/custom-domains-test-cases.yaml @@ -18,21 +18,21 @@ tests: exactly: "[]" 003 - create domain with minimal flags: - command: auth0 domains create --domain "custom-domain.com" --no-input + command: auth0 domains create --domain "custom-domains.com" --no-input exit-code: 0 stdout: contains: - "ID cd_" - - "DOMAIN custom-domain.com" + - "DOMAIN custom-domains.com" - "STATUS pending_verification" - "PROVISIONING TYPE auth0_managed_certs" 004 - unsuccessfully create domain with same name: - command: auth0 domains create --domain "custom-domain.com" --no-input + command: auth0 domains create --domain "custom-domains.com" --no-input exit-code: 1 stderr: contains: - - "Failed to create custom domain \"custom-domain.com\": 409 Conflict: The specified custom domain already exists" + - "Failed to create custom domain \"custom-domains.com\": 409 Conflict: The specified custom domain already exists" 005 - show domain: command: auth0 domains show $(./test/integration/scripts/get-custom-domain-id.sh) --no-input @@ -40,7 +40,7 @@ tests: stdout: contains: - "ID cd_" - - "DOMAIN custom-domain.com" + - "DOMAIN custom-domains.com" - "STATUS pending_verification" - "PROVISIONING TYPE auth0_managed_certs" @@ -50,7 +50,7 @@ tests: stdout: contains: - "ID cd_" - - "DOMAIN custom-domain.com" + - "DOMAIN custom-domains.com" - "STATUS pending_verification" - "PROVISIONING TYPE auth0_managed_certs" @@ -60,7 +60,7 @@ tests: stdout: contains: - "ID cd_" - - "DOMAIN custom-domain.com" + - "DOMAIN custom-domains.com" - "STATUS pending_verification" - "PROVISIONING TYPE auth0_managed_certs" - "TLS POLICY recommended" @@ -71,7 +71,7 @@ tests: stdout: contains: - "ID cd_" - - "DOMAIN custom-domain.com" + - "DOMAIN custom-domains.com" - "PROVISIONING TYPE auth0_managed_certs" - "TLS POLICY recommended" @@ -80,12 +80,12 @@ tests: exit-code: 0 010 - create domain with maximal flags: - command: auth0 domains create --domain "custom-domain.com" --verification txt --type self --policy recommended --no-input + command: auth0 domains create --domain "custom-domains.com" --verification txt --type self --policy recommended --no-input exit-code: 0 stdout: contains: - "ID cd_" - - "DOMAIN custom-domain.com" + - "DOMAIN custom-domains.com" - "STATUS pending_verification" - "PROVISIONING TYPE self_managed_certs" - "VERIFICATION METHOD txt" @@ -97,6 +97,6 @@ tests: exit-code: 0 stdout: contains: - - "ID DOMAIN STATUS" + - "ID DOMAIN STATUS" - "cd_" - - "custom-domain.com" + - "custom-domains.com" diff --git a/test/integration/scripts/get-custom-domain-id.sh b/test/integration/scripts/get-custom-domain-id.sh index 438d71763..a1123370d 100755 --- a/test/integration/scripts/get-custom-domain-id.sh +++ b/test/integration/scripts/get-custom-domain-id.sh @@ -1,6 +1,6 @@ #! /bin/bash -testing_domain_name="custom-domain.com" +testing_domain_name="custom-domains.com" domains=$( auth0 domains list --json --no-input ) for domain in $( printf "%s" "$domains" | jq -r '.[] | @base64' ); do @@ -17,4 +17,4 @@ for domain in $( printf "%s" "$domains" | jq -r '.[] | @base64' ); do exit 0 fi exit 1 -done \ No newline at end of file +done