From 255908fb1d6a1e561574bed1bed6d43c7cbe0d27 Mon Sep 17 00:00:00 2001 From: Adam Kaplan Date: Thu, 10 Jun 2021 13:38:20 -0400 Subject: [PATCH] Skip resource list unit test k8s 1.20's fake dynamic client returns an error trying to convert an unstructured type to the list's underlying type. Skipping the resource list unit test until the fake dynamic client is fixed upstream. See https://github.com/kubernetes/client-go/issues/983 --- pkg/shp/resource/resource_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/shp/resource/resource_test.go b/pkg/shp/resource/resource_test.go index 90ff211e6..16eb0b946 100644 --- a/pkg/shp/resource/resource_test.go +++ b/pkg/shp/resource/resource_test.go @@ -46,6 +46,8 @@ func TestResource(t *testing.T) { }) t.Run("Resource List", func(t *testing.T) { + // See https://github.com/kubernetes/client-go/issues/983 + t.Skip("k8s 1.20: resource.List fails, can't assign or convert unstructured.Unstructured into v1alpha1.Build") var buildList buildv1alpha1.BuildList err = buildResource.List(context.TODO(), &buildList)