This is an automated email from the ASF dual-hosted git repository. tsato pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit b82bc77388bafbad136c3dc02f4eb80fe77e6ae5 Author: Tadayoshi Sato <[email protected]> AuthorDate: Tue Aug 30 15:48:13 2022 +0900 feat(e2e): add CAMEL_K_TEST_NS env var to specify namespace to run tests --- e2e/support/test_support.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/support/test_support.go b/e2e/support/test_support.go index 28eec818f..0bb3ecc39 100644 --- a/e2e/support/test_support.go +++ b/e2e/support/test_support.go @@ -2067,7 +2067,10 @@ func deleteTestNamespace(t *testing.T, ns ctrl.Object) { func newTestNamespace(injectKnativeBroker bool) ctrl.Object { brokerLabel := "eventing.knative.dev/injection" - name := "test-" + uuid.New().String() + name := os.Getenv("CAMEL_K_TEST_NS") + if name == "" { + name = "test-" + uuid.New().String() + } c := TestClient() if oc, err := openshift.IsOpenShift(TestClient()); err != nil {
