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
bab89e95
Commit
bab89e95
authored
Feb 19, 2016
by
Eric Tune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix jobs integration test.
parent
da44473a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
master_test.go
test/integration/master_test.go
+16
-4
No files found.
test/integration/master_test.go
View file @
bab89e95
...
@@ -245,6 +245,16 @@ var jobV1 string = `
...
@@ -245,6 +245,16 @@ var jobV1 string = `
}
}
`
`
var
deleteResp
string
=
`
{
"kind": "Status",
"apiVersion": "v1",
"metadata":{},
"status":"Success",
"code":200
}
`
// TestBatchGroupBackwardCompatibility is testing that batch/v1 and ext/v1beta1
// TestBatchGroupBackwardCompatibility is testing that batch/v1 and ext/v1beta1
// Job share storage. This test can be deleted when Jobs is removed from ext/v1beta1,
// Job share storage. This test can be deleted when Jobs is removed from ext/v1beta1,
// (expected to happen in 1.4).
// (expected to happen in 1.4).
...
@@ -262,12 +272,14 @@ func TestBatchGroupBackwardCompatibility(t *testing.T) {
...
@@ -262,12 +272,14 @@ func TestBatchGroupBackwardCompatibility(t *testing.T) {
}{
}{
// Post a v1 and get back both as v1beta1 and as v1.
// Post a v1 and get back both as v1beta1 and as v1.
{
"POST"
,
batchPath
(
"jobs"
,
api
.
NamespaceDefault
,
""
),
jobV1
,
code201
,
""
},
{
"POST"
,
batchPath
(
"jobs"
,
api
.
NamespaceDefault
,
""
),
jobV1
,
code201
,
""
},
{
"GET"
,
batchPath
(
"jobs"
,
api
.
NamespaceDefault
,
""
),
""
,
code200
,
testapi
.
Batch
.
GroupVersion
()
.
String
()},
{
"GET"
,
batchPath
(
"jobs"
,
api
.
NamespaceDefault
,
"pi"
),
""
,
code200
,
testapi
.
Batch
.
GroupVersion
()
.
String
()},
{
"GET"
,
extensionsPath
(
"jobs"
,
api
.
NamespaceDefault
,
""
),
""
,
code200
,
testapi
.
Extensions
.
GroupVersion
()
.
String
()},
{
"GET"
,
extensionsPath
(
"jobs"
,
api
.
NamespaceDefault
,
"pi"
),
""
,
code200
,
testapi
.
Extensions
.
GroupVersion
()
.
String
()},
{
"DELETE"
,
batchPath
(
"jobs"
,
api
.
NamespaceDefault
,
"pi"
),
""
,
code200
,
testapi
.
Default
.
GroupVersion
()
.
String
()},
// status response
// Post a v1beta1 and get back both as v1beta1 and as v1.
// Post a v1beta1 and get back both as v1beta1 and as v1.
{
"POST"
,
extensionsPath
(
"jobs"
,
api
.
NamespaceDefault
,
""
),
jobV1beta1
,
code201
,
""
},
{
"POST"
,
extensionsPath
(
"jobs"
,
api
.
NamespaceDefault
,
""
),
jobV1beta1
,
code201
,
""
},
{
"GET"
,
batchPath
(
"jobs"
,
api
.
NamespaceDefault
,
""
),
""
,
code200
,
testapi
.
Batch
.
GroupVersion
()
.
String
()},
{
"GET"
,
batchPath
(
"jobs"
,
api
.
NamespaceDefault
,
"pi"
),
""
,
code200
,
testapi
.
Batch
.
GroupVersion
()
.
String
()},
{
"GET"
,
extensionsPath
(
"jobs"
,
api
.
NamespaceDefault
,
""
),
""
,
code200
,
testapi
.
Extensions
.
GroupVersion
()
.
String
()},
{
"GET"
,
extensionsPath
(
"jobs"
,
api
.
NamespaceDefault
,
"pi"
),
""
,
code200
,
testapi
.
Extensions
.
GroupVersion
()
.
String
()},
{
"DELETE"
,
extensionsPath
(
"jobs"
,
api
.
NamespaceDefault
,
"pi"
),
""
,
code200
,
testapi
.
Default
.
GroupVersion
()
.
String
()},
//status response
}
}
for
_
,
r
:=
range
requests
{
for
_
,
r
:=
range
requests
{
...
...
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