From b18fabb2754064300ecd808762559fc2fca4ff43 Mon Sep 17 00:00:00 2001 From: Shoaeb Jindani Date: Fri, 5 Apr 2024 11:16:01 +0530 Subject: [PATCH] fixed ibpca controller tests --- controllers/ibpca/ibpca_controller_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/ibpca/ibpca_controller_test.go b/controllers/ibpca/ibpca_controller_test.go index cd2dba6b..b2ccb353 100644 --- a/controllers/ibpca/ibpca_controller_test.go +++ b/controllers/ibpca/ibpca_controller_test.go @@ -25,6 +25,7 @@ import ( "sync" current "github.com/IBM-Blockchain/fabric-operator/api/v1beta1" + opconfig "github.com/IBM-Blockchain/fabric-operator/operatorconfig" v1 "github.com/IBM-Blockchain/fabric-operator/pkg/apis/ca/v1" "github.com/IBM-Blockchain/fabric-operator/pkg/offering/common" "github.com/IBM-Blockchain/fabric-operator/pkg/util" @@ -116,7 +117,10 @@ var _ = Describe("ReconcileIBPCA", func() { scheme: &runtime.Scheme{}, update: map[string][]Update{}, mutex: &sync.Mutex{}, + Config: &opconfig.Config{}, } + zaplogger, _ := util.SetupLogging("DEBUG") + reconciler.Config.Logger = zaplogger request = reconcile.Request{ NamespacedName: types.NamespacedName{ Namespace: "test-namespace",