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
6d33edda
Commit
6d33edda
authored
Oct 29, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip scheduleJob e2e test if it's not enabled on server
parent
a06a08a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
generated_clientset.go
test/e2e/generated_clientset.go
+17
-0
No files found.
test/e2e/generated_clientset.go
View file @
6d33edda
...
@@ -239,6 +239,23 @@ func newTestingScheduledJob(name string, value string) *v2alpha1.ScheduledJob {
...
@@ -239,6 +239,23 @@ func newTestingScheduledJob(name string, value string) *v2alpha1.ScheduledJob {
var
_
=
framework
.
KubeDescribe
(
"Generated release_1_5 clientset"
,
func
()
{
var
_
=
framework
.
KubeDescribe
(
"Generated release_1_5 clientset"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"clientset"
)
f
:=
framework
.
NewDefaultFramework
(
"clientset"
)
It
(
"should create v2alpha1 scheduleJobs, delete scheduleJobs, watch scheduleJobs"
,
func
()
{
It
(
"should create v2alpha1 scheduleJobs, delete scheduleJobs, watch scheduleJobs"
,
func
()
{
var
enabled
bool
groupList
,
err
:=
f
.
ClientSet_1_5
.
Discovery
()
.
ServerGroups
()
ExpectNoError
(
err
)
for
_
,
group
:=
range
groupList
.
Groups
{
if
group
.
Name
==
v2alpha1
.
GroupName
{
for
_
,
version
:=
range
group
.
Versions
{
if
version
.
Version
==
v2alpha1
.
SchemeGroupVersion
.
Version
{
enabled
=
true
break
}
}
}
}
if
!
enabled
{
framework
.
Logf
(
"%s is not enabled, test skipped"
,
v2alpha1
.
SchemeGroupVersion
)
return
}
scheduleJobClient
:=
f
.
ClientSet_1_5
.
BatchV2alpha1
()
.
ScheduledJobs
(
f
.
Namespace
.
Name
)
scheduleJobClient
:=
f
.
ClientSet_1_5
.
BatchV2alpha1
()
.
ScheduledJobs
(
f
.
Namespace
.
Name
)
By
(
"constructing the scheduledJob"
)
By
(
"constructing the scheduledJob"
)
name
:=
"scheduledjob"
+
string
(
uuid
.
NewUUID
())
name
:=
"scheduledjob"
+
string
(
uuid
.
NewUUID
())
...
...
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