Skip to content

Commit

Permalink
Updating unit tests to accomodate drcluster MW changes
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Shakya <[email protected]>
  • Loading branch information
abhijeet219 committed Jul 15, 2024
1 parent b9b73a7 commit 05cb432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/controller/drcluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ func drclusterConditionExpect(
}

func validateClusterManifest(drcluster *ramen.DRCluster, disabled bool) {
expectedCount := 10
expectedCount := 4
if disabled {
expectedCount = 4
expectedCount = 0
}

clusterName := drcluster.Name
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/drplacementcontrol_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ func verifyVRGManifestWorkCreatedAsPrimary(namespace, managedCluster string) {
return err == nil
}, timeout, interval).Should(BeTrue())

Expect(len(createdVRGRolesManifest.Spec.Workload.Manifests)).To(Equal(10))
Expect(len(createdVRGRolesManifest.Spec.Workload.Manifests)).To(Equal(4))

vrgClusterRoleManifest := createdVRGRolesManifest.Spec.Workload.Manifests[0]
Expect(vrgClusterRoleManifest).ToNot(BeNil())
Expand Down

0 comments on commit 05cb432

Please sign in to comment.