Fix e2e tests

pull/6/head
Joe Beda 2014-10-27 16:31:31 -07:00
parent 019170e6fb
commit 053d65c086
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ function do_teardown() {
# $3: service replica count
function start_service() {
echo "Starting service '$1' on port $2 with $3 replicas"
${KUBECFG} -s "$2" -p 9376 run kubernetes/serve_hostname "$3" "$1"
svcs_to_clean+=("$1")
${KUBECFG} -s "$2" -p 9376 run kubernetes/serve_hostname "$3" "$1"
}
# Args:
@ -70,7 +70,7 @@ function query_pods() {
for i in $(seq 1 10); do
pods_unsorted=($(${KUBECFG} \
'-template={{range.Items}}{{.Name}} {{end}}' \
-l replicationController="$1" list pods))
-l name="$1" list pods))
found="${#pods_unsorted[*]}"
if [[ "${found}" == "$2" ]]; then
break