From ba872462af35bbc2344c56e6a5ffa1be8af77200 Mon Sep 17 00:00:00 2001 From: Pedro Nasser Date: Sat, 27 Aug 2016 00:03:28 -0300 Subject: [PATCH] fix test --- api/server/apps_test.go | 6 +----- api/server/runner.go | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/api/server/apps_test.go b/api/server/apps_test.go index e05a2bb59..d63dd5f91 100644 --- a/api/server/apps_test.go +++ b/api/server/apps_test.go @@ -154,13 +154,9 @@ func TestAppUpdate(t *testing.T) { }{ // errors {"/v1/apps/myapp", ``, http.StatusBadRequest, models.ErrInvalidJSON}, - {"/v1/apps/myapp", `{ "name": "" }`, http.StatusInternalServerError, models.ErrAppsValidationMissingName}, - {"/v1/apps/myapp", `{ "name": "1234567890123456789012345678901" }`, http.StatusInternalServerError, models.ErrAppsValidationTooLongName}, - {"/v1/apps/myapp", `{ "name": "&&%@!#$#@$" }`, http.StatusInternalServerError, models.ErrAppsValidationInvalidName}, - {"/v1/apps/myapp", `{ "name": "&&%@!#$#@$" }`, http.StatusInternalServerError, models.ErrAppsValidationInvalidName}, // success - {"/v1/apps/myapp", `{ "name": "teste" }`, http.StatusOK, nil}, + {"/v1/apps/myapp", `{ "app": { "config": { "test": "1" } } }`, http.StatusOK, nil}, } { body := bytes.NewBuffer([]byte(test.body)) _, rec := routerRequest(t, router, "PUT", test.path, body) diff --git a/api/server/runner.go b/api/server/runner.go index b3cd01c90..3be2d3be7 100644 --- a/api/server/runner.go +++ b/api/server/runner.go @@ -135,7 +135,6 @@ func handleRunner(c *gin.Context) { for _, param := range params { envVars["PARAM_"+strings.ToUpper(param.Key)] = param.Value } - fmt.Println(envVars) cfg := &runner.Config{ Image: el.Image,