瀏覽代碼

chore(relup tests): check rules matched

Signed-off-by: zhanghongtong <rory-z@outlook.com>
zhanghongtong 4 年之前
父節點
當前提交
318beef503
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .ci/fvt_tests/relup.lux

+ 6 - 0
.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