@@ -89,7 +89,7 @@ var _ = Describe("Control Plane", func() {
89
89
Describe ("MachinesNeedingUpgrade" , func () {
90
90
Context ("With no machines" , func () {
91
91
It ("should return no machines" , func () {
92
- Expect (controlPlane .MachinesNeedingUpgrade ()).To (HaveLen (0 ))
92
+ Expect (controlPlane .MachinesNeedingRollout ()).To (HaveLen (0 ))
93
93
})
94
94
})
95
95
@@ -108,7 +108,7 @@ var _ = Describe("Control Plane", func() {
108
108
controlPlane .Machines .Insert (machine ("machine-4" , withHash (controlPlane .SpecHash ()+ "outdated" )))
109
109
})
110
110
It ("should return some machines" , func () {
111
- Expect (controlPlane .MachinesNeedingUpgrade ()).To (HaveLen (1 ))
111
+ Expect (controlPlane .MachinesNeedingRollout ()).To (HaveLen (1 ))
112
112
})
113
113
})
114
114
@@ -130,7 +130,7 @@ var _ = Describe("Control Plane", func() {
130
130
131
131
Context ("That has no upgradeAfter value set" , func () {
132
132
It ("should return no machines" , func () {
133
- Expect (controlPlane .MachinesNeedingUpgrade ()).To (HaveLen (0 ))
133
+ Expect (controlPlane .MachinesNeedingRollout ()).To (HaveLen (0 ))
134
134
})
135
135
})
136
136
@@ -141,7 +141,7 @@ var _ = Describe("Control Plane", func() {
141
141
controlPlane .KCP .Spec .UpgradeAfter = & metav1.Time {Time : future }
142
142
})
143
143
It ("should return no machines" , func () {
144
- Expect (controlPlane .MachinesNeedingUpgrade ()).To (HaveLen (0 ))
144
+ Expect (controlPlane .MachinesNeedingRollout ()).To (HaveLen (0 ))
145
145
})
146
146
})
147
147
@@ -151,7 +151,7 @@ var _ = Describe("Control Plane", func() {
151
151
controlPlane .KCP .Spec .UpgradeAfter = & metav1.Time {Time : time .Date (year - 2 , 0 , 0 , 0 , 0 , 0 , 0 , time .UTC )}
152
152
})
153
153
It ("should return no machines" , func () {
154
- Expect (controlPlane .MachinesNeedingUpgrade ()).To (HaveLen (0 ))
154
+ Expect (controlPlane .MachinesNeedingRollout ()).To (HaveLen (0 ))
155
155
})
156
156
})
157
157
@@ -160,7 +160,7 @@ var _ = Describe("Control Plane", func() {
160
160
controlPlane .KCP .Spec .UpgradeAfter = & metav1.Time {Time : time .Date (year , 1 , 0 , 0 , 0 , 0 , 0 , time .UTC )}
161
161
})
162
162
It ("should return all machines older than this date machines" , func () {
163
- Expect (controlPlane .MachinesNeedingUpgrade ()).To (HaveLen (2 ))
163
+ Expect (controlPlane .MachinesNeedingRollout ()).To (HaveLen (2 ))
164
164
})
165
165
})
166
166
})
0 commit comments