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
7e9cae85
Commit
7e9cae85
authored
May 17, 2016
by
Dan Lorenc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a flag that lets e2e tests be run against single-node clusters.
parent
5df28fa1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
e2e.go
hack/e2e.go
+6
-0
No files found.
hack/e2e.go
View file @
7e9cae85
...
@@ -44,6 +44,10 @@ var (
...
@@ -44,6 +44,10 @@ var (
"By default, verify that client and server have exact version match. "
+
"By default, verify that client and server have exact version match. "
+
"You can explicitly set to false if you're, e.g., testing client changes "
+
"You can explicitly set to false if you're, e.g., testing client changes "
+
"for which the server version doesn't make a difference."
)
"for which the server version doesn't make a difference."
)
checkNodeCount
=
flag
.
Bool
(
"check_node_count"
,
true
,
""
+
"By default, verify that the cluster has at least two nodes."
+
"You can explicitly set to false if you're, e.g., testing single-node clusters "
+
"for which the node count is supposed to be one."
)
ctlCmd
=
flag
.
String
(
"ctl"
,
""
,
"If nonempty, pass this as an argument, and call kubectl. Implies -v. (-test, -cfg, -ctl are mutually exclusive)"
)
ctlCmd
=
flag
.
String
(
"ctl"
,
""
,
"If nonempty, pass this as an argument, and call kubectl. Implies -v. (-test, -cfg, -ctl are mutually exclusive)"
)
)
)
...
@@ -181,7 +185,9 @@ func Test() bool {
...
@@ -181,7 +185,9 @@ func Test() bool {
log
.
Fatal
(
"Testing requested, but e2e cluster not up!"
)
log
.
Fatal
(
"Testing requested, but e2e cluster not up!"
)
}
}
if
*
checkNodeCount
{
ValidateClusterSize
()
ValidateClusterSize
()
}
return
finishRunning
(
"Ginkgo tests"
,
exec
.
Command
(
filepath
.
Join
(
*
root
,
"hack/ginkgo-e2e.sh"
),
strings
.
Fields
(
*
testArgs
)
...
))
return
finishRunning
(
"Ginkgo tests"
,
exec
.
Command
(
filepath
.
Join
(
*
root
,
"hack/ginkgo-e2e.sh"
),
strings
.
Fields
(
*
testArgs
)
...
))
}
}
...
...
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