-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DXCDT-252: Enable deletion of email provider (2/2) (#673)
* Enabling deletion of email provider * Adding tests for deleting email provider * Updating docs too * Re-recording tests and adding e2e testing readme Co-authored-by: Will Vedder <will.vedder@okta.com> Co-authored-by: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com>
- Loading branch information
1 parent
dff62c6
commit 13cb88d
Showing
6 changed files
with
1,358 additions
and
2,278 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
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,33 @@ | ||
# How to manage E2E testing recordings | ||
|
||
## Re-recording | ||
|
||
Ensure `AUTH0_E2E_TENANT_DOMAIN`, `AUTH0_E2E_CLIENT_ID`, `AUTH0_E2E_CLIENT_SECRET` env vars are set. | ||
|
||
Then delete the recording file that you are attempting to re-record. Example: `rm test/e2e/recordings/should-deploy-while-deleting-resources-if-AUTH0_ALLOW_DELETE-is-true.json` | ||
|
||
Finally, run the following command: | ||
|
||
```shell | ||
AUTH0_HTTP_RECORDINGS="record" npx ts-mocha --timeout=120000 -p tsconfig.json test/e2e/e2e.test.ts -g="<SPECIFIC_TEST_TO_TARGET>" | ||
``` | ||
|
||
**Example:** | ||
|
||
```shell | ||
AUTH0_HTTP_RECORDINGS="record" npx ts-mocha --timeout=120000 -p tsconfig.json test/e2e/e2e.test.ts -g="AUTH0_ALLOW_DELETE is true" | ||
``` | ||
|
||
## Running Tests w/ Recordings | ||
|
||
**Run for all:** | ||
|
||
```shell | ||
AUTH0_HTTP_RECORDINGS="lockdown" npm run test:e2e:node-module | ||
``` | ||
|
||
**Run a specific test:** | ||
|
||
```shell | ||
AUTH0_HTTP_RECORDINGS="lockdown" npx ts-mocha --timeout=120000 -p tsconfig.json test/e2e/e2e.test.ts -g="should deploy while deleting resources if AUTH0_ALLOW_DELETE is true" | ||
``` |
Oops, something went wrong.