Commit e005da69 authored by Guangya Liu's avatar Guangya Liu

Fixed test issue for image validation.

parent e31bcb97
...@@ -271,13 +271,6 @@ spec: ...@@ -271,13 +271,6 @@ spec:
Field: "name", Field: "name",
}, },
}, },
validation.ValidationError{
Path: "Pod.spec.containers[0]",
Err: validation.MissingRequiredFieldError{
Path: "io.k8s.api.core.v1.Container",
Field: "image",
},
},
}))) })))
}) })
...@@ -303,13 +296,6 @@ spec: ...@@ -303,13 +296,6 @@ spec:
Field: "name", Field: "name",
}, },
}, },
validation.ValidationError{
Path: "Pod.spec.containers[0]",
Err: validation.MissingRequiredFieldError{
Path: "io.k8s.api.core.v1.Container",
Field: "image",
},
},
}))) })))
}) })
...@@ -347,15 +333,6 @@ items: ...@@ -347,15 +333,6 @@ items:
- name: name - name: name
`)) `))
Expect(err).To(Equal(utilerrors.NewAggregate([]error{ Expect(err).To(BeNil())
validation.ValidationError{
Path: "Pod.spec.containers[0]",
Err: validation.MissingRequiredFieldError{
Path: "io.k8s.api.core.v1.Container",
Field: "image",
},
},
})))
}) })
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment