@@ -54,27 +54,29 @@ func TestPrintProcesses(t *testing.T) {
5454
5555 pods := []api.Pods {
5656 {
57- Release : "v3" ,
58- Name : "benign-quilting-web-4084101150-c871y" ,
59- Type : "web" ,
60- State : "up" ,
61- Started : time.Time {},
57+ Release : "v3" ,
58+ Name : "benign-quilting-web-4084101150-c871y" ,
59+ Type : "web" ,
60+ State : "up" ,
61+ Started : time.Time {},
62+ Replicas : 1 ,
6263 },
6364 {
64- Release : "v3" ,
65- Name : "benign-quilting-worker-4084101150-c871y" ,
66- Type : "worker" ,
67- State : "up" ,
68- Started : time.Time {},
65+ Release : "v3" ,
66+ Name : "benign-quilting-worker-4084101150-c871y" ,
67+ Type : "worker" ,
68+ State : "up" ,
69+ Started : time.Time {},
70+ Replicas : 1 ,
6971 },
7072 }
7173
7274 printProcesses ("appname" , pods , & b )
7375
7476 assert .Equal (t , b .String (), `=== appname Processes
75- --- web:
77+ --- web (started): 1
7678benign-quilting-web-4084101150-c871y up (v3)
77- --- worker:
79+ --- worker (started): 1
7880benign-quilting-worker-4084101150-c871y up (v3)
7981` , "output" )
8082}
@@ -101,7 +103,8 @@ func TestPsList(t *testing.T) {
101103 "type": "web",
102104 "name": "foo-web-4084101150-c871y",
103105 "state": "up",
104- "started": "2016-02-13T00:47:52"
106+ "started": "2016-02-13T00:47:52",
107+ "replicas": 1
105108 }
106109 ]
107110 }` )
@@ -111,7 +114,7 @@ func TestPsList(t *testing.T) {
111114 assert .NoErr (t , err )
112115
113116 assert .Equal (t , b .String (), `=== foo Processes
114- --- web:
117+ --- web (started): 1
115118foo-web-4084101150-c871y up (v2)
116119` , "output" )
117120}
@@ -171,7 +174,8 @@ func TestPsScale(t *testing.T) {
171174 "type": "web",
172175 "name": "foo-web-4084101150-c871y",
173176 "state": "up",
174- "started": "2016-02-13T00:47:52"
177+ "started": "2016-02-13T00:47:52",
178+ "replicas": 1
175179 }
176180 ]
177181 }` )
@@ -189,7 +193,7 @@ func TestPsScale(t *testing.T) {
189193 assert .Equal (t , testutil .StripProgress (b .String ()), `Scaling processes... but first, coffee!
190194done in 0s
191195=== foo Processes
192- --- web:
196+ --- web (started): 1
193197foo-web-4084101150-c871y up (v2)
194198` , "output" )
195199}
@@ -212,7 +216,8 @@ func TestPsRestart(t *testing.T) {
212216 "type": "web",
213217 "name": "foo-web-4084101150-c871y",
214218 "state": "up",
215- "started": "2016-02-13T00:47:52"
219+ "started": "2016-02-13T00:47:52",
220+ "replicas": 1
216221 }
217222]` )
218223 })
@@ -223,7 +228,7 @@ func TestPsRestart(t *testing.T) {
223228 assert .Equal (t , testutil .StripProgress (b .String ()), `Restarting processes... but first, coffee!
224229done in 0s
225230=== foo Processes
226- --- web:
231+ --- web (started): 1
227232foo-web-4084101150-c871y up (v2)
228233` , "output" )
229234
@@ -248,7 +253,8 @@ Could not find any processes to restart
248253 "type": "web",
249254 "name": "testapp-web-4084101150-c871y",
250255 "state": "up",
251- "started": "2016-02-13T00:47:52"
256+ "started": "2016-02-13T00:47:52",
257+ "replicas": 1
252258 }
253259 ]` )
254260 })
@@ -260,7 +266,7 @@ Could not find any processes to restart
260266 assert .Equal (t , testutil .StripProgress (b .String ()), `Restarting processes... but first, coffee!
261267done in 0s
262268=== testapp Processes
263- --- web:
269+ --- web (started): 1
264270testapp-web-4084101150-c871y up (v2)
265271` , "output" )
266272
@@ -272,7 +278,8 @@ testapp-web-4084101150-c871y up (v2)
272278 "type": "web",
273279 "name": "newapp-web-4084101150-c871y",
274280 "state": "up",
275- "started": "2016-02-13T00:47:52"
281+ "started": "2016-02-13T00:47:52",
282+ "replicas": 1
276283 }
277284 ]` )
278285 })
@@ -284,7 +291,7 @@ testapp-web-4084101150-c871y up (v2)
284291 assert .Equal (t , testutil .StripProgress (b .String ()), `Restarting processes... but first, coffee!
285292done in 0s
286293=== newapp Processes
287- --- web:
294+ --- web (started): 1
288295newapp-web-4084101150-c871y up (v2)
289296` , "output" )
290297
0 commit comments