From 171912e67f9437c94158518addba67a7daae3309 Mon Sep 17 00:00:00 2001 From: zhewang Date: Mon, 20 May 2024 10:34:45 +0800 Subject: [PATCH] OCM-8133 | ci: Update readme for test folder to document how to destroy resources --- tests/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/README.md b/tests/README.md index c1a2b65515..0230d38e6a 100644 --- a/tests/README.md +++ b/tests/README.md @@ -132,6 +132,18 @@ This feature allows for running tests through a case filter to simulate CI. Anyo * `$ ginkgo run -focus tests/e2e` ### Resources destroy +1. Export the profile name as an environment variable +* `$ export TEST_PROFILE=` + +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]