@@ -104,7 +104,7 @@ var _ = Describe("AppWrapper Controller", func() {
104
104
Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .PodsReady ))).Should (BeFalse ())
105
105
Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
106
106
Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
107
- podStatus , err := awReconciler .workloadStatus (ctx , aw )
107
+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
108
108
Expect (err ).NotTo (HaveOccurred ())
109
109
Expect (podStatus .pending ).Should (Equal (utils .ExpectedPodCount (aw )))
110
110
@@ -121,7 +121,7 @@ var _ = Describe("AppWrapper Controller", func() {
121
121
Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .PodsReady ))).Should (BeFalse ())
122
122
Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
123
123
Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
124
- podStatus , err = awReconciler .workloadStatus (ctx , aw )
124
+ podStatus , err = awReconciler .getPodStatus (ctx , aw )
125
125
Expect (err ).NotTo (HaveOccurred ())
126
126
Expect (podStatus .pending ).Should (Equal (utils .ExpectedPodCount (aw ) - 1 ))
127
127
}
@@ -142,7 +142,7 @@ var _ = Describe("AppWrapper Controller", func() {
142
142
Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
143
143
Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
144
144
Expect ((* workload .AppWrapper )(aw ).PodsReady ()).Should (BeTrue ())
145
- podStatus , err := awReconciler .workloadStatus (ctx , aw )
145
+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
146
146
Expect (err ).NotTo (HaveOccurred ())
147
147
Expect (podStatus .running ).Should (Equal (utils .ExpectedPodCount (aw )))
148
148
_ , finished := (* workload .AppWrapper )(aw ).Finished ()
@@ -161,7 +161,7 @@ var _ = Describe("AppWrapper Controller", func() {
161
161
_ , err = awReconciler .Reconcile (ctx , reconcile.Request {NamespacedName : awName }) // see deletion has completed
162
162
Expect (err ).NotTo (HaveOccurred ())
163
163
164
- podStatus , err := awReconciler .workloadStatus (ctx , aw )
164
+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
165
165
Expect (err ).NotTo (HaveOccurred ())
166
166
Expect (podStatus .failed + podStatus .succeeded + podStatus .running + podStatus .pending ).Should (Equal (int32 (0 )))
167
167
})
@@ -184,7 +184,7 @@ var _ = Describe("AppWrapper Controller", func() {
184
184
Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .QuotaReserved ))).Should (BeTrue ())
185
185
Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
186
186
Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
187
- podStatus , err := awReconciler .workloadStatus (ctx , aw )
187
+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
188
188
Expect (err ).NotTo (HaveOccurred ())
189
189
Expect (podStatus .running ).Should (Equal (utils .ExpectedPodCount (aw ) - 1 ))
190
190
Expect (podStatus .succeeded ).Should (Equal (int32 (1 )))
@@ -239,7 +239,7 @@ var _ = Describe("AppWrapper Controller", func() {
239
239
Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .QuotaReserved ))).Should (BeFalse ())
240
240
Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeFalse ())
241
241
Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeTrue ())
242
- podStatus , err := awReconciler .workloadStatus (ctx , aw )
242
+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
243
243
Expect (err ).NotTo (HaveOccurred ())
244
244
Expect (podStatus .failed + podStatus .succeeded + podStatus .running + podStatus .pending ).Should (Equal (int32 (0 )))
245
245
})
@@ -296,7 +296,7 @@ var _ = Describe("AppWrapper Controller", func() {
296
296
Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .PodsReady ))).Should (BeFalse ())
297
297
Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
298
298
Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
299
- podStatus , err := awReconciler .workloadStatus (ctx , aw )
299
+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
300
300
Expect (err ).NotTo (HaveOccurred ())
301
301
Expect (podStatus .pending ).Should (Equal (int32 (1 )))
302
302
})
0 commit comments