Skip to content

Commit

Permalink
Remove comment since we have test
Browse files Browse the repository at this point in the history
  • Loading branch information
diyan committed Feb 13, 2017
1 parent 53c3d5b commit ecfb00e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
18 changes: 0 additions & 18 deletions api/endpoints/project_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,3 @@ func ProjectTagsGetEndpoint(c echo.Context) error {
}
return c.JSON(http.StatusOK, tags)
}

/* EXPECTED RESPONSE
curl -X GET http://localhost:9001/api/0/projects/acme/api/tags/
[
{
"uniqueValues": 1,
"id": "2",
"key": "server_name",
"name": "Server"
},
{
"uniqueValues": 1,
"id": "1",
"key": "level",
"name": "Level"
}
]
*/
1 change: 1 addition & 0 deletions api/endpoints/project_tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ func (t *testSuite) TestProjectTags_Get() {

res, bodyStr, errs := t.Client.Get("http://example.com/api/0/projects/acme-team/acme/tags/").End()
t.Nil(errs)
// TODO in the response uniqueValues should be equal to 1
t.JSONEq(`[{
"id": "1",
"key": "server_name",
Expand Down

0 comments on commit ecfb00e

Please sign in to comment.