Skip to content

Commit

Permalink
Fixing lint
Browse files Browse the repository at this point in the history
Signed-off-by: Alok Kumar Singh <[email protected]>
  • Loading branch information
akstron committed Nov 2, 2024
1 parent aa0a446 commit faed86a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/spm-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ validate_service_metrics() {
# Validate if labels are correct
local url="http://localhost:16686/api/metrics/calls?service=${service}&groupByOperation=true&endTs=&lookback=${fiveMinutes}&step=${fifteenSec}&ratePer=${oneMinute}"

local labels=$(curl -s $url | jq -r '.metrics[0].labels[].name' | sort | tr '\n' ' ')
local labels
labels=$(curl -s "$url" | jq -r '.metrics[0].labels[].name' | sort | tr '\n' ' ')
local exp_labels="operation service_name "

if [[ "$labels" != "$exp_labels" ]]; then
Expand Down

0 comments on commit faed86a

Please sign in to comment.