mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #129928 from mimowo/fix-job-int-test-1.32
Cherry-pick #129894 and #129913: Deflake job integration test 1.32
This commit is contained in:
commit
33ca881223
@ -713,7 +713,7 @@ func TestSuccessPolicy(t *testing.T) {
|
|||||||
wantFailed: 0,
|
wantFailed: 0,
|
||||||
wantSucceeded: 1,
|
wantSucceeded: 1,
|
||||||
wantCompletedIndexes: "1",
|
wantCompletedIndexes: "1",
|
||||||
wantTerminating: ptr.To[int32](1),
|
wantTerminating: ptr.To[int32](0),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
wantConditionTypes: []batchv1.JobConditionType{batchv1.JobSuccessCriteriaMet, batchv1.JobComplete},
|
wantConditionTypes: []batchv1.JobConditionType{batchv1.JobSuccessCriteriaMet, batchv1.JobComplete},
|
||||||
@ -760,7 +760,7 @@ func TestSuccessPolicy(t *testing.T) {
|
|||||||
wantFailed: 0,
|
wantFailed: 0,
|
||||||
wantSucceeded: 1,
|
wantSucceeded: 1,
|
||||||
wantCompletedIndexes: "1",
|
wantCompletedIndexes: "1",
|
||||||
wantTerminating: ptr.To[int32](1),
|
wantTerminating: ptr.To[int32](0),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
wantConditionTypes: []batchv1.JobConditionType{batchv1.JobSuccessCriteriaMet, batchv1.JobComplete},
|
wantConditionTypes: []batchv1.JobConditionType{batchv1.JobSuccessCriteriaMet, batchv1.JobComplete},
|
||||||
@ -1782,7 +1782,7 @@ func TestBackoffLimitPerIndex(t *testing.T) {
|
|||||||
},
|
},
|
||||||
wantFailed: 5,
|
wantFailed: 5,
|
||||||
wantFailedIndexes: ptr.To(""),
|
wantFailedIndexes: ptr.To(""),
|
||||||
wantTerminating: ptr.To[int32](2),
|
wantTerminating: ptr.To[int32](0),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
wantJobConditionType: batchv1.JobFailed,
|
wantJobConditionType: batchv1.JobFailed,
|
||||||
@ -1874,7 +1874,7 @@ func TestBackoffLimitPerIndex(t *testing.T) {
|
|||||||
wantActive: 0,
|
wantActive: 0,
|
||||||
wantFailed: 3,
|
wantFailed: 3,
|
||||||
wantFailedIndexes: ptr.To("0,1"),
|
wantFailedIndexes: ptr.To("0,1"),
|
||||||
wantTerminating: ptr.To[int32](1),
|
wantTerminating: ptr.To[int32](0),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
wantJobConditionType: batchv1.JobFailed,
|
wantJobConditionType: batchv1.JobFailed,
|
||||||
|
Loading…
Reference in New Issue
Block a user