Merge pull request #2017 from jbeda/fix-e2e

Fix e2e tests
This commit is contained in:
bgrant0607 2014-10-27 16:51:19 -07:00
commit e45910fb08

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