You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/03/12 15:39:41 UTC

[camel-k] 10/10: test: Move operator metrics e2e tests into a dedicated file

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

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

commit 46bd3f935b66dace65a7c8ea65023cd45ebfa1cd
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Fri Mar 12 14:55:48 2021 +0100

    test: Move operator metrics e2e tests into a dedicated file
---
 e2e/common/{metrics_test.go => operator_metrics_test.go} | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/e2e/common/metrics_test.go b/e2e/common/operator_metrics_test.go
similarity index 97%
rename from e2e/common/metrics_test.go
rename to e2e/common/operator_metrics_test.go
index 9c0b1f4..93e60a6 100644
--- a/e2e/common/metrics_test.go
+++ b/e2e/common/operator_metrics_test.go
@@ -31,8 +31,6 @@ import (
 	. "github.com/onsi/gomega"
 	. "github.com/onsi/gomega/gstruct"
 	"github.com/onsi/gomega/types"
-	"github.com/stretchr/testify/assert"
-
 	v1 "k8s.io/api/core/v1"
 
 	prometheus "github.com/prometheus/client_model/go"
@@ -435,14 +433,6 @@ func TestMetrics(t *testing.T) {
 			))
 		})
 
-		t.Run("Integration metrics", func(t *testing.T) {
-			pod := IntegrationPod(ns, name)()
-			response, err := TestClient().CoreV1().RESTClient().Get().
-				AbsPath(fmt.Sprintf("/api/v1/namespaces/%s/pods/%s/proxy/q/metrics", ns, pod.Name)).DoRaw(TestContext)
-			Expect(err).To(BeNil())
-			assert.Contains(t, string(response), "camel.route.exchanges.total")
-		})
-
 		// Clean up
 		Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
 	})