Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8bab0022
Commit
8bab0022
authored
Feb 02, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20000 from erictune/disable-flaky
Auto commit by PR queue bot
parents
80507157
7944fa01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
26 deletions
+29
-26
test-cmd.sh
hack/test-cmd.sh
+29
-26
No files found.
hack/test-cmd.sh
View file @
8bab0022
...
@@ -36,6 +36,7 @@ function stop-proxy()
...
@@ -36,6 +36,7 @@ function stop-proxy()
PROXY_PORT_FILE
=
PROXY_PORT_FILE
=
}
}
# Starts "kubect proxy" to test the client proxy. $1: api_prefix
# Starts "kubect proxy" to test the client proxy. $1: api_prefix
function
start-proxy
()
function
start-proxy
()
{
{
...
@@ -248,32 +249,34 @@ runTests() {
...
@@ -248,32 +249,34 @@ runTests() {
#######################
#######################
# kubectl local proxy #
# kubectl local proxy #
#######################
#######################
# This next block disabled until non-racy solution to
# Make sure the UI can be proxied
# port allocation can be found (#19999).
start-proxy
#
check-curl-proxy-code /ui 301
# # Make sure the UI can be proxied
check-curl-proxy-code /metrics 200
# start-proxy
check-curl-proxy-code /api/ui 404
# check-curl-proxy-code /ui 301
if
[[
-n
"
${
version
}
"
]]
;
then
# check-curl-proxy-code /metrics 200
check-curl-proxy-code /api/
${
version
}
/namespaces 200
# check-curl-proxy-code /api/ui 404
fi
# if [[ -n "${version}" ]]; then
check-curl-proxy-code /static/ 200
# check-curl-proxy-code /api/${version}/namespaces 200
stop-proxy
# fi
# check-curl-proxy-code /static/ 200
# Make sure the in-development api is accessible by default
# stop-proxy
start-proxy
#
check-curl-proxy-code /apis 200
# # Make sure the in-development api is accessible by default
check-curl-proxy-code /apis/extensions/ 200
# start-proxy
stop-proxy
# check-curl-proxy-code /apis 200
# check-curl-proxy-code /apis/extensions/ 200
# Custom paths let you see everything.
# stop-proxy
start-proxy /custom
#
check-curl-proxy-code /custom/ui 301
# # Custom paths let you see everything.
check-curl-proxy-code /custom/metrics 200
# start-proxy /custom
if
[[
-n
"
${
version
}
"
]]
;
then
# check-curl-proxy-code /custom/ui 301
check-curl-proxy-code /custom/api/
${
version
}
/namespaces 200
# check-curl-proxy-code /custom/metrics 200
fi
# if [[ -n "${version}" ]]; then
stop-proxy
# check-curl-proxy-code /custom/api/${version}/namespaces 200
# fi
# stop-proxy
###########################
###########################
# POD creation / deletion #
# POD creation / deletion #
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment