cloudapi: return statuses as specified in openapi spec
Don't use common.State anymore, because it has different values from what's defined in openapi.yml. It makes sense to have these strings defined in the same package as the spec — ideally, the code generator would make them for us. While at it, add a "running" status. Fix the api.sh test to use these new statuses. Thanks to Ondřej Budai for an additional fix there.
This commit is contained in:
parent
f8c640c7ef
commit
31f4d9efe8
3 changed files with 32 additions and 5 deletions
|
|
@ -143,8 +143,8 @@ do
|
|||
|
||||
COMPOSE_STATUS=$(echo "$OUTPUT" | jq -r '.status')
|
||||
|
||||
if [[ "$COMPOSE_STATUS" != "WAITING" && "$COMPOSE_STATUS" != "RUNNING" ]]; then
|
||||
test "$COMPOSE_STATUS" = "FINISHED"
|
||||
if [[ "$COMPOSE_STATUS" != "pending" && "$COMPOSE_STATUS" != "running" ]]; then
|
||||
test "$COMPOSE_STATUS" = "success"
|
||||
break
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue