@@ -32,7 +32,6 @@ const configFixture string = `
3232 "registry": {
3333 "username": "bob"
3434 },
35- "routable": true,
3635 "created": "2014-01-01T00:00:00UTC",
3736 "updated": "2014-01-01T00:00:00UTC",
3837 "uuid": "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75"
@@ -48,15 +47,14 @@ const configUnsetFixture string = `
4847 "cpu": {},
4948 "tags": {},
5049 "registry": {},
51- "routable": true,
5250 "created": "2014-01-01T00:00:00UTC",
5351 "updated": "2014-01-01T00:00:00UTC",
5452 "uuid": "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75"
5553}
5654`
5755
58- const configSetExpected string = `{"values":{"FOO":"bar","TEST":"testing"},"memory":{"web":"1G"},"cpu":{"web":"1000"},"tags":{"test":"tests"},"registry":{"username":"bob"},"routable":true }`
59- const configUnsetExpected string = `{"values":{"FOO":null,"TEST":null},"memory":{"web":null},"cpu":{"web":null},"tags":{"test":null},"registry":{"username":null},"routable":true }`
56+ const configSetExpected string = `{"values":{"FOO":"bar","TEST":"testing"},"memory":{"web":"1G"},"cpu":{"web":"1000"},"tags":{"test":"tests"},"registry":{"username":"bob"}}`
57+ const configUnsetExpected string = `{"values":{"FOO":null,"TEST":null},"memory":{"web":null},"cpu":{"web":null},"tags":{"test":null},"registry":{"username":null}}`
6058
6159type fakeHTTPServer struct {}
6260
@@ -146,10 +144,9 @@ func TestConfigSet(t *testing.T) {
146144 Registry : map [string ]interface {}{
147145 "username" : "bob" ,
148146 },
149- Routable : api .NewRoutable (),
150- Created : "2014-01-01T00:00:00UTC" ,
151- Updated : "2014-01-01T00:00:00UTC" ,
152- UUID : "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75" ,
147+ Created : "2014-01-01T00:00:00UTC" ,
148+ Updated : "2014-01-01T00:00:00UTC" ,
149+ UUID : "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75" ,
153150 }
154151
155152 configVars := api.Config {
@@ -169,7 +166,6 @@ func TestConfigSet(t *testing.T) {
169166 Registry : map [string ]interface {}{
170167 "username" : "bob" ,
171168 },
172- Routable : api .NewRoutable (),
173169 }
174170
175171 actual , err := Set (deis , "example-go" , configVars )
@@ -203,7 +199,6 @@ func TestConfigUnset(t *testing.T) {
203199 CPU : map [string ]interface {}{},
204200 Tags : map [string ]interface {}{},
205201 Registry : map [string ]interface {}{},
206- Routable : api .NewRoutable (),
207202 Created : "2014-01-01T00:00:00UTC" ,
208203 Updated : "2014-01-01T00:00:00UTC" ,
209204 UUID : "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75" ,
@@ -226,7 +221,6 @@ func TestConfigUnset(t *testing.T) {
226221 Registry : map [string ]interface {}{
227222 "username" : nil ,
228223 },
229- Routable : api .NewRoutable (),
230224 }
231225
232226 actual , err := Set (deis , "unset-test" , configVars )
@@ -271,10 +265,9 @@ func TestConfigList(t *testing.T) {
271265 Registry : map [string ]interface {}{
272266 "username" : "bob" ,
273267 },
274- Routable : api .NewRoutable (),
275- Created : "2014-01-01T00:00:00UTC" ,
276- Updated : "2014-01-01T00:00:00UTC" ,
277- UUID : "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75" ,
268+ Created : "2014-01-01T00:00:00UTC" ,
269+ Updated : "2014-01-01T00:00:00UTC" ,
270+ UUID : "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75" ,
278271 }
279272
280273 actual , err := List (deis , "example-go" )
0 commit comments