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
9efa0797
Unverified
Commit
9efa0797
authored
Feb 13, 2023
by
Derek Nola
Committed by
GitHub
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't default to local K3s for startup test (#6950)
Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
parent
7739c8b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
startup_test.go
tests/e2e/startup/startup_test.go
+6
-1
No files found.
tests/e2e/startup/startup_test.go
View file @
9efa0797
...
@@ -15,6 +15,7 @@ import (
...
@@ -15,6 +15,7 @@ import (
// Valid nodeOS: generic/ubuntu2004, opensuse/Leap-15.3.x86_64
// Valid nodeOS: generic/ubuntu2004, opensuse/Leap-15.3.x86_64
var
nodeOS
=
flag
.
String
(
"nodeOS"
,
"generic/ubuntu2004"
,
"VM operating system"
)
var
nodeOS
=
flag
.
String
(
"nodeOS"
,
"generic/ubuntu2004"
,
"VM operating system"
)
var
ci
=
flag
.
Bool
(
"ci"
,
false
,
"running on CI"
)
var
ci
=
flag
.
Bool
(
"ci"
,
false
,
"running on CI"
)
var
local
=
flag
.
Bool
(
"local"
,
false
,
"deploy a locally built K3s binary"
)
// Environment Variables Info:
// Environment Variables Info:
// E2E_RELEASE_VERSION=v1.23.1+k3s2 or nil for latest commit from master
// E2E_RELEASE_VERSION=v1.23.1+k3s2 or nil for latest commit from master
...
@@ -80,7 +81,11 @@ var _ = Describe("Various Startup Configurations", Ordered, func() {
...
@@ -80,7 +81,11 @@ var _ = Describe("Various Startup Configurations", Ordered, func() {
Context
(
"Verify CRI-Dockerd :"
,
func
()
{
Context
(
"Verify CRI-Dockerd :"
,
func
()
{
It
(
"Stands up the nodes"
,
func
()
{
It
(
"Stands up the nodes"
,
func
()
{
var
err
error
var
err
error
serverNodeNames
,
agentNodeNames
,
err
=
e2e
.
CreateLocalCluster
(
*
nodeOS
,
1
,
1
)
if
*
local
{
serverNodeNames
,
agentNodeNames
,
err
=
e2e
.
CreateLocalCluster
(
*
nodeOS
,
1
,
1
)
}
else
{
serverNodeNames
,
agentNodeNames
,
err
=
e2e
.
CreateCluster
(
*
nodeOS
,
1
,
1
)
}
Expect
(
err
)
.
NotTo
(
HaveOccurred
(),
e2e
.
GetVagrantLog
(
err
))
Expect
(
err
)
.
NotTo
(
HaveOccurred
(),
e2e
.
GetVagrantLog
(
err
))
})
})
It
(
"Starts K3s with no issues"
,
func
()
{
It
(
"Starts K3s with no issues"
,
func
()
{
...
...
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