From 8dc27e4b6639ce33a503d47fd5251509554bf116 Mon Sep 17 00:00:00 2001 From: Arko Dasgupta Date: Wed, 18 Oct 2023 21:43:17 -0700 Subject: [PATCH] add scheme in conformance test Signed-off-by: Arko Dasgupta --- test/conformance/conformance_test.go | 2 ++ test/conformance/experimental_conformance_test.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/test/conformance/conformance_test.go b/test/conformance/conformance_test.go index aa62bce887c..731b4a4d1a5 100644 --- a/test/conformance/conformance_test.go +++ b/test/conformance/conformance_test.go @@ -18,6 +18,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/config" "sigs.k8s.io/gateway-api/apis/v1" "sigs.k8s.io/gateway-api/apis/v1alpha2" + "sigs.k8s.io/gateway-api/apis/v1beta1" "sigs.k8s.io/gateway-api/conformance/tests" "sigs.k8s.io/gateway-api/conformance/utils/flags" "sigs.k8s.io/gateway-api/conformance/utils/suite" @@ -36,6 +37,7 @@ func TestGatewayAPIConformance(t *testing.T) { require.NoError(t, err) require.NoError(t, v1alpha2.AddToScheme(client.Scheme())) + require.NoError(t, v1beta1.AddToScheme(client.Scheme())) require.NoError(t, v1.AddToScheme(client.Scheme())) cSuite := suite.New(suite.Options{ diff --git a/test/conformance/experimental_conformance_test.go b/test/conformance/experimental_conformance_test.go index c0443ab9e2f..7857960762a 100644 --- a/test/conformance/experimental_conformance_test.go +++ b/test/conformance/experimental_conformance_test.go @@ -22,6 +22,7 @@ import ( "sigs.k8s.io/gateway-api/apis/v1" "sigs.k8s.io/gateway-api/apis/v1alpha2" + "sigs.k8s.io/gateway-api/apis/v1beta1" confv1a1 "sigs.k8s.io/gateway-api/conformance/apis/v1alpha1" "sigs.k8s.io/gateway-api/conformance/tests" "sigs.k8s.io/gateway-api/conformance/utils/flags" @@ -53,6 +54,8 @@ func TestExperimentalConformance(t *testing.T) { err = v1alpha2.AddToScheme(mgrClient.Scheme()) assert.NoError(t, err) + err = v1beta1.AddToScheme(client.Scheme()) + assert.NoError(t, err) err = v1.AddToScheme(mgrClient.Scheme()) assert.NoError(t, err)