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
4624d392
Commit
4624d392
authored
Sep 20, 2022
by
Derek Nola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add registry cache capability to upgradecluster_test.go
Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
parent
a060805c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
upgradecluster_test.go
tests/e2e/upgradecluster/upgradecluster_test.go
+4
-1
validatecluster_test.go
tests/e2e/validatecluster/validatecluster_test.go
+1
-0
No files found.
tests/e2e/upgradecluster/upgradecluster_test.go
View file @
4624d392
...
@@ -19,8 +19,11 @@ var nodeOS = flag.String("nodeOS", "generic/ubuntu2004", "VM operating system")
...
@@ -19,8 +19,11 @@ var nodeOS = flag.String("nodeOS", "generic/ubuntu2004", "VM operating system")
var
serverCount
=
flag
.
Int
(
"serverCount"
,
3
,
"number of server nodes"
)
var
serverCount
=
flag
.
Int
(
"serverCount"
,
3
,
"number of server nodes"
)
var
agentCount
=
flag
.
Int
(
"agentCount"
,
2
,
"number of agent nodes"
)
var
agentCount
=
flag
.
Int
(
"agentCount"
,
2
,
"number of agent nodes"
)
var
hardened
=
flag
.
Bool
(
"hardened"
,
false
,
"true or false"
)
var
hardened
=
flag
.
Bool
(
"hardened"
,
false
,
"true or false"
)
var
ci
=
flag
.
Bool
(
"ci"
,
false
,
"running on CI"
)
// Environment Variables Info:
// Environment Variables Info:
// E2E_REGISTRY: true/false (default: false)
// Controls which K3s version is installed first, upgrade is always to latest commit
// E2E_RELEASE_VERSION=v1.23.3+k3s1
// E2E_RELEASE_VERSION=v1.23.3+k3s1
// OR
// OR
// E2E_RELEASE_CHANNEL=(commit|latest|stable), commit pulls latest commit from master
// E2E_RELEASE_CHANNEL=(commit|latest|stable), commit pulls latest commit from master
...
@@ -379,7 +382,7 @@ var _ = AfterEach(func() {
...
@@ -379,7 +382,7 @@ var _ = AfterEach(func() {
})
})
var
_
=
AfterSuite
(
func
()
{
var
_
=
AfterSuite
(
func
()
{
if
failed
{
if
failed
&&
!*
ci
{
fmt
.
Println
(
"FAILED!"
)
fmt
.
Println
(
"FAILED!"
)
}
else
{
}
else
{
Expect
(
e2e
.
DestroyCluster
())
.
To
(
Succeed
())
Expect
(
e2e
.
DestroyCluster
())
.
To
(
Succeed
())
...
...
tests/e2e/validatecluster/validatecluster_test.go
View file @
4624d392
...
@@ -25,6 +25,7 @@ var local = flag.Bool("local", false, "deploy a locally built K3s binary")
...
@@ -25,6 +25,7 @@ var local = flag.Bool("local", false, "deploy a locally built K3s binary")
// Environment Variables Info:
// Environment Variables Info:
// E2E_EXTERNAL_DB: mysql, postgres, etcd (default: etcd)
// E2E_EXTERNAL_DB: mysql, postgres, etcd (default: etcd)
// E2E_RELEASE_VERSION=v1.23.1+k3s2 (default: latest commit from master)
// E2E_RELEASE_VERSION=v1.23.1+k3s2 (default: latest commit from master)
// E2E_REGISTRY: true/false (default: false)
func
Test_E2EClusterValidation
(
t
*
testing
.
T
)
{
func
Test_E2EClusterValidation
(
t
*
testing
.
T
)
{
RegisterFailHandler
(
Fail
)
RegisterFailHandler
(
Fail
)
...
...
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