@@ -54,29 +54,27 @@ 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 {},
62- Replicas : "1" ,
57+ Release : "v3" ,
58+ Name : "benign-quilting-web-4084101150-c871y" ,
59+ Type : "web" ,
60+ State : "up" ,
61+ Started : time.Time {},
6362 },
6463 {
65- Release : "v3" ,
66- Name : "benign-quilting-worker-4084101150-c871y" ,
67- Type : "worker" ,
68- State : "up" ,
69- Started : time.Time {},
70- Replicas : "1" ,
64+ Release : "v3" ,
65+ Name : "benign-quilting-worker-4084101150-c871y" ,
66+ Type : "worker" ,
67+ State : "up" ,
68+ Started : time.Time {},
7169 },
7270 }
7371
7472 printProcesses ("appname" , pods , & b )
7573
7674 assert .Equal (t , b .String (), `=== appname Processes
77- --- web (started): 1
75+ --- web:
7876benign-quilting-web-4084101150-c871y up (v3)
79- --- worker (started): 1
77+ --- worker:
8078benign-quilting-worker-4084101150-c871y up (v3)
8179` , "output" )
8280}
@@ -103,8 +101,7 @@ func TestPsList(t *testing.T) {
103101 "type": "web",
104102 "name": "foo-web-4084101150-c871y",
105103 "state": "up",
106- "started": "2016-02-13T00:47:52",
107- "replicas": "1"
104+ "started": "2016-02-13T00:47:52"
108105 }
109106 ]
110107 }` )
@@ -114,7 +111,7 @@ func TestPsList(t *testing.T) {
114111 assert .NoErr (t , err )
115112
116113 assert .Equal (t , b .String (), `=== foo Processes
117- --- web (started): 1
114+ --- web:
118115foo-web-4084101150-c871y up (v2)
119116` , "output" )
120117}
@@ -174,8 +171,7 @@ func TestPsScale(t *testing.T) {
174171 "type": "web",
175172 "name": "foo-web-4084101150-c871y",
176173 "state": "up",
177- "started": "2016-02-13T00:47:52",
178- "replicas": "1"
174+ "started": "2016-02-13T00:47:52"
179175 }
180176 ]
181177 }` )
@@ -193,7 +189,7 @@ func TestPsScale(t *testing.T) {
193189 assert .Equal (t , testutil .StripProgress (b .String ()), `Scaling processes... but first, coffee!
194190done in 0s
195191=== foo Processes
196- --- web (started): 1
192+ --- web:
197193foo-web-4084101150-c871y up (v2)
198194` , "output" )
199195}
@@ -216,8 +212,7 @@ func TestPsRestart(t *testing.T) {
216212 "type": "web",
217213 "name": "foo-web-4084101150-c871y",
218214 "state": "up",
219- "started": "2016-02-13T00:47:52",
220- "replicas": "1"
215+ "started": "2016-02-13T00:47:52"
221216 }
222217]` )
223218 })
@@ -228,7 +223,7 @@ func TestPsRestart(t *testing.T) {
228223 assert .Equal (t , testutil .StripProgress (b .String ()), `Restarting processes... but first, coffee!
229224done in 0s
230225=== foo Processes
231- --- web (started): 1
226+ --- web:
232227foo-web-4084101150-c871y up (v2)
233228` , "output" )
234229
@@ -253,8 +248,7 @@ Could not find any processes to restart
253248 "type": "web",
254249 "name": "testapp-web-4084101150-c871y",
255250 "state": "up",
256- "started": "2016-02-13T00:47:52",
257- "replicas": "1"
251+ "started": "2016-02-13T00:47:52"
258252 }
259253 ]` )
260254 })
@@ -266,7 +260,7 @@ Could not find any processes to restart
266260 assert .Equal (t , testutil .StripProgress (b .String ()), `Restarting processes... but first, coffee!
267261done in 0s
268262=== testapp Processes
269- --- web (started): 1
263+ --- web:
270264testapp-web-4084101150-c871y up (v2)
271265` , "output" )
272266
@@ -278,8 +272,7 @@ testapp-web-4084101150-c871y up (v2)
278272 "type": "web",
279273 "name": "newapp-web-4084101150-c871y",
280274 "state": "up",
281- "started": "2016-02-13T00:47:52",
282- "replicas": "1"
275+ "started": "2016-02-13T00:47:52"
283276 }
284277 ]` )
285278 })
@@ -291,7 +284,7 @@ testapp-web-4084101150-c871y up (v2)
291284 assert .Equal (t , testutil .StripProgress (b .String ()), `Restarting processes... but first, coffee!
292285done in 0s
293286=== newapp Processes
294- --- web (started): 1
287+ --- web:
295288newapp-web-4084101150-c871y up (v2)
296289` , "output" )
297290
0 commit comments