From fbd8e9aa52a6d5a25280831c0eee5494efcc3ed7 Mon Sep 17 00:00:00 2001 From: Harsimran Singh Maan Date: Tue, 22 Feb 2022 16:05:40 -0800 Subject: [PATCH] fix failing test assertions Kubernetes-commit: c8714ebd118760f8d68e9b536d0350129af12d9b --- dynamic/fake/simple_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dynamic/fake/simple_test.go b/dynamic/fake/simple_test.go index 2bbf3221..567951a5 100644 --- a/dynamic/fake/simple_test.go +++ b/dynamic/fake/simple_test.go @@ -335,6 +335,8 @@ func TestListWithUnstructuredObjectsAndTypedScheme(t *testing.T) { expectedList := &unstructured.UnstructuredList{} expectedList.SetGroupVersionKind(listGVK) expectedList.SetResourceVersion("") // by product of the fake setting resource version + expectedList.SetContinue("") + expectedList.SetSelfLink("") expectedList.Items = append(expectedList.Items, u) if diff := cmp.Diff(expectedList, list); diff != "" { @@ -363,6 +365,8 @@ func TestListWithNoFixturesAndTypedScheme(t *testing.T) { expectedList := &unstructured.UnstructuredList{} expectedList.SetGroupVersionKind(listGVK) expectedList.SetResourceVersion("") // by product of the fake setting resource version + expectedList.SetContinue("") + expectedList.SetSelfLink("") if diff := cmp.Diff(expectedList, list); diff != "" { t.Fatal("unexpected diff (-want, +got): ", diff) @@ -395,6 +399,8 @@ func TestListWithNoScheme(t *testing.T) { expectedList := &unstructured.UnstructuredList{} expectedList.SetGroupVersionKind(listGVK) expectedList.SetResourceVersion("") // by product of the fake setting resource version + expectedList.SetContinue("") + expectedList.SetSelfLink("") expectedList.Items = append(expectedList.Items, u) if diff := cmp.Diff(expectedList, list); diff != "" { @@ -437,6 +443,8 @@ func TestListWithTypedFixtures(t *testing.T) { expectedList := &unstructured.UnstructuredList{} expectedList.SetGroupVersionKind(listGVK) expectedList.SetResourceVersion("") // by product of the fake setting resource version + expectedList.SetContinue("") + expectedList.SetSelfLink("") expectedList.Items = []unstructured.Unstructured{u} if diff := cmp.Diff(expectedList, list); diff != "" {