Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Antoshin <[email protected]>
  • Loading branch information
danilrwx committed Dec 12, 2024
1 parent 0bf070a commit efebc0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func (h ResizingHandler) Handle(ctx context.Context, vd *virtv2.VirtualDisk) (re

// Expected disk size is NOT GREATER THAN expected pvc size: no resize needed since downsizing is not possible, and resizing to the same value makes no sense.
switch condition.Reason {

case vdcondition.InProgress.String(), vdcondition.Resized.String():
cb.
Status(metav1.ConditionFalse).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var _ = Describe("LifeCycle handler", func() {
Status: metav1.ConditionTrue,
},
{
Type: vdcondition.Resized.String(),
Type: vdcondition.ResizingType.String(),
Status: metav1.ConditionTrue,
Reason: vdcondition.Resized.String(),
},
Expand Down Expand Up @@ -198,7 +198,7 @@ var _ = Describe("LifeCycle handler", func() {

It("The virtual disk is the process of Resizing", func() {
snapshotter.GetVirtualDiskFunc = func(_ context.Context, _, _ string) (*virtv2.VirtualDisk, error) {
cb := conditions.NewConditionBuilder(vdcondition.Resized).
cb := conditions.NewConditionBuilder(vdcondition.ResizingType).
Generation(vd.Generation).
Status(metav1.ConditionFalse).
Reason(vdcondition.InProgress)
Expand Down

0 comments on commit efebc0d

Please sign in to comment.