From 24b8125bb11f0debf6418b4e1340bd8c8f8274e9 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Wed, 3 Feb 2016 10:15:38 -0800 Subject: [PATCH] Revert "Disable flaky test." --- hack/test-cmd.sh | 55 +++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/hack/test-cmd.sh b/hack/test-cmd.sh index 513086d9b69..62dae08321c 100755 --- a/hack/test-cmd.sh +++ b/hack/test-cmd.sh @@ -36,7 +36,6 @@ function stop-proxy() PROXY_PORT_FILE= } - # Starts "kubect proxy" to test the client proxy. $1: api_prefix function start-proxy() { @@ -249,34 +248,32 @@ runTests() { ####################### # kubectl local proxy # ####################### -# This next block disabled until non-racy solution to -# port allocation can be found (#19999). -# -# # Make sure the UI can be proxied -# start-proxy -# check-curl-proxy-code /ui 301 -# check-curl-proxy-code /metrics 200 -# check-curl-proxy-code /api/ui 404 -# if [[ -n "${version}" ]]; then -# check-curl-proxy-code /api/${version}/namespaces 200 -# fi -# check-curl-proxy-code /static/ 200 -# stop-proxy -# -# # Make sure the in-development api is accessible by default -# start-proxy -# check-curl-proxy-code /apis 200 -# check-curl-proxy-code /apis/extensions/ 200 -# stop-proxy -# -# # Custom paths let you see everything. -# start-proxy /custom -# check-curl-proxy-code /custom/ui 301 -# check-curl-proxy-code /custom/metrics 200 -# if [[ -n "${version}" ]]; then -# check-curl-proxy-code /custom/api/${version}/namespaces 200 -# fi -# stop-proxy + + # Make sure the UI can be proxied + start-proxy + check-curl-proxy-code /ui 301 + check-curl-proxy-code /metrics 200 + check-curl-proxy-code /api/ui 404 + if [[ -n "${version}" ]]; then + check-curl-proxy-code /api/${version}/namespaces 200 + fi + check-curl-proxy-code /static/ 200 + stop-proxy + + # Make sure the in-development api is accessible by default + start-proxy + check-curl-proxy-code /apis 200 + check-curl-proxy-code /apis/extensions/ 200 + stop-proxy + + # Custom paths let you see everything. + start-proxy /custom + check-curl-proxy-code /custom/ui 301 + check-curl-proxy-code /custom/metrics 200 + if [[ -n "${version}" ]]; then + check-curl-proxy-code /custom/api/${version}/namespaces 200 + fi + stop-proxy ########################### # POD creation / deletion #