From 1ccc1b13874a0767ebe72a4ccfa0fb1368c8fc09 Mon Sep 17 00:00:00 2001 From: DouPache Date: Thu, 2 Nov 2023 14:43:51 +0100 Subject: [PATCH] [YUNIKORN-2096] Update e2e README (#714) Closes: #714 Signed-off-by: Peter Bacsko --- test/e2e/README.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/test/e2e/README.md b/test/e2e/README.md index 03ace70be..28ce1012b 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -46,13 +46,29 @@ OR follow this doc for deploying go https://golang.org/doc/install ### Trigger through CLI * Launching CI tests is as simple as below. -```console +```shell $ kubectl config use-context <> $ ginkgo -r -v ci -timeout=2h -- -yk-namespace "yunikorn" -kube-config "$HOME/.kube/config" ``` -* Launching all the tests can be done as.. -```console +* Launching all the tests can be done as. +```shell $ ginkgo -r -v -timeout=2h -- -yk-namespace "yunikorn" -kube-config "$HOME/.kube/config" ``` + +* Launching all the tests in specified e2e folder. +e.g. test/e2e/user_group_limit/ +```shell +$ cd test/e2e/ +$ ginkgo -r user_group_limit -v -- -yk-namespace "yunikorn" -kube-config "$HOME/.kube/config" +``` + +* Launching specified test. +e.g. Run test with ginkgo.it() spec name "Verify_maxapplications_with_a_specific_group_limit" +```shell +$ cd test/e2e/ +$ ginkgo run -r -v --focus "Verify_maxapplications_with_a_specific_group_limit" \ +-- -yk-namespace "yunikorn" \ +-kube-config "$HOME/.kube/config" +```