diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 0a876fb08a3..534bab34d91 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -509,7 +509,7 @@ function kube-up { local kubectl="${KUBE_ROOT}/cluster/kubectl.sh" local context="${PROJECT}_${INSTANCE_PREFIX}" - local user="${INSTANCE_PREFIX}-admin" + local user="${context}-admin" local config_dir="${HOME}/.kube/${context}" # TODO: generate ADMIN (and KUBELET) tokens and put those in the master's diff --git a/hack/e2e-suite/guestbook.sh b/hack/e2e-suite/guestbook.sh index 274194fc373..b784c39b90e 100755 --- a/hack/e2e-suite/guestbook.sh +++ b/hack/e2e-suite/guestbook.sh @@ -37,8 +37,9 @@ prepare-e2e GUESTBOOK="${KUBE_ROOT}/examples/guestbook" +echo "WARNING: this test is a no op that only attempts to launch guestbook resources." # Launch the guestbook example -${KUBECTL} create -f "${GUESTBOOK}" +${KUBECTL} create -f "${GUESTBOOK}" sleep 15 @@ -48,9 +49,7 @@ echo "Pods running: ${POD_LIST_1}" # TODO make this an actual test. Open up a firewall and use curl to post and # read a message via the frontend -${KUBECTL} stop rc redis-slave-controller -${KUBECTL} delete services redis-master -${KUBECTL} delete pods redis-master +${KUBECTL} stop -f "${GUESTBOOK}" POD_LIST_2=$(${KUBECTL} get pods -o template '--template={{range.items}}{{.id}} {{end}}') echo "Pods running after shutdown: ${POD_LIST_2}" diff --git a/hack/e2e-suite/services.sh b/hack/e2e-suite/services.sh index 4e8c5162fe7..375be36dc14 100755 --- a/hack/e2e-suite/services.sh +++ b/hack/e2e-suite/services.sh @@ -59,7 +59,6 @@ function join() { svcs_to_clean=() function do_teardown() { local svc - return for svc in "${svcs_to_clean[@]:+${svcs_to_clean[@]}}"; do stop_service "${svc}" done @@ -284,7 +283,7 @@ function verify_from_container() { fi } -trap "do_teardown" EXIT +trap do_teardown EXIT # Get node IP addresses and pick one as our test point. detect-minions