-
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.
Display JSON on list commands properly [CLI-191] (#327)
* Display JSON on list commands properly * Fix rules * Fix actions * Remove unused logic
- Loading branch information
Showing
18 changed files
with
161 additions
and
262 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -403,8 +403,8 @@ tests: | |
exit-code: 0 | ||
stdout: | ||
json: | ||
Email: "[email protected]" | ||
Connection: "Username-Password-Authentication" | ||
email: "[email protected]" | ||
connection: "Username-Password-Authentication" | ||
|
||
users create and check output: | ||
command: auth0 users create --name integration-test-user-new2 --connection Username-Password-Authentication --email [email protected] --password testUser12 --no-input | ||
|
@@ -423,8 +423,8 @@ tests: | |
command: auth0 users show $(cat ./integration/identifiers/user-id) --format json | ||
stdout: | ||
json: | ||
Email: "[email protected]" | ||
Connection: "Username-Password-Authentication" | ||
email: "[email protected]" | ||
connection: "Username-Password-Authentication" | ||
exit-code: 0 | ||
|
||
users show: | ||
|
@@ -440,14 +440,14 @@ tests: | |
command: auth0 users update $(cat ./integration/identifiers/user-id) --email [email protected] --format json --no-input | ||
stdout: | ||
json: | ||
Email: [email protected] | ||
email: [email protected] | ||
exit-code: 0 | ||
|
||
users update name: | ||
command: auth0 users update $(cat ./integration/identifiers/user-id) --name integration-test-user-bettername --format json --no-input | ||
stdout: | ||
json: | ||
Email: [email protected] # Name is not being displayed, hence using email | ||
email: [email protected] # Name is not being displayed, hence using email | ||
exit-code: 0 | ||
|
||
# Test 'roles create' | ||
|
@@ -456,8 +456,8 @@ tests: | |
exit-code: 0 | ||
stdout: | ||
json: | ||
Name: integration-test-role-new1 | ||
Description: testRole | ||
name: integration-test-role-new1 | ||
description: testRole | ||
|
||
roles create and check output: | ||
command: auth0 roles create --name integration-test-role-new2 --description testRole2 --no-input | ||
|
@@ -476,8 +476,8 @@ tests: | |
command: auth0 roles show $(cat ./integration/identifiers/role-id) --format json | ||
stdout: | ||
json: | ||
Name: integration-test-role-newRole | ||
Description: integration-test-role | ||
name: integration-test-role-newRole | ||
description: integration-test-role | ||
exit-code: 0 | ||
|
||
roles show: | ||
|
@@ -493,12 +493,12 @@ tests: | |
command: auth0 roles update $(cat ./integration/identifiers/role-id) --name integration-test-role-betterName --format json | ||
stdout: | ||
json: | ||
Name: integration-test-role-betterName | ||
name: integration-test-role-betterName | ||
exit-code: 0 | ||
|
||
roles update description: | ||
command: auth0 roles update $(cat ./integration/identifiers/role-id) --description betterDescription --format json | ||
stdout: | ||
json: | ||
Description: betterDescription | ||
description: betterDescription | ||
exit-code: 0 |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
user=$( auth0 users create -n integration-test-user-better -c Username-Password-Authentication -e [email protected] -p testUser12 --format json --no-input ) | ||
|
||
mkdir -p ./integration/identifiers | ||
echo "$user" | jq -r '.["UserID"]' > ./integration/identifiers/user-id | ||
echo "$user" | jq -r '.["user_id"]' > ./integration/identifiers/user-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
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
Oops, something went wrong.