Tests running simple workflow in e2e (#112)

* Tests running simple workflow in e2e

 Fixes #104

* Adds e2e test for --force flag while creating service

 also removes http:// before the registry name

* Removes the update command

* Adds the service update command back to e2e tests

 also increases the sleep time between create and get
This commit is contained in:
Navid Shaikh 2019-05-18 05:12:15 +05:30 committed by Knative Prow Robot
parent a4242b3bb5
commit 1b92b1fb56
1 changed files with 14 additions and 5 deletions

View File

@ -38,16 +38,25 @@ function knative_setup() {
start_latest_knative_serving start_latest_knative_serving
} }
# Script entry point. # Script entry point.
initialize $@ initialize $@
header "Running tests" header "Running tests"
# TODO: Real integration tests here instead of just verifying that we ./kn service create hello --image gcr.io/knative-samples/helloworld-go -e TARGET=Knative || fail_test
# can list Knative Services. sleep 5
./kn service get || fail_test ./kn service get || fail_test
echo "kn service get returned success" ./kn service update hello --env TARGET=kn || fail_test
sleep 3
./kn revision get || fail_test
./kn service get || fail_test
./kn service create hello --force --image gcr.io/knative-samples/helloworld-go -e TARGET=Awesome || fail_test
./kn service create foo --force --image gcr.io/knative-samples/helloworld-go -e TARGET=foo || fail_test
sleep 5
./kn revision get || fail_test
./kn service get || fail_test
./kn service describe hello || fail_test
./kn service delete hello || fail_test
./kn service delete foo || fail_test
success success