diff --git a/runs/test/scripts/abort_action.sh b/runs/test/scripts/abort_action.sh new file mode 100755 index 00000000000..a4ae7c85249 --- /dev/null +++ b/runs/test/scripts/abort_action.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +ENDPOINT="${ENDPOINT:-http://localhost:8090}" +ORG="${ORG:-testorg}" +PROJECT="${PROJECT:-testproject}" +DOMAIN="${DOMAIN:-development}" +RUN_NAME="${RUN_NAME:?Error: RUN_NAME environment variable is required}" +ACTION="${ACTION:-$RUN_NAME}" +REASON="${REASON:-User requested abort}" + +buf curl --schema . "$ENDPOINT/flyteidl2.workflow.RunService/AbortAction" --data @- <