Skip to content

Commit

Permalink
Update smoketest.sh
Browse files Browse the repository at this point in the history
changed default-alertmanager URL to v2
  • Loading branch information
ayefimov-1 authored Feb 29, 2024
1 parent 6568039 commit b20b584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/smoketest/smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fi

# create the alert using startsAt which in theory may cause trigger to be faster
echo "*** [INFO] Create alert"
oc delete pod -l run=curl ; oc run curl --wait --restart='Never' --image=quay.io/infrawatch/busyboxplus:curl -- sh -c "curl -v -k -H \"Content-Type: application/json\" -H \"Authorization: Bearer ${PROMETHEUS_K8S_TOKEN}\" -d '[{\"status\":\"firing\",\"labels\":{\"alertname\":\"smoketest\",\"severity\":\"warning\"},\"startsAt\":\"$(date --rfc-3339=seconds | sed 's/ /T/')\"}]' https://default-alertmanager-proxy:9095/api/v1/alerts"
oc delete pod -l run=curl ; oc run curl --wait --restart='Never' --image=quay.io/infrawatch/busyboxplus:curl -- sh -c "curl -v -k -H \"Content-Type: application/json\" -H \"Authorization: Bearer ${PROMETHEUS_K8S_TOKEN}\" -d '[{\"status\":\"firing\",\"labels\":{\"alertname\":\"smoketest\",\"severity\":\"warning\"},\"startsAt\":\"$(date --rfc-3339=seconds | sed 's/ /T/')\"}]' https://default-alertmanager-proxy:9095/api/v2/alerts"
oc wait --for=jsonpath='{.status.phase}'=Succeeded pod/curl
oc logs curl

Expand Down

0 comments on commit b20b584

Please sign in to comment.