From 99c21c7d636adffbea757154e18d8483272054b0 Mon Sep 17 00:00:00 2001 From: Luboslav Pivarc Date: Wed, 21 Jun 2023 14:33:21 +0200 Subject: [PATCH] Fix operator unit test Signed-off-by: Luboslav Pivarc Signed-off-by: Victor Toso --- pkg/virt-operator/kubevirt_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/virt-operator/kubevirt_test.go b/pkg/virt-operator/kubevirt_test.go index e42648749465..58c2aa4845c0 100644 --- a/pkg/virt-operator/kubevirt_test.go +++ b/pkg/virt-operator/kubevirt_test.go @@ -86,8 +86,8 @@ const ( NAMESPACE = "kubevirt-test" - resourceCount = 75 - patchCount = 50 + resourceCount = 76 + patchCount = 51 updateCount = 26 ) @@ -1222,6 +1222,7 @@ func (k *KubeVirtTestData) addAllWithExclusionMap(config *util.KubeVirtDeploymen components.NewVirtualMachineClusterInstancetypeCrd, components.NewVirtualMachinePoolCrd, components.NewMigrationPolicyCrd, components.NewVirtualMachinePreferenceCrd, components.NewVirtualMachineClusterPreferenceCrd, components.NewVirtualMachineCloneCrd, + components.NewNodeConfigCrd, } for _, f := range functions { crd, err := f() @@ -2430,7 +2431,7 @@ var _ = Describe("KubeVirt Operator", func() { Expect(kvTestData.controller.stores.ClusterRoleBindingCache.List()).To(HaveLen(6)) Expect(kvTestData.controller.stores.RoleCache.List()).To(HaveLen(5)) Expect(kvTestData.controller.stores.RoleBindingCache.List()).To(HaveLen(5)) - Expect(kvTestData.controller.stores.CrdCache.List()).To(HaveLen(16)) + Expect(kvTestData.controller.stores.CrdCache.List()).To(HaveLen(17)) Expect(kvTestData.controller.stores.ServiceCache.List()).To(HaveLen(4)) Expect(kvTestData.controller.stores.DeploymentCache.List()).To(HaveLen(1)) Expect(kvTestData.controller.stores.DaemonSetCache.List()).To(BeEmpty())