Skip to content

Commit

Permalink
Fixing the UT with gateway list
Browse files Browse the repository at this point in the history
  • Loading branch information
rajendra-avesha committed Aug 11, 2023
1 parent d4ec909 commit 1220add
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/hub/controllers/vpnkeyrotation/vpnrotation_ctrl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,18 +593,18 @@ var _ = Describe("Hub VPN Key Rotation", func() {
return err
}
createdvpnKeyRotation.Status.CurrentRotationState = map[string]hubv1alpha1.StatusOfKeyRotation{
gws[0]: {
Status: hubv1alpha1.InProgress,
LastUpdatedTimestamp: metav1.Time{Time: time.Now()},
},
// gws[0]: {
// Status: hubv1alpha1.InProgress,
// LastUpdatedTimestamp: metav1.Time{Time: time.Now()},
// },
gws[1]: {
Status: hubv1alpha1.InProgress,
LastUpdatedTimestamp: metav1.Time{Time: time.Now()},
},
gws[2]: {
Status: hubv1alpha1.InProgress,
LastUpdatedTimestamp: metav1.Time{Time: time.Now()},
},
// gws[2]: {
// Status: hubv1alpha1.InProgress,
// LastUpdatedTimestamp: metav1.Time{Time: time.Now()},
// },
}
err = k8sClient.Status().Update(ctx, createdvpnKeyRotation)
return err
Expand Down

0 comments on commit 1220add

Please sign in to comment.