Skip to content

Commit 736b426

Browse files
committed
Check that the amoc_users_size metric works
1 parent 1b7c9c3 commit 736b426

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ci/test_run_scenario.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ run_scenario amoc-master dummy_scenario 10 | contains 200
1919
echo "checking status of the nodes"
2020
get_status amoc-master | contains '"amoc_status":"up"' \
2121
'"status":"disabled"'
22-
sleep 1 ## 1 second is enought to start 5 users with 50ms interarrival timeout
22+
sleep 1 ## 1 second is enough to start 5 users with 50ms interarrival timeout
2323
worker_status=( '"amoc_status":"up"'
2424
'"status":"running"'
2525
'"scenario":"dummy_scenario"'
@@ -29,3 +29,6 @@ worker_status=( '"amoc_status":"up"'
2929
get_status amoc-worker-1 | contains "${worker_status[@]}"
3030
get_status amoc-worker-2 | contains "${worker_status[@]}"
3131
retry 60 curl 'http://localhost:9090/api/v1/query?query=\{__name__="dummy_scenario_metric"\}' | contains "success"
32+
33+
curl 'http://localhost:9090/api/v1/query?query=\{__name__="amoc_users_size"\}' | \
34+
jq '[.data.result[].value[1] | tonumber] | add' | contains '^10$'

0 commit comments

Comments
 (0)