Skip to content

Commit 98e19bc

Browse files
author
OpenShift Bot
authored
Merge pull request #12807 from guangxuli/fix_get_build_log_test
Merged by openshift-bot
2 parents ff53795 + 5484d19 commit 98e19bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/end-to-end/core.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ BUILD_ID="$( oc get builds --namespace test -o jsonpath='{.items[0].metadata.nam
424424
# Ensure that the build pod doesn't allow exec
425425
os::cmd::expect_failure_and_text "oc rsh ${BUILD_ID}-build" 'forbidden'
426426
os::cmd::try_until_text "oc get builds --namespace test -o jsonpath='{.items[0].status.phase}'" "Complete" "$(( 10*TIME_MIN ))"
427-
os::cmd::expect_success "oc build-logs --namespace test '${BUILD_ID}' > '${LOG_DIR}/test-build.log'"
427+
os::cmd::expect_success "oc logs build/${BUILD_ID} --namespace test > '${LOG_DIR}/test-build.log'"
428428
wait_for_app "test"
429429

430430
# logs can't be tested without a node, so has to be in e2e
@@ -481,7 +481,7 @@ os::cmd::expect_success_and_text "oc rsh ${frontend_pod} ls /tmp/sample-app" 'ap
481481
#curl -k -X POST $API_SCHEME://$API_HOST:$API_PORT/oapi/v1/namespaces/docker/buildconfigs/ruby-sample-build/webhooks/secret101/generic && sleep 3
482482
# BUILD_ID="$( oc get builds --namespace docker -o jsonpath='{.items[0].metadata.name}' )"
483483
# os::cmd::try_until_text "oc get builds --namespace docker -o jsonpath='{.items[0].status.phase}'" "Complete" "$(( 10*TIME_MIN ))"
484-
# os::cmd::expect_success "oc build-logs --namespace docker '${BUILD_ID}' > '${LOG_DIR}/docker-build.log'"
484+
# os::cmd::expect_success "oc logs build/${BUILD_ID} --namespace docker > '${LOG_DIR}/docker-build.log'"
485485
#wait_for_app "docker"
486486

487487
#os::log::info "Applying Custom application config"
@@ -490,7 +490,7 @@ os::cmd::expect_success_and_text "oc rsh ${frontend_pod} ls /tmp/sample-app" 'ap
490490
#curl -k -X POST $API_SCHEME://$API_HOST:$API_PORT/oapi/v1/namespaces/custom/buildconfigs/ruby-sample-build/webhooks/secret101/generic && sleep 3
491491
# BUILD_ID="$( oc get builds --namespace custom -o jsonpath='{.items[0].metadata.name}' )"
492492
# os::cmd::try_until_text "oc get builds --namespace custom -o jsonpath='{.items[0].status.phase}'" "Complete" "$(( 10*TIME_MIN ))"
493-
# os::cmd::expect_success "oc build-logs --namespace custom '${BUILD_ID}' > '${LOG_DIR}/custom-build.log'"
493+
# os::cmd::expect_success "oc logs build/${BUILD_ID} --namespace custom > '${LOG_DIR}/custom-build.log'"
494494
#wait_for_app "custom"
495495

496496
os::log::info "Back to 'default' project with 'admin' user..."

0 commit comments

Comments
 (0)