@@ -28,13 +28,13 @@ func TestServiceRequests(t *testing.T) {
2828 {"GET" , "/services/foo" , "" , "" , 404 },
2929 {"PUT" , "/services/foo" , `{"name": "foo"}` , "" , 500 },
3030 {"PUT" , "/services/foo" , `{"name": "foo", "image": "bar", "ip": "127.0.0.1", "aliases": ["foo.docker"]}` , "" , 200 },
31- {"GET" , "/services/foo" , "" , `{"Name":"foo","Image":"bar","Ip":"127.0.0.1","Ttl":-1,"Aliases":["foo.docker"]}` , 200 },
31+ {"GET" , "/services/foo" , "" , `{"Name":"foo","Image":"bar","Ip":"127.0.0.1","Ttl":-1,"Aliases":["foo.docker"],"Manual":true }` , 200 },
3232 {"PUT" , "/services/boo" , `{"name": "baz", "image": "bar", "ip": "127.0.0.2"}` , "" , 200 },
33- {"GET" , "/services" , "" , `{"boo":{"Name":"baz","Image":"bar","Ip":"127.0.0.2","Ttl":-1,"Aliases":null},"foo":{"Name":"foo","Image":"bar","Ip":"127.0.0.1","Ttl":-1,"Aliases":["foo.docker"]}}` , 200 },
33+ {"GET" , "/services" , "" , `{"boo":{"Name":"baz","Image":"bar","Ip":"127.0.0.2","Ttl":-1,"Aliases":null,"Manual":true },"foo":{"Name":"foo","Image":"bar","Ip":"127.0.0.1","Ttl":-1,"Aliases":["foo.docker"],"Manual":true }}` , 200 },
3434 {"PATCH" , "/services/boo" , `{"name": "bar", "ttl": 20, "image": "bar"}` , "" , 200 },
35- {"GET" , "/services/boo" , "" , `{"Name":"bar","Image":"bar","Ip":"127.0.0.2","Ttl":20,"Aliases":null}` , 200 },
35+ {"GET" , "/services/boo" , "" , `{"Name":"bar","Image":"bar","Ip":"127.0.0.2","Ttl":20,"Aliases":null,"Manual":true }` , 200 },
3636 {"DELETE" , "/services/foo" , `` , "" , 200 },
37- {"GET" , "/services" , "" , `{"boo":{"Name":"bar","Image":"bar","Ip":"127.0.0.2","Ttl":20,"Aliases":null}}` , 200 },
37+ {"GET" , "/services" , "" , `{"boo":{"Name":"bar","Image":"bar","Ip":"127.0.0.2","Ttl":20,"Aliases":null,"Manual":true }}` , 200 },
3838 }
3939
4040 for _ , input := range tests {
0 commit comments