@@ -104,8 +104,8 @@ var _ = Describe("Resizing handler Run", func() {
104
104
105
105
_ , err := h .Handle (testContext (), vd )
106
106
Expect (err ).To (BeNil ())
107
- resized , _ := conditions .GetCondition (vdcondition .ResizedType , vd .Status .Conditions )
108
- Expect (resized .Status ).To (Equal (metav1 .ConditionFalse ))
107
+ resized , _ := conditions .GetCondition (vdcondition .ResizingType , vd .Status .Conditions )
108
+ Expect (resized .Status ).To (Equal (metav1 .ConditionTrue ))
109
109
Expect (resized .Reason ).To (Equal (vdcondition .InProgress .String ()))
110
110
})
111
111
@@ -116,7 +116,7 @@ var _ = Describe("Resizing handler Run", func() {
116
116
117
117
_ , err := h .Handle (testContext (), vd )
118
118
Expect (err ).To (BeNil ())
119
- resized , _ := conditions .GetCondition (vdcondition .ResizedType , vd .Status .Conditions )
119
+ resized , _ := conditions .GetCondition (vdcondition .ResizingType , vd .Status .Conditions )
120
120
Expect (resized .Status ).To (Equal (metav1 .ConditionFalse ))
121
121
Expect (resized .Reason ).To (Equal (vdcondition .ResizingNotRequested .String ()))
122
122
})
@@ -128,7 +128,7 @@ var _ = Describe("Resizing handler Run", func() {
128
128
129
129
_ , err := h .Handle (testContext (), vd )
130
130
Expect (err ).To (BeNil ())
131
- resized , _ := conditions .GetCondition (vdcondition .ResizedType , vd .Status .Conditions )
131
+ resized , _ := conditions .GetCondition (vdcondition .ResizingType , vd .Status .Conditions )
132
132
Expect (resized .Status ).To (Equal (metav1 .ConditionFalse ))
133
133
Expect (resized .Reason ).To (Equal (vdcondition .ResizingNotRequested .String ()))
134
134
})
@@ -138,7 +138,7 @@ var _ = Describe("Resizing handler Run", func() {
138
138
139
139
_ , err := h .Handle (testContext (), vd )
140
140
Expect (err ).To (BeNil ())
141
- resized , _ := conditions .GetCondition (vdcondition .ResizedType , vd .Status .Conditions )
141
+ resized , _ := conditions .GetCondition (vdcondition .ResizingType , vd .Status .Conditions )
142
142
Expect (resized .Status ).To (Equal (metav1 .ConditionFalse ))
143
143
Expect (resized .Reason ).To (Equal (vdcondition .ResizingNotRequested .String ()))
144
144
})
@@ -150,14 +150,14 @@ var _ = Describe("Resizing handler Run", func() {
150
150
151
151
_ , err := h .Handle (testContext (), vd )
152
152
Expect (err ).To (BeNil ())
153
- resized , _ := conditions .GetCondition (vdcondition .ResizedType , vd .Status .Conditions )
154
- Expect (resized .Status ).To (Equal (metav1 .ConditionFalse ))
153
+ resized , _ := conditions .GetCondition (vdcondition .ResizingType , vd .Status .Conditions )
154
+ Expect (resized .Status ).To (Equal (metav1 .ConditionTrue ))
155
155
Expect (resized .Reason ).To (Equal (vdcondition .InProgress .String ()))
156
156
})
157
157
158
158
It ("Resize has completed" , func () {
159
159
vd .Status .Conditions = append (vd .Status .Conditions , metav1.Condition {
160
- Type : vdcondition .ResizedType .String (),
160
+ Type : vdcondition .ResizingType .String (),
161
161
Status : metav1 .ConditionFalse ,
162
162
Reason : vdcondition .InProgress .String (),
163
163
})
@@ -166,8 +166,8 @@ var _ = Describe("Resizing handler Run", func() {
166
166
167
167
_ , err := h .Handle (testContext (), vd )
168
168
Expect (err ).To (BeNil ())
169
- resized , _ := conditions .GetCondition (vdcondition .ResizedType , vd .Status .Conditions )
170
- Expect (resized .Status ).To (Equal (metav1 .ConditionTrue ))
169
+ resized , _ := conditions .GetCondition (vdcondition .ResizingType , vd .Status .Conditions )
170
+ Expect (resized .Status ).To (Equal (metav1 .ConditionFalse ))
171
171
Expect (resized .Reason ).To (Equal (vdcondition .Resized .String ()))
172
172
})
173
173
})
0 commit comments