Skip to content

Commit

Permalink
Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
toolmantim committed Feb 21, 2019
1 parent 862a507 commit c418524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/entrypoint.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
load "$BATS_PATH/load.bash"

# Uncomment to enable stub debugging
# export CURL_STUB_DEBUG=/dev/tty
export CURL_STUB_DEBUG=/dev/tty

teardown() {
unset BUILDKITE_API_ACCESS_TOKEN
Expand Down Expand Up @@ -38,7 +38,7 @@ teardown() {

# TODO: This stub shouldn't pass without verifying the JSON being posted is
# correct, but getting bats-mock to match the `-d {json}` part was impossible.
stub curl "--silent -X POST -H \"Authorization: Bearer 123\" https://api.buildkite.com/v2/organizations/my-org/pipelines/my-pipeline/builds -d : echo '{\"web_url\": \"https://buildkite.com/build-url\"}'"
stub curl "--fail --silent -X POST -H \"Authorization: Bearer 123\" https://api.buildkite.com/v2/organizations/my-org/pipelines/my-pipeline/builds -d : echo '{\"web_url\": \"https://buildkite.com/build-url\"}'"

run $PWD/entrypoint.sh

Expand Down

0 comments on commit c418524

Please sign in to comment.