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
3f3e2d9b
Commit
3f3e2d9b
authored
May 11, 2016
by
Isaac Hollander McCreery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add infra to e2e-runner to allow running tests with a skewed kubectl
parent
7e7465e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
e2e-runner.sh
hack/jenkins/e2e-runner.sh
+25
-8
No files found.
hack/jenkins/e2e-runner.sh
View file @
3f3e2d9b
...
...
@@ -317,20 +317,37 @@ if [[ "${E2E_UP,,}" == "true" ]]; then
fi
# Allow download & unpack of alternate version of tests, for cross-version & upgrade testing.
if
[[
-n
"
${
JENKINS_PUBLISHED_TEST_VERSION
:-}
"
]]
;
then
#
# JENKINS_PUBLISHED_SKEW_VERSION downloads an alternate version of Kubernetes
# for testing, moving the old one to kubernetes_old.
#
# E2E_UPGRADE_TEST=true triggers a run of the e2e tests, to do something like
# upgrade the cluster, before the main test run. It uses
# GINKGO_UPGRADE_TESTS_ARGS for the test run.
#
# JENKINS_USE_SKEW_TESTS=true will run tests from the skewed version rather
# than the original version; it is mutuall exclusive with
# JENKINS_USE_SKEW_KUBECTL.
#
# JENKINS_USE_SKEW_KUBECTL=true will use the skewed version of Kubectl; it is
# mutually exclusive with JENKINS_USE_SKEW_TESTS.
if
[[
-n
"
${
JENKINS_PUBLISHED_SKEW_VERSION
:-}
"
]]
;
then
cd
..
mv
kubernetes kubernetes_old
fetch_published_version_tars
"
${
JENKINS_PUBLISHED_
TEST
_VERSION
}
"
fetch_published_version_tars
"
${
JENKINS_PUBLISHED_
SKEW
_VERSION
}
"
cd
kubernetes
# Upgrade the cluster before running other tests
if
[[
"
${
E2E_UPGRADE_TEST
:-}
"
==
"true"
]]
;
then
# Add a report prefix for the e2e tests so that the tests don't get overwritten when we run
# the rest of the e2es.
# Add a report prefix for the e2e tests so that the tests don't get overwritten when we run
# the rest of the e2es.
E2E_REPORT_PREFIX
=
'upgrade'
e2e_test
"
${
GINKGO_UPGRADE_TEST_ARGS
:-}
"
# If JENKINS_USE_OLD_TESTS is set, back out into the old tests now that we've upgraded.
if
[[
"
${
JENKINS_USE_OLD_TESTS
:-}
"
==
"true"
]]
;
then
cd
../kubernetes_old
fi
fi
if
[[
"
${
JENKINS_USE_SKEW_TESTS
:-}
"
!=
"true"
]]
;
then
# Back out into the old tests now that we've downloaded & maybe upgraded.
cd
../kubernetes_old
elif
[[
"
${
JENKINS_USE_SKEW_KUBECTL
:-}
"
==
"true"
]]
;
then
# Append kubectl-path of skewed kubectl to test args
GINKGO_TEST_ARGS
=
"
${
GINKGO_TEST_ARGS
:-}
--kubectl-path=
$(
pwd
)
/../kubernetes/cluster/kubectl.sh"
fi
fi
...
...
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