Skip to content

Commit

Permalink
Skip resource list unit test
Browse files Browse the repository at this point in the history
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 kubernetes/client-go#983
  • Loading branch information
adambkaplan authored and HeavyWombat committed Jul 8, 2021
1 parent 3a64b5f commit 255908f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/shp/resource/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 255908f

Please sign in to comment.