Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
Signed-off-by: vbadrina <[email protected]>
  • Loading branch information
vbnrh committed Mar 6, 2024
1 parent bee0c61 commit 48aaa40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions controllers/mirrorpeer_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ package controllers

import (
"context"
"testing"

"github.com/red-hat-storage/odf-multicluster-orchestrator/addons/setup"
multiclusterv1alpha1 "github.com/red-hat-storage/odf-multicluster-orchestrator/api/v1alpha1"
"github.com/red-hat-storage/odf-multicluster-orchestrator/controllers/utils"
Expand All @@ -31,7 +33,6 @@ import (
clusterv1 "open-cluster-management.io/api/cluster/v1"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
"testing"
)

func TestMirrorPeerReconcilerReconcile(t *testing.T) {
Expand Down Expand Up @@ -80,8 +81,8 @@ func TestMirrorPeerReconcilerReconcile(t *testing.T) {
t.Errorf("Failed to get MirrorPeer. Error: %s", err)
}

if val, ok := mp.Labels[hubRecoveryLabel]; !ok || val != "resource" {
t.Errorf("MirrorPeer.Labels[%s] is not set correctly. Expected: %s, Actual: %s", hubRecoveryLabel, "resource", val)
if val, ok := mp.Labels[utils.HubRecoveryLabel]; !ok || val != "resource" {
t.Errorf("MirrorPeer.Labels[%s] is not set correctly. Expected: %s, Actual: %s", utils.HubRecoveryLabel, "resource", val)
}
}

Expand Down

0 comments on commit 48aaa40

Please sign in to comment.