Skip to content

Commit

Permalink
Fix operator unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Luboslav Pivarc <[email protected]>
Signed-off-by: Victor Toso <[email protected]>
  • Loading branch information
xpivarc authored and victortoso committed Jun 30, 2023
1 parent 5e0cf20 commit c0977d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/virt-operator/kubevirt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const (

NAMESPACE = "kubevirt-test"

resourceCount = 75
patchCount = 50
resourceCount = 76
patchCount = 51
updateCount = 26
)

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit c0977d8

Please sign in to comment.