From 318beef50377f5fb8520eacb24d5b651fef12170 Mon Sep 17 00:00:00 2001 From: zhanghongtong Date: Wed, 21 Jul 2021 17:45:18 +0800 Subject: [PATCH] chore(relup tests): check rules matched Signed-off-by: zhanghongtong --- .ci/fvt_tests/relup.lux | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.ci/fvt_tests/relup.lux b/.ci/fvt_tests/relup.lux index 63cb06661..f5b36c648 100644 --- a/.ci/fvt_tests/relup.lux +++ b/.ci/fvt_tests/relup.lux @@ -132,6 +132,12 @@ ???publish complete ??SH-PROMPT: !sleep 5 + ?SH-PROMPT + + !curl --user admin:public --silent --show-error http://localhost:8081/api/v4/rules | jq --raw-output ".data[0].metrics[] | select(.node==\"emqx@127.0.0.1\").matched" + ?300 + ?SH-PROMPT + !curl http://127.0.0.1:8080/counter ???{"data":300,"code":0} ?SH-PROMPT