-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DXCDT-303: Fix orgs update cmd (#583)
- Loading branch information
Showing
4 changed files
with
113 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#! /bin/bash | ||
|
||
org=$( auth0 orgs create -n integration-test-org-better -d "Integration Test Better Organization" --json --no-input ) | ||
|
||
mkdir -p ./test/integration/identifiers | ||
echo "$org" | jq -r '.["id"]' > ./test/integration/identifiers/org-id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -450,7 +450,7 @@ tests: | |
email: [email protected] # Name is not being displayed, hence using email | ||
exit-code: 0 | ||
|
||
# Test 'roles create' | ||
# Test 'roles create' | ||
roles create and check data: | ||
command: auth0 roles create --name integration-test-role-new1 --description testRole --json --no-input | ||
exit-code: 0 | ||
|
@@ -664,3 +664,49 @@ tests: | |
api patch tenant settings with wrong json: | ||
command: auth0 api patch "tenants/settings" --data "{\"idle_session_lifetime:72}" | ||
exit-code: 1 | ||
|
||
create organization and check json output: | ||
command: auth0 orgs create --name integration-test-org-new --display "Integration Test Organization" --json --no-input | ||
exit-code: 0 | ||
stdout: | ||
json: | ||
name: "integration-test-org-new" | ||
display_name: "Integration Test Organization" | ||
|
||
create organization and check table output: | ||
command: auth0 orgs create --name integration-test-org-new2 --display "Integration Test Organization2" --no-input | ||
exit-code: 0 | ||
stdout: | ||
contains: | ||
- NAME integration-test-org-new2 | ||
- DISPLAY NAME Integration Test Organization2 | ||
|
||
create organization to use in other tests: | ||
command: ./test/integration/scripts/get-org-id.sh | ||
exit-code: 0 | ||
|
||
show organization and check json output: | ||
command: auth0 orgs show $(cat ./test/integration/identifiers/org-id) --json | ||
exit-code: 0 | ||
stdout: | ||
json: | ||
name: "integration-test-org-better" | ||
display_name: "Integration Test Better Organization" | ||
|
||
show organization and check table output: | ||
command: auth0 orgs show $(cat ./test/integration/identifiers/org-id) | ||
exit-code: 0 | ||
stdout: | ||
contains: | ||
- NAME integration-test-org-better | ||
- DISPLAY NAME Integration Test Better Organization | ||
|
||
update organization: | ||
command: auth0 orgs update $(cat ./test/integration/identifiers/org-id) -d "Integration Test Updated Organization" -a "#00FFAA" -b "#AA1166" --json --no-input | ||
exit-code: 0 | ||
stdout: | ||
json: | ||
name: "integration-test-org-better" | ||
display_name: "Integration Test Updated Organization" | ||
branding.colors.page_background: "#AA1166" | ||
branding.colors.primary: "#00FFAA" |