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
d3c675f4
Unverified
Commit
d3c675f4
authored
Oct 31, 2022
by
ShylajaDevadiga
Committed by
GitHub
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand nightly E2E tests (#6354)
Signed-off-by:
Shylaja Devadiga
<
shylaja@rancher.com
>
parent
ce5dfdfa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
9 deletions
+28
-9
clusterreset_test.go
tests/e2e/clusterreset/clusterreset_test.go
+1
-1
docker_test.go
tests/e2e/docker/docker_test.go
+1
-1
dualstack_test.go
tests/e2e/dualstack/dualstack_test.go
+1
-1
run_tests.sh
tests/e2e/scripts/run_tests.sh
+23
-4
splitserver_test.go
tests/e2e/splitserver/splitserver_test.go
+1
-1
upgradecluster_test.go
tests/e2e/upgradecluster/upgradecluster_test.go
+1
-1
No files found.
tests/e2e/clusterreset/clusterreset_test.go
View file @
d3c675f4
...
...
@@ -29,7 +29,7 @@ var local = flag.Bool("local", false, "deploy a locally built K3s binary")
func
Test_E2EClusterReset
(
t
*
testing
.
T
)
{
RegisterFailHandler
(
Fail
)
flag
.
Parse
()
RunSpecs
(
t
,
"C
reate C
lusterReset Test Suite"
)
RunSpecs
(
t
,
"ClusterReset Test Suite"
)
}
var
(
...
...
tests/e2e/docker/docker_test.go
View file @
d3c675f4
...
...
@@ -23,7 +23,7 @@ var agentCount = flag.Int("agentCount", 1, "number of agent nodes")
func
Test_E2EClusterValidation
(
t
*
testing
.
T
)
{
RegisterFailHandler
(
Fail
)
flag
.
Parse
()
RunSpecs
(
t
,
"
Create Cluster
Test Suite"
)
RunSpecs
(
t
,
"
Docker CRI
Test Suite"
)
}
var
(
...
...
tests/e2e/dualstack/dualstack_test.go
View file @
d3c675f4
...
...
@@ -21,7 +21,7 @@ var hardened = flag.Bool("hardened", false, "true or false")
func
Test_E2EDualStack
(
t
*
testing
.
T
)
{
flag
.
Parse
()
RegisterFailHandler
(
Fail
)
RunSpecs
(
t
,
"
Validate
DualStack Suite"
)
RunSpecs
(
t
,
"DualStack Suite"
)
}
var
(
...
...
tests/e2e/scripts/run_tests.sh
View file @
d3c675f4
...
...
@@ -13,19 +13,38 @@ eval openvpn --daemon --config external.ovpn &>/dev/null &
sleep
10
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s && git pull --rebase origin master'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s && go mod tidy'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s && /usr/local/go/bin/go mod tidy'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e/dualstack && vagrant global-status | awk '/running/'|cut -c1-7| xargs -r -d '
\n
' -n 1 -- vagrant destroy -f"
echo
"RUNNING DUALSTACK VALIDATION TEST"
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && E2E_HARDENED="
$hardened
" /usr/local/go/bin/go test -v dualstack/dualstack_test.go -nodeOS="
$4
" -serverCount=
$((
servercount
))
-agentCount=
$((
agentcount
))
-timeout=1h"
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s/tests/e2e/dualstack && vagrant destroy -f'
echo
'RUNNING CLUSTER VALIDATION TEST'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && E2E_REGISTRY=true E2E_HARDENED="
$hardened
" /usr/local/go/bin/go test -v validatecluster/validatecluster_test.go -nodeOS="
$4
" -serverCount=
$((
servercount
))
-agentCount=
$((
agentcount
))
-timeout=1h"
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s/tests/e2e/validatecluster && vagrant destroy -f'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && E2E_HARDENED="
$hardened
" /usr/local/go/bin/go test -v validatecluster/validatecluster_test.go -nodeOS="
$4
" -serverCount=
$((
servercount
))
-agentCount=
$((
agentcount
))
-timeout=1h"
echo
'RUNNING SECRETS ENCRYPTION TEST'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s/tests/e2e/secretsencryption && vagrant destroy -f'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && /usr/local/go/bin/go test -v secretsencryption/secretsencryption_test.go -nodeOS="
$4
" -serverCount=
$((
servercount
))
-timeout=1h"
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s/tests/e2e/secretsencryption && vagrant destroy -f'
echo
'RUN CLUSTER RESET TEST'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && /usr/local/go/bin/go test -v clusterreset/clusterreset_test.go -nodeOS="
$4
" -serverCount=3 -agentCount=1 -timeout=1h"
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s/tests/e2e/clusterreset && vagrant destroy -f'
echo
'RUNNING SPLIT SERVER VALIDATION TEST'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && E2E_HARDENED="
$hardened
" /usr/local/go/bin/go test -v splitserver/splitserver_test.go -nodeOS="
$4
" -timeout=1h"
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s/tests/e2e/splitserver && vagrant destroy -f'
E2E_RELEASE_VERSION
=
$k3s_version
&&
export
E2E_RELEASE_VERSION
E2E_RELEASE_CHANNEL
=
$k3s_channel
&&
export
E2E_RELEASE_CHANNEL
echo
'RUNNING CLUSTER UPGRADE TEST'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && E2E_REGISTRY=true /usr/local/go/bin/go test -v upgradecluster/upgradecluster_test.go -nodeOS="
$4
" -serverCount=
$((
servercount
))
-agentCount=
$((
agentcount
))
-timeout=1h"
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s/tests/e2e/upgradecluster && vagrant destroy -f'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && /usr/local/go/bin/go test -v upgradecluster/upgradecluster_test.go -nodeOS="
$4
" -serverCount=
$((
servercount
))
-agentCount=
$((
agentcount
))
-timeout=1h"
echo
'RUNNING DOCKER CRI VALIDATION TEST'
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
"cd k3s/tests/e2e && /usr/local/go/bin/go test -v docker/docker_test.go -nodeOS="
$4
" -serverCount=1 -agentCount=1 -timeout=1h"
ssh
-i
"
$1
"
-o
"StrictHostKeyChecking no"
$2
@
$3
'cd k3s/tests/e2e/docker && vagrant destroy -f'
tests/e2e/splitserver/splitserver_test.go
View file @
d3c675f4
package
validateclust
er
package
splitserv
er
import
(
"flag"
...
...
tests/e2e/upgradecluster/upgradecluster_test.go
View file @
d3c675f4
...
...
@@ -31,7 +31,7 @@ var ci = flag.Bool("ci", false, "running on CI")
func
Test_E2EUpgradeValidation
(
t
*
testing
.
T
)
{
RegisterFailHandler
(
Fail
)
flag
.
Parse
()
RunSpecs
(
t
,
"
Creat
e Cluster Test Suite"
)
RunSpecs
(
t
,
"
Upgrad
e Cluster Test Suite"
)
}
var
(
...
...
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