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
0a9a8aa4
Commit
0a9a8aa4
authored
Jul 23, 2015
by
Marcin Wielgus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E test for kubectl version
parent
8f3c3108
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
kubectl.go
test/e2e/kubectl.go
+12
-0
No files found.
test/e2e/kubectl.go
View file @
0a9a8aa4
...
...
@@ -283,6 +283,18 @@ var _ = Describe("Kubectl client", func() {
})
})
})
Describe
(
"Kubectl version"
,
func
()
{
It
(
"should check is all data is printed"
,
func
()
{
version
:=
runKubectl
(
"version"
)
requiredItems
:=
[]
string
{
"Client Version:"
,
"Server Version:"
,
"Major:"
,
"Minor:"
,
"GitCommit:"
}
for
_
,
item
:=
range
requiredItems
{
if
!
strings
.
Contains
(
version
,
item
)
{
Failf
(
"Required item %s not found in %s"
,
item
,
version
)
}
}
})
})
})
func
curl
(
addr
string
)
(
string
,
error
)
{
...
...
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