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
c3ac9fb1
Unverified
Commit
c3ac9fb1
authored
Apr 12, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74791 from globervinodhn/job_delete_promote
Promote graceful job deletion e2e test to conformance test
parents
c48a16a6
c52a27f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
conformance.txt
test/conformance/testdata/conformance.txt
+1
-0
job.go
test/e2e/apps/job.go
+6
-1
No files found.
test/conformance/testdata/conformance.txt
View file @
c3ac9fb1
...
@@ -23,6 +23,7 @@ test/e2e/apps/deployment.go: "RecreateDeployment should delete old pods and crea
...
@@ -23,6 +23,7 @@ test/e2e/apps/deployment.go: "RecreateDeployment should delete old pods and crea
test/e2e/apps/deployment.go: "deployment should delete old replica sets"
test/e2e/apps/deployment.go: "deployment should delete old replica sets"
test/e2e/apps/deployment.go: "deployment should support rollover"
test/e2e/apps/deployment.go: "deployment should support rollover"
test/e2e/apps/deployment.go: "deployment should support proportional scaling"
test/e2e/apps/deployment.go: "deployment should support proportional scaling"
test/e2e/apps/job.go: "should delete a job"
test/e2e/apps/rc.go: "should serve a basic image on each replica with a public image"
test/e2e/apps/rc.go: "should serve a basic image on each replica with a public image"
test/e2e/apps/rc.go: "should adopt matching pods on creation"
test/e2e/apps/rc.go: "should adopt matching pods on creation"
test/e2e/apps/rc.go: "should release no longer matching pods"
test/e2e/apps/rc.go: "should release no longer matching pods"
...
...
test/e2e/apps/job.go
View file @
c3ac9fb1
...
@@ -100,7 +100,12 @@ var _ = SIGDescribe("Job", func() {
...
@@ -100,7 +100,12 @@ var _ = SIGDescribe("Job", func() {
Expect
(
err
)
.
NotTo
(
HaveOccurred
(),
"failed to ensure job past active deadline in namespace: %s"
,
f
.
Namespace
.
Name
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
(),
"failed to ensure job past active deadline in namespace: %s"
,
f
.
Namespace
.
Name
)
})
})
It
(
"should delete a job"
,
func
()
{
/*
Release : v1.15
Testname: Jobs, active pods, graceful termination
Description: Create a job. Ensure the active pods reflect paralellism in the namespace and delete the job. Job MUST be deleted successfully.
*/
framework
.
ConformanceIt
(
"should delete a job"
,
func
()
{
By
(
"Creating a job"
)
By
(
"Creating a job"
)
job
:=
jobutil
.
NewTestJob
(
"notTerminate"
,
"foo"
,
v1
.
RestartPolicyNever
,
parallelism
,
completions
,
nil
,
backoffLimit
)
job
:=
jobutil
.
NewTestJob
(
"notTerminate"
,
"foo"
,
v1
.
RestartPolicyNever
,
parallelism
,
completions
,
nil
,
backoffLimit
)
job
,
err
:=
jobutil
.
CreateJob
(
f
.
ClientSet
,
f
.
Namespace
.
Name
,
job
)
job
,
err
:=
jobutil
.
CreateJob
(
f
.
ClientSet
,
f
.
Namespace
.
Name
,
job
)
...
...
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