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
6f29fd99
Commit
6f29fd99
authored
May 11, 2017
by
zhengjiajin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small change to view more test info
parent
996200b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
kubectl.go
test/e2e/kubectl.go
+3
-2
No files found.
test/e2e/kubectl.go
View file @
6f29fd99
...
...
@@ -214,14 +214,15 @@ var _ = framework.KubeDescribe("Kubectl alpha client", func() {
framework
.
Failf
(
"Failed getting ScheduledJob %s: %v"
,
sjName
,
err
)
}
if
sj
.
Spec
.
Schedule
!=
schedule
{
framework
.
Failf
(
"Failed creating a ScheduledJob with correct schedule %s
"
,
s
chedule
)
framework
.
Failf
(
"Failed creating a ScheduledJob with correct schedule %s
, but got %s"
,
schedule
,
sj
.
Spec
.
S
chedule
)
}
containers
:=
sj
.
Spec
.
JobTemplate
.
Spec
.
Template
.
Spec
.
Containers
if
containers
==
nil
||
len
(
containers
)
!=
1
||
containers
[
0
]
.
Image
!=
busyboxImage
{
framework
.
Failf
(
"Failed creating ScheduledJob %s for 1 pod with expected image %s: %#v"
,
sjName
,
busyboxImage
,
containers
)
}
restartPolicy
:=
sj
.
Spec
.
JobTemplate
.
Spec
.
Template
.
Spec
.
RestartPolicy
if
sj
.
Spec
.
JobTemplate
.
Spec
.
Template
.
Spec
.
RestartPolicy
!=
v1
.
RestartPolicyOnFailure
{
framework
.
Failf
(
"Failed creating a ScheduledJob with correct restart policy
for --restart=OnFailure"
)
framework
.
Failf
(
"Failed creating a ScheduledJob with correct restart policy
%s, but got %s"
,
v1
.
RestartPolicyOnFailure
,
restartPolicy
)
}
})
})
...
...
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