Merge pull request #93985 from MHBauer/fixes-93905

update test to match validation filter of pods
This commit is contained in:
Kubernetes Prow Robot 2020-09-02 09:03:21 -07:00 committed by GitHub
commit 90723ebbae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,8 +189,8 @@ func TestInvalidPodFiltered(t *testing.T) {
channel <- podUpdate
expectPodUpdate(t, ch, CreatePodUpdate(kubetypes.ADD, TestSource, CreateValidPod("foo", "new")))
// add an invalid update
podUpdate = CreatePodUpdate(kubetypes.UPDATE, TestSource, &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo"}})
// add an invalid update, pod with the same name
podUpdate = CreatePodUpdate(kubetypes.ADD, TestSource, CreateValidPod("foo", "new"))
channel <- podUpdate
expectNoPodUpdate(t, ch)
}