chore(relup tests): check rules matched
Signed-off-by: zhanghongtong <rory-z@outlook.com>
This commit is contained in:
parent
46ae179a7a
commit
318beef503
|
@ -132,6 +132,12 @@
|
||||||
???publish complete
|
???publish complete
|
||||||
??SH-PROMPT:
|
??SH-PROMPT:
|
||||||
!sleep 5
|
!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
|
!curl http://127.0.0.1:8080/counter
|
||||||
???{"data":300,"code":0}
|
???{"data":300,"code":0}
|
||||||
?SH-PROMPT
|
?SH-PROMPT
|
||||||
|
|
Loading…
Reference in New Issue