From 4c0381b3aa9cc03c74428cbc265586b0e7c49916 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 22 Jul 2021 12:22:31 +0200 Subject: [PATCH] e2e: fix handlers tests Co-authored-by: leonnicolas <60091705+leonnicolas@users.noreply.github.com> --- e2e/handlers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/handlers.sh b/e2e/handlers.sh index 5af8d3f..03e9baf 100644 --- a/e2e/handlers.sh +++ b/e2e/handlers.sh @@ -9,7 +9,7 @@ setup_suite() { } test_graph_handler() { - assert "curl_pod http://10.4.0.1:1107/graph?format=svg&layout=circo | grep -q ' 0 ))" "metrics handler should provide metric: kilo_nodes > 0" + assert "(( $(curl_pod http://10.4.0.1:1107/metrics | grep -E ^kilo_nodes | cut -d " " -f 2) > 0 ))" "metrics handler should provide metric: kilo_nodes > 0" }