Skip to content

Commit

Permalink
Add fakeUILogger
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Eckert committed Nov 1, 2022
1 parent 63aaf5b commit 8c02cf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/cmd/uninstall/uninstall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func TestDeleteCustomResources(t *testing.T) {
require.NoError(t, err)
require.Len(t, actual, 1)

err = c.deleteCustomResources([]unstructured.Unstructured{cr}, mapCRKindToResourceName(crds))
err = c.deleteCustomResources([]unstructured.Unstructured{cr}, mapCRKindToResourceName(crds), fakeUILogger)
require.NoError(t, err)

actual, err = c.fetchCustomResources(crds)
Expand Down Expand Up @@ -543,7 +543,7 @@ func TestPatchCustomResources(t *testing.T) {
crds, err := c.fetchCustomResourceDefinitions()
require.NoError(t, err)

err = c.patchCustomResources([]unstructured.Unstructured{cr}, mapCRKindToResourceName(crds))
err = c.patchCustomResources([]unstructured.Unstructured{cr}, mapCRKindToResourceName(crds), fakeUILogger)
require.NoError(t, err)

actual, err := c.fetchCustomResources(crds)
Expand Down Expand Up @@ -868,3 +868,5 @@ func createClientsWithCrds() (apiext.Interface, dynamic.Interface) {
}
return apiextFake.NewSimpleClientset(&crds), dynamicFake.NewSimpleDynamicClientWithCustomListKinds(runtime.NewScheme(), grvToListKind)
}

func fakeUILogger(s string, i ...interface{}) {}

0 comments on commit 8c02cf2

Please sign in to comment.