You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/04/18 09:18:14 UTC

[camel-k] 11/12: Adds petstore tests as problematic and needing to be fixed on OCP4

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 73ced09455dc93f70be62cfb98768400b9eb7aea
Author: phantomjinx <p....@phantomjinx.co.uk>
AuthorDate: Mon Apr 4 10:16:02 2022 +0100

    Adds petstore tests as problematic and needing to be fixed on OCP4
---
 .../kamel-report-problematic/report-problematic.sh |  3 ++-
 e2e/common/traits/openapi_test.go                  | 23 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/.github/actions/kamel-report-problematic/report-problematic.sh b/.github/actions/kamel-report-problematic/report-problematic.sh
index 53f883799..285c5e0dc 100755
--- a/.github/actions/kamel-report-problematic/report-problematic.sh
+++ b/.github/actions/kamel-report-problematic/report-problematic.sh
@@ -61,7 +61,8 @@ do
   func=""
   while IFS= read -r line
   do
-    if [[ "${line}" =~ ^" * " ]]; then
+    if [[ "${line}" =~ ^[\ ]+\*[\ ] ]]; then
+      # Ignore comments
       continue
     elif [[ "${line}" =~ ^func* ]]; then
       func=$(echo "${line}" | sed -n "s/func \([a-zA-Z0-9]\+\).*/\1/p")
diff --git a/e2e/common/traits/openapi_test.go b/e2e/common/traits/openapi_test.go
index ccfbfe78f..f8f0adc25 100644
--- a/e2e/common/traits/openapi_test.go
+++ b/e2e/common/traits/openapi_test.go
@@ -24,6 +24,7 @@ package traits
 
 import (
 	"io/ioutil"
+	"os"
 	"testing"
 
 	. "github.com/onsi/gomega"
@@ -34,7 +35,18 @@ import (
 	. "github.com/apache/camel-k/e2e/support"
 )
 
+/*
+ * TODO
+ * Despite the kit and integration being correctly built and the
+ * integration phase changed to running, no pod is being created.
+ *
+ * Adding CAMEL_K_TEST_SKIP_PROBLEMATIC env var for the moment.
+ */
 func TestOpenAPI(t *testing.T) {
+	if os.Getenv("CAMEL_K_TEST_SKIP_PROBLEMATIC") == "true" {
+		t.Skip("WARNING: Test marked as problematic ... skipping")
+	}
+
 	WithNewTestNamespace(t, func(ns string) {
 		Expect(Kamel("install", "-n", ns).Execute()).To(Succeed())
 
@@ -62,7 +74,18 @@ func TestOpenAPI(t *testing.T) {
 	})
 }
 
+/*
+ * TODO
+ * Despite the kit and integration being correctly built and the
+ * integration phase changed to running, no pod is being created.
+ *
+ * Adding CAMEL_K_TEST_SKIP_PROBLEMATIC env var for the moment.
+ */
 func TestOpenAPIConfigmap(t *testing.T) {
+	if os.Getenv("CAMEL_K_TEST_SKIP_PROBLEMATIC") == "true" {
+		t.Skip("WARNING: Test marked as problematic ... skipping")
+	}
+
 	WithNewTestNamespace(t, func(ns string) {
 		Expect(Kamel("install", "-n", ns).Execute()).To(Succeed())