Commit d937f6f7 authored by Daniel Smith's avatar Daniel Smith

working on a better e2e test

parent 9cd97546
......@@ -16,7 +16,7 @@
ZONE=us-central1-b
MASTER_SIZE=g1-small
MINION_SIZE=g1-small
NUM_MINIONS=2
NUM_MINIONS=3
# gcloud/gcutil will expand this to the latest supported image.
IMAGE=backports-debian-7-wheezy
NETWORK=default
......
......@@ -50,12 +50,26 @@ gcutil addfirewall \
--norespect_terminal_width \
--project ${PROJECT} \
--target_tags ${MINION_TAG} \
--allowed tcp:8080 \
--allowed tcp:80 \
--network ${NETWORK} \
${MINION_TAG}-http-alt &
# Launch a container
$(dirname $0)/../cluster/cloudcfg.sh -p 8080:80 run dockerfile/nginx 2 myNginx
CLOUDCGF="$(dirname $0)/../cluster/cloudcfg.sh"
GUESTBOOK="$(dirname $0)/../.examples/guestbook"
# Launch the guestbook example
$CLOUDCFG -c "${GUESTBOOK}/redis-master.json" create /pods
$CLOUDCFG -c "${GUESTBOOK}/redis-master-service.json" create /services
$CLOUDCFG -c "${GUESTBOOK}/redis-slave-controller.json" create /replicationControllers
sleep 5
# Count number of pods-- should be 5 plus two lines of header
PODS_FOUND=$($CLOUDCFG list pods | wc -l)
echo $PODS_FOUND
exit 0
# Container turn up on a clean cluster can take a while for the docker image pull.
# Sleep for 2 minutes just to be sure.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment