File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ run_scenario amoc-master dummy_scenario 10 | contains 200
1919echo " checking status of the nodes"
2020get_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
2323worker_status=( ' "amoc_status":"up"'
2424 ' "status":"running"'
2525 ' "scenario":"dummy_scenario"'
@@ -29,3 +29,6 @@ worker_status=( '"amoc_status":"up"'
2929get_status amoc-worker-1 | contains " ${worker_status[@]} "
3030get_status amoc-worker-2 | contains " ${worker_status[@]} "
3131retry 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$'
You can’t perform that action at this time.
0 commit comments