-
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.
Fix users search command to correctly search through result pages
- Loading branch information
Showing
4 changed files
with
56 additions
and
25 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#! /bin/bash | ||
|
||
user=$( auth0 users create -n integration-test-user-better -c Username-Password-Authentication -e [email protected] -p testUser12 --json --no-input ) | ||
user=$( auth0 users create -n integration-test-user-better -c Username-Password-Authentication -e [email protected] -p testUser12 -u cli-test --json --no-input ) | ||
|
||
mkdir -p ./test/integration/identifiers | ||
echo "$user" | jq -r '.["user_id"]' > ./test/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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -399,15 +399,15 @@ tests: | |
|
||
# Test 'users create' | ||
users create and check data: | ||
command: auth0 users create --name integration-test-user-new --connection Username-Password-Authentication --email [email protected] --password testUser12 --json --no-input | ||
command: auth0 users create --name integration-test-user-new --connection Username-Password-Authentication --email [email protected] --password testUser12 --username testuser1 --json --no-input | ||
exit-code: 0 | ||
stdout: | ||
json: | ||
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 | ||
command: auth0 users create --name integration-test-user-new2 --connection Username-Password-Authentication --email [email protected] --password testUser12 --username testuser2 --no-input | ||
exit-code: 0 | ||
stdout: | ||
contains: | ||
|
@@ -435,6 +435,13 @@ tests: | |
- CONNECTION Username-Password-Authentication | ||
exit-code: 0 | ||
|
||
users search: | ||
command: auth0 users search --query user_id:"$(cat ./test/integration/identifiers/user-id)" --number 1 --sort "name:-1" | ||
exit-code: 0 | ||
stdout: | ||
contains: | ||
- [email protected] | ||
|
||
# Test 'users update' | ||
users update email: | ||
command: auth0 users update $(cat ./test/integration/identifiers/user-id) --email [email protected] --json --no-input | ||
|