Skip to content

Commit

Permalink
Merge pull request #2071 from jameszwang/upgrade_readme
Browse files Browse the repository at this point in the history
OCM-8133 | ci: Update readme for test folder of  how to destroy resources
  • Loading branch information
openshift-merge-bot[bot] committed May 20, 2024
2 parents 05938ff + 171912e commit 3596c43
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ This feature allows for running tests through a case filter to simulate CI. Anyo
* `$ ginkgo run -focus <case id> tests/e2e`

### Resources destroy
1. Export the profile name as an environment variable
* `$ export TEST_PROFILE=<PROFILE NAME>`

2. Destroy cluster and prepared user data based on the profile and the information recorded in the creation of the cluster
* `$ ginkgo run --label-filter destroy tests/e2e`

3. Wait for the resources destroy finished

> [!NOTE]
> Environment variables setting
> * **SHARED_DIR** if you have the env variable setting, resource destroy will read information from cluster-detail.json and resources.json under it, otherwise it will read the two files from _output/${TEST_PROFILE}_

## Additional configuration
> [!TIP]
Expand Down

0 comments on commit 3596c43

Please sign in to comment.