This repository has been archived by the owner on Apr 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ability to create test accounts using a file to the testing tr…
…ait (#328)
- Loading branch information
1 parent
a4517b4
commit 51d7290
Showing
6 changed files
with
242 additions
and
53 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Test user accounts | ||
|
||
To create test user accounts when running tests, add a file to the root of your project called testUsers.json | ||
|
||
Add the accounts for each role you will be testing. | ||
|
||
``` | ||
[ | ||
{ | ||
"name": "testapiuser", | ||
"mail": "[email protected]", | ||
"role": "api_user" | ||
}, | ||
{ | ||
"name": "testadmin", | ||
"mail": "[email protected]", | ||
"role": "administrator" | ||
} | ||
] | ||
``` | ||
|
||
When you run `dktl dkan:test-cypress` for core tests, or `dktl project:test-cypress` for project tests, | ||
the users will be generated, the tests will run, then then user accounts will be deleted. | ||
|
||
## Create Test Users | ||
To create the accounts without running tests, run `dktl dkan:qa-users-create` or `dktl qauc`. | ||
|
||
## Delete Test Users | ||
To delete the accounts, run `dktl dkan:qa-users-delete` or `dktl qaud` |
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.