-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c19640e
commit 0170f56
Showing
4 changed files
with
26 additions
and
9 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 |
---|---|---|
|
@@ -1320,6 +1320,12 @@ await descopeClient.management.user.createTestUser('[email protected]', { | |
userTenants: [{ tenantId: 'tenant-ID1', roleNames: ['role-name1'] }], | ||
}); | ||
|
||
// Search all test users according to various parameters | ||
const searchRes = await descopeClient.management.user.searchTestUsers(['id']); | ||
searchRes.data.forEach((user) => { | ||
// do something | ||
}); | ||
|
||
// Now test user got created, and this user will be available until you delete it, | ||
// you can use any management operation for test user CRUD. | ||
// You can also delete all test users. | ||
|
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 |
---|---|---|
|
@@ -204,7 +204,7 @@ describe('Management User', () => { | |
); | ||
|
||
expect(mockHttpClient.post).toHaveBeenCalledWith( | ||
apiPaths.user.create, | ||
apiPaths.user.createTestUser, | ||
{ | ||
loginId: 'loginId', | ||
email: '[email protected]', | ||
|
@@ -244,7 +244,7 @@ describe('Management User', () => { | |
}); | ||
|
||
expect(mockHttpClient.post).toHaveBeenCalledWith( | ||
apiPaths.user.create, | ||
apiPaths.user.createTestUser, | ||
{ | ||
loginId: 'loginId', | ||
email: '[email protected]', | ||
|
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