From 2c78cf92559afb495e909d7cca5fb2402bbc278d Mon Sep 17 00:00:00 2001 From: Kevin Leimkuhler Date: Tue, 22 Dec 2020 12:10:05 -0500 Subject: [PATCH] Remove count from opaque ports tcp metric (#5422) We need to test for the presence of the TCP metric labels, not the exact count. This change removes the count of `1` so that it can match any count. Signed-off-by: Kevin Leimkuhler --- test/integration/opaqueports/opaque_ports_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/opaqueports/opaque_ports_test.go b/test/integration/opaqueports/opaque_ports_test.go index 42ac8a1fe..53ccb5a53 100644 --- a/test/integration/opaqueports/opaque_ports_test.go +++ b/test/integration/opaqueports/opaque_ports_test.go @@ -19,7 +19,7 @@ var ( // With the app's port marked as opaque, we expect to find a single open // TCP connection that is not TLS'd because the port is skipped. - tcpMetric = "tcp_open_total{peer=\"src\",direction=\"inbound\",tls=\"no_identity\",no_tls_reason=\"port_skipped\"} 1" + tcpMetric = "tcp_open_total{peer=\"src\",direction=\"inbound\",tls=\"no_identity\",no_tls_reason=\"port_skipped\"}" ) func TestMain(m *testing.M) {