From f544b2700ab48a7ee99c76d57446a652991d853c Mon Sep 17 00:00:00 2001 From: Rashmi Gottipati Date: Wed, 21 Jun 2023 09:58:52 -0400 Subject: [PATCH] Enable feature gate in unit test Signed-off-by: Rashmi Gottipati --- pkg/controllers/core/catalog_controller_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/controllers/core/catalog_controller_test.go b/pkg/controllers/core/catalog_controller_test.go index a7ca8ce8..20f8ba18 100644 --- a/pkg/controllers/core/catalog_controller_test.go +++ b/pkg/controllers/core/catalog_controller_test.go @@ -49,6 +49,12 @@ var _ = Describe("Catalogd Controller Test", func() { ) BeforeEach(func() { ctx = context.Background() + if err := features.CatalogdFeatureGate.Set("PackagesBundleMetadataAPIs=true"); err != nil { + Expect(err).NotTo(HaveOccurred()) + } + if err := features.CatalogdFeatureGate.Set("CatalogMetadataAPI=true"); err != nil { + Expect(err).NotTo(HaveOccurred()) + } mockSource = &MockSource{} reconciler = &core.CatalogReconciler{ Client: cl,