Skip to content

Commit

Permalink
test-cmd: boring
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Jun 22, 2018
1 parent 258cd1b commit 79f9b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cmd/builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ os::cmd::expect_success_and_text 'oc start-build --list-webhooks=github ruby-sam
os::cmd::expect_failure 'oc start-build --list-webhooks=blah'
hook=$(oc start-build --list-webhooks='generic' ruby-sample-build | head -n 1)
hook=${hook/<secret>/secret101}
os::cmd::expect_success_and_text "oc start-build --from-webhook=${hook}" "build \"ruby-sample-build-[0-9]\" started"
os::cmd::expect_success_and_text "oc start-build --from-webhook=${hook}" "build.build.openshift.io \"ruby-sample-build-[0-9]\" started"
os::cmd::expect_failure_and_text "oc start-build --from-webhook=${hook}/foo" "error: server rejected our request"
os::cmd::expect_success "oc patch bc/ruby-sample-build -p '{\"spec\":{\"strategy\":{\"dockerStrategy\":{\"from\":{\"name\":\"asdf:7\"}}}}}'"
os::cmd::expect_failure_and_text "oc start-build --from-webhook=${hook}" "Error resolving ImageStreamTag asdf:7"
Expand Down

0 comments on commit 79f9b9b

Please sign in to comment.