From 1b92b1fb56e384eec6700051f3ae0ab65c5cf669 Mon Sep 17 00:00:00 2001 From: Navid Shaikh Date: Sat, 18 May 2019 05:12:15 +0530 Subject: [PATCH] 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 --- test/e2e-tests.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh index c87a964e5..21cb84d48 100755 --- a/test/e2e-tests.sh +++ b/test/e2e-tests.sh @@ -38,16 +38,25 @@ function knative_setup() { start_latest_knative_serving } - # Script entry point. initialize $@ header "Running tests" -# TODO: Real integration tests here instead of just verifying that we -# can list Knative Services. +./kn service create hello --image gcr.io/knative-samples/helloworld-go -e TARGET=Knative || fail_test +sleep 5 ./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