mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Job: Fix test case names for the validations
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
This commit is contained in:
parent
6049a1bca4
commit
cc515bd8f1
@ -1421,7 +1421,7 @@ func TestValidateJobUpdate(t *testing.T) {
|
|||||||
Field: "spec.podFailurePolicy",
|
Field: "spec.podFailurePolicy",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"remove pod failure policy": {
|
"update pod failure policy": {
|
||||||
old: batch.Job{
|
old: batch.Job{
|
||||||
ObjectMeta: metav1.ObjectMeta{Name: "abc", Namespace: metav1.NamespaceDefault},
|
ObjectMeta: metav1.ObjectMeta{Name: "abc", Namespace: metav1.NamespaceDefault},
|
||||||
Spec: batch.JobSpec{
|
Spec: batch.JobSpec{
|
||||||
@ -1452,7 +1452,7 @@ func TestValidateJobUpdate(t *testing.T) {
|
|||||||
Field: "spec.podFailurePolicy",
|
Field: "spec.podFailurePolicy",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"update pod failure policy": {
|
"remove pod failure policy": {
|
||||||
old: batch.Job{
|
old: batch.Job{
|
||||||
ObjectMeta: metav1.ObjectMeta{Name: "abc", Namespace: metav1.NamespaceDefault},
|
ObjectMeta: metav1.ObjectMeta{Name: "abc", Namespace: metav1.NamespaceDefault},
|
||||||
Spec: batch.JobSpec{
|
Spec: batch.JobSpec{
|
||||||
|
Loading…
Reference in New Issue
Block a user