pod status should contain ContainerStatuses after eviction

This commit is contained in:
ceshihao
2018-06-28 11:52:08 +08:00
parent 4d4bb53fae
commit 3b9ed9afff
2 changed files with 8 additions and 7 deletions

View File

@@ -1472,6 +1472,8 @@ func TestSyncPodsSetStatusToFailedForPodsThatRunTooLong(t *testing.T) {
status, found := kubelet.statusManager.GetPodStatus(pods[0].UID)
assert.True(t, found, "expected to found status for pod %q", pods[0].UID)
assert.Equal(t, v1.PodFailed, status.Phase)
// check pod status contains ContainerStatuses, etc.
assert.NotNil(t, status.ContainerStatuses)
}
func TestSyncPodsDoesNotSetPodsThatDidNotRunTooLongToFailed(t *testing.T) {