File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ if ! echo "$METRICS_RESPONSE" | grep -q '"name":"users"'; then
109109fi
110110
111111# Extract the value of the users metric and check if it matches expected value
112- USERS_VALUE=$( echo " $METRICS_RESPONSE " | grep -A 10 ' "name":"users"' | grep -o ' "value":[0-9]*' | sed ' s/"value"://' )
112+ USERS_VALUE=$( echo " $METRICS_RESPONSE " | sed -n ' / "name":"users"/,/"value":[0-9]*/p ' | grep -o ' "value":[0-9]*' | sed ' s/"value"://' | head -1 )
113113
114114if [ " $USERS_VALUE " != " $EXPECTED_USERS_VALUE " ]; then
115115 echo " Error: Users metric value mismatch. Expected: $EXPECTED_USERS_VALUE , Found: $USERS_VALUE "
Original file line number Diff line number Diff line change 33from logdash .metrics import MetricOperation
44
55__all__ = ["create_logdash" , "Logger" , "MetricOperation" ]
6- __version__ = "1.0.6 "
6+ __version__ = "1.0.7 "
You can’t perform that action at this time.
0 commit comments