@@ -104,7 +104,7 @@ var _ = Describe("AppWrapper Controller", func() {
104104 Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .PodsReady ))).Should (BeFalse ())
105105 Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
106106 Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
107- podStatus , err := awReconciler .workloadStatus (ctx , aw )
107+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
108108 Expect (err ).NotTo (HaveOccurred ())
109109 Expect (podStatus .pending ).Should (Equal (utils .ExpectedPodCount (aw )))
110110
@@ -121,7 +121,7 @@ var _ = Describe("AppWrapper Controller", func() {
121121 Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .PodsReady ))).Should (BeFalse ())
122122 Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
123123 Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
124- podStatus , err = awReconciler .workloadStatus (ctx , aw )
124+ podStatus , err = awReconciler .getPodStatus (ctx , aw )
125125 Expect (err ).NotTo (HaveOccurred ())
126126 Expect (podStatus .pending ).Should (Equal (utils .ExpectedPodCount (aw ) - 1 ))
127127 }
@@ -142,7 +142,7 @@ var _ = Describe("AppWrapper Controller", func() {
142142 Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
143143 Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
144144 Expect ((* workload .AppWrapper )(aw ).PodsReady ()).Should (BeTrue ())
145- podStatus , err := awReconciler .workloadStatus (ctx , aw )
145+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
146146 Expect (err ).NotTo (HaveOccurred ())
147147 Expect (podStatus .running ).Should (Equal (utils .ExpectedPodCount (aw )))
148148 _ , finished := (* workload .AppWrapper )(aw ).Finished ()
@@ -161,7 +161,7 @@ var _ = Describe("AppWrapper Controller", func() {
161161 _ , err = awReconciler .Reconcile (ctx , reconcile.Request {NamespacedName : awName }) // see deletion has completed
162162 Expect (err ).NotTo (HaveOccurred ())
163163
164- podStatus , err := awReconciler .workloadStatus (ctx , aw )
164+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
165165 Expect (err ).NotTo (HaveOccurred ())
166166 Expect (podStatus .failed + podStatus .succeeded + podStatus .running + podStatus .pending ).Should (Equal (int32 (0 )))
167167 })
@@ -184,7 +184,7 @@ var _ = Describe("AppWrapper Controller", func() {
184184 Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .QuotaReserved ))).Should (BeTrue ())
185185 Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
186186 Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
187- podStatus , err := awReconciler .workloadStatus (ctx , aw )
187+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
188188 Expect (err ).NotTo (HaveOccurred ())
189189 Expect (podStatus .running ).Should (Equal (utils .ExpectedPodCount (aw ) - 1 ))
190190 Expect (podStatus .succeeded ).Should (Equal (int32 (1 )))
@@ -239,7 +239,7 @@ var _ = Describe("AppWrapper Controller", func() {
239239 Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .QuotaReserved ))).Should (BeFalse ())
240240 Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeFalse ())
241241 Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeTrue ())
242- podStatus , err := awReconciler .workloadStatus (ctx , aw )
242+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
243243 Expect (err ).NotTo (HaveOccurred ())
244244 Expect (podStatus .failed + podStatus .succeeded + podStatus .running + podStatus .pending ).Should (Equal (int32 (0 )))
245245 })
@@ -296,7 +296,7 @@ var _ = Describe("AppWrapper Controller", func() {
296296 Expect (meta .IsStatusConditionTrue (aw .Status .Conditions , string (workloadv1beta2 .PodsReady ))).Should (BeFalse ())
297297 Expect ((* workload .AppWrapper )(aw ).IsActive ()).Should (BeTrue ())
298298 Expect ((* workload .AppWrapper )(aw ).IsSuspended ()).Should (BeFalse ())
299- podStatus , err := awReconciler .workloadStatus (ctx , aw )
299+ podStatus , err := awReconciler .getPodStatus (ctx , aw )
300300 Expect (err ).NotTo (HaveOccurred ())
301301 Expect (podStatus .pending ).Should (Equal (int32 (1 )))
302302 })
0 commit comments