Skip to content
Permalink
Browse files

Update dgoss (#359)

  • Loading branch information
burkl authored and aelsabbahy committed Dec 18, 2019
1 parent 584b0f1 commit 7af6389932d5a67a4b29a8e911ca60889510327d
Showing with 3 additions and 3 deletions.
  1. +3 −3 extras/dgoss/dgoss
@@ -83,20 +83,20 @@ case "$1" in
info "Found goss_wait.yaml, waiting for it to pass before running tests"
if [[ -z "${GOSS_VARS}" ]]; then
if ! docker exec "$id" sh -c "/goss/goss -g /goss/goss_wait.yaml validate $GOSS_WAIT_OPTS"; then
docker logs $id
docker logs $id >&2
error "goss_wait.yaml never passed"
fi
else
if ! docker exec "$id" sh -c "/goss/goss -g /goss/goss_wait.yaml --vars='/goss/${GOSS_VARS}' validate $GOSS_WAIT_OPTS"; then
docker logs $id
docker logs $id >&2
error "goss_wait.yaml never passed"
fi
fi
fi
[[ $GOSS_SLEEP ]] && { info "Sleeping for $GOSS_SLEEP"; sleep "$GOSS_SLEEP"; }
info "Container health"
if [ "true" != "$(docker inspect -f '{{.State.Running}}' $id)" ]; then
docker logs $id
docker logs $id >&2
error "the container failed to start"
fi
info "Running Tests"

0 comments on commit 7af6389

Please sign in to comment.
You can’t perform that action at this time.