@@ -33,7 +33,7 @@ func TestHealthchecksList(t *testing.T) {
3333 "tags": {},
3434 "registry": {},
3535 "healthcheck": {
36- "web/cmd ": {
36+ "web": {
3737 "livenessProbe": {
3838 "initialDelaySeconds": 50,
3939 "timeoutSeconds": 50,
@@ -52,16 +52,16 @@ func TestHealthchecksList(t *testing.T) {
5252}` )
5353 })
5454
55- err = cmdr .HealthchecksList ("foo" , "web/cmd " )
55+ err = cmdr .HealthchecksList ("foo" , "web" )
5656 assert .NoError (t , err )
5757
58- assert .Equal (t , b .String (), `App: foo
59- UUID: c039a380-6068-4511-b35a-535a73b86ef5
60- Owner: bar
61- Created: 2016-09-12T22:20:14Z
62- Updated: 2016-09-12T22:20:14Z
58+ assert .Equal (t , b .String (), `App: foo
59+ UUID: c039a380-6068-4511-b35a-535a73b86ef5
60+ Owner: bar
61+ Created: 2016-09-12T22:20:14Z
62+ Updated: 2016-09-12T22:20:14Z
6363Healthchecks:
64- liveness web/cmd http-get headers=[] path=/ port=80 delay=50s timeout=50s period=10s #success=1 #failure=3
64+ livenessProbe web http-get headers=[] path=/ port=80 delay=50s timeout=50s period=10s #success=1 #failure=3
6565` , "output" )
6666}
6767
@@ -121,7 +121,7 @@ func TestHealthchecksListAllHealthChecks(t *testing.T) {
121121 "tags": {},
122122 "registry": {},
123123 "healthcheck": {
124- "web/cmd ": {
124+ "web": {
125125 "livenessProbe": {
126126 "initialDelaySeconds": 50,
127127 "timeoutSeconds": 50,
@@ -134,14 +134,14 @@ func TestHealthchecksListAllHealthChecks(t *testing.T) {
134134 "successThreshold": 1
135135 }
136136 },
137- "web ": {
137+ "task ": {
138138 "livenessProbe": {
139139 "initialDelaySeconds": 50,
140140 "timeoutSeconds": 50,
141141 "periodSeconds": 10,
142142 "failureThreshold": 3,
143143 "httpGet": {
144- "port": 80 ,
144+ "port": 8000 ,
145145 "path": "/"
146146 },
147147 "successThreshold": 1
@@ -156,14 +156,14 @@ func TestHealthchecksListAllHealthChecks(t *testing.T) {
156156 err = cmdr .HealthchecksList ("foo" , "" )
157157 assert .NoError (t , err )
158158
159- assert .Equal (t , b .String (), `App: foo
160- UUID: c039a380-6068-4511-b35a-535a73b86ef5
161- Owner: bar
162- Created: 2016-09-12T22:20:14Z
163- Updated: 2016-09-12T22:20:14Z
159+ assert .Equal (t , b .String (), `App: foo
160+ UUID: c039a380-6068-4511-b35a-535a73b86ef5
161+ Owner: bar
162+ Created: 2016-09-12T22:20:14Z
163+ Updated: 2016-09-12T22:20:14Z
164164Healthchecks:
165- liveness web http-get headers=[] path=/ port=80 delay=50s timeout=50s period=10s #success=1 #failure=3
166- liveness web/cmd http-get headers=[] path=/ port=80 delay=50s timeout=50s period=10s #success=1 #failure=3
165+ livenessProbe task http-get headers=[] path=/ port=8000 delay=50s timeout=50s period=10s #success=1 #failure=3
166+ livenessProbe web http-get headers=[] path=/ port=80 delay=50s timeout=50s period=10s #success=1 #failure=3
167167` , "output" )
168168}
169169
@@ -189,7 +189,7 @@ func TestHealthchecksSet(t *testing.T) {
189189 "tags": {},
190190 "registry": {},
191191 "healthcheck": {
192- "web/cmd ": {
192+ "web": {
193193 "livenessProbe": {
194194 "initialDelaySeconds": 50,
195195 "timeoutSeconds": 50,
@@ -208,17 +208,17 @@ func TestHealthchecksSet(t *testing.T) {
208208}` )
209209 })
210210
211- err = cmdr .HealthchecksSet ("foo" , "liveness " , "web/cmd " , & api.Healthcheck {})
211+ err = cmdr .HealthchecksSet ("foo" , "livenessProbe " , "web" , & api.Healthcheck {})
212212 assert .NoError (t , err )
213- assert .Equal (t , testutil .StripProgress (b .String ()), `Applying liveness healthcheck... done
213+ assert .Equal (t , testutil .StripProgress (b .String ()), `Applying livenessProbe healthcheck... done
214214
215- App: foo
216- UUID: c039a380-6068-4511-b35a-535a73b86ef5
217- Owner: bar
218- Created: 2016-09-12T22:20:14Z
219- Updated: 2016-09-12T22:20:14Z
215+ App: foo
216+ UUID: c039a380-6068-4511-b35a-535a73b86ef5
217+ Owner: bar
218+ Created: 2016-09-12T22:20:14Z
219+ Updated: 2016-09-12T22:20:14Z
220220Healthchecks:
221- liveness web/cmd http-get headers=[] path=/ port=80 delay=50s timeout=50s period=10s #success=1 #failure=3
221+ livenessProbe web http-get headers=[] path=/ port=80 delay=50s timeout=50s period=10s #success=1 #failure=3
222222` , "output" )
223223}
224224
@@ -249,7 +249,7 @@ func TestHealthchecksUnset(t *testing.T) {
249249}` )
250250 })
251251
252- err = cmdr .HealthchecksUnset ("foo" , "web/cmd " , []string {"liveness " })
252+ err = cmdr .HealthchecksUnset ("foo" , "web" , []string {"livenessProbe " })
253253 assert .NoError (t , err )
254254 assert .Equal (t , testutil .StripProgress (b .String ()), `Removing healthchecks... done
255255
0 commit comments