Merge pull request #21430 from spxtr/e2e-internal

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2016-02-21 12:08:22 -08:00
9 changed files with 25 additions and 60 deletions

View File

@@ -1446,11 +1446,13 @@ function test-build-release {
}
# Execute prior to running tests to initialize required structure. This is
# called from hack/e2e.go only when running -up (it is run after kube-up).
# called from hack/e2e.go only when running -up.
#
# Assumed vars:
# Variables from config.sh
function test-setup {
"${KUBE_ROOT}/cluster/kube-up.sh"
VPC_ID=$(get_vpc_id)
detect-security-groups

View File

@@ -1192,7 +1192,7 @@ function test-build-release {
}
# Execute prior to running tests to initialize required structure. This is
# called from hack/e2e.go only when running -up (it is run after kube-up).
# called from hack/e2e.go only when running -up.
#
# Assumed vars:
# Variables from config.sh
@@ -1200,6 +1200,16 @@ function test-setup {
# Detect the project into $PROJECT if it isn't set
detect-project
if [[ ${MULTIZONE:-} == "true" ]]; then
for KUBE_GCE_ZONE in ${E2E_ZONES}
do
KUBE_GCE_ZONE="${KUBE_GCE_ZONE}" KUBE_USE_EXISTING_MASTER="${KUBE_USE_EXISTING_MASTER:-}" "${KUBE_ROOT}/cluster/kube-up.sh"
KUBE_USE_EXISTING_MASTER="true" # For subsequent zones we use the existing master
done
else
"${KUBE_ROOT}/cluster/kube-up.sh"
fi
# Open up port 80 & 8080 so common containers on minions can be reached
# TODO(roberthbailey): Remove this once we are no longer relying on hostPorts.
local start=`date +%s`

View File

@@ -167,8 +167,11 @@ function test-setup() {
echo "... in gke:test-setup()" >&2
# Detect the project into $PROJECT if it isn't set
detect-project >&2
detect-nodes >&2
"${KUBE_ROOT}/cluster/kube-up.sh"
detect-nodes >&2
# At this point, CLUSTER_NAME should have been used, so its value is final.
NODE_TAG=$($GCLOUD compute instances describe ${NODE_NAMES[0]} --project="${PROJECT}" --zone="${ZONE}" | grep -o "gke-${CLUSTER_NAME}-.\{8\}-node" | head -1)
OLD_NODE_TAG="k8s-${CLUSTER_NAME}-node"

View File

@@ -165,9 +165,9 @@ function test-build-release {
}
# Execute prior to running tests to initialize required structure. This is
# called from hack/e2e.go only when running -up (it is run after kube-up).
# called from hack/e2e.go only when running -up.
function test-setup {
echo "test-setup() " 1>&2
"${KUBE_ROOT}/cluster/kube-up.sh"
}
# Execute after running tests to perform any required clean-up. This is called

View File

@@ -316,7 +316,7 @@ function test-build-release {
# Execute prior to running tests to initialize required structure
function test-setup {
echo "TODO"
"${KUBE_ROOT}/cluster/kube-up.sh"
}
# Execute after running tests to perform any required clean-up

View File

@@ -317,7 +317,8 @@ function kube-down {
}
function test-setup {
echo "TODO: test-setup" 1>&2
echo "test-setup" 1>&2
"${KUBE_ROOT}/cluster/kube-up.sh"
}
# Execute after running tests to perform any required clean-up

View File

@@ -319,6 +319,7 @@ function test-build-release {
# Execute prior to running tests to initialize required structure
function test-setup {
"${KUBE_ROOT}/cluster/kube-up.sh"
echo "Vagrant test setup complete" 1>&2
}