changing tests

This commit is contained in:
Pedro Nasser
2016-08-15 23:22:41 -03:00
parent b57e6656d2
commit e90c4b3a4a
3 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ func TestRouteCreate(t *testing.T) {
{"/v1/apps/$/routes", `{ "route": { "image": "iron/hello", "path": "/myroute" } }`, http.StatusInternalServerError, models.ErrAppsValidationInvalidName},
// success
{"/v1/apps/a/routes", `{ "route": { "name": "myroute", "image": "iron/hello", "path": "/myroute" } }`, http.StatusOK, nil},
{"/v1/apps/a/routes", `{ "route": { "name": "myroute", "image": "iron/hello", "path": "/myroute" } }`, http.StatusCreated, nil},
} {
body := bytes.NewBuffer([]byte(test.body))
_, rec := routerRequest(t, router, "POST", test.path, body)