Add check for unmarshalling onto a Pod object type
This commit is contained in:
@@ -946,7 +946,8 @@ var _ = framework.KubeDescribe("Pods", func() {
|
|||||||
podStatusBytes, err := json.Marshal(podStatusUnstructured)
|
podStatusBytes, err := json.Marshal(podStatusUnstructured)
|
||||||
framework.ExpectNoError(err, "failed to marshal unstructured response")
|
framework.ExpectNoError(err, "failed to marshal unstructured response")
|
||||||
var podStatus v1.Pod
|
var podStatus v1.Pod
|
||||||
json.Unmarshal(podStatusBytes, &podStatus)
|
err = json.Unmarshal(podStatusBytes, &podStatus)
|
||||||
|
framework.ExpectNoError(err, "failed to unmarshal JSON bytes to a Pod object type")
|
||||||
|
|
||||||
ginkgo.By("replacing the Pod's status Ready condition to False")
|
ginkgo.By("replacing the Pod's status Ready condition to False")
|
||||||
podStatusUpdated := podStatus
|
podStatusUpdated := podStatus
|
||||||
|
Reference in New Issue
Block a user