Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
fix: things test
Browse files Browse the repository at this point in the history
Signed-off-by: Arvindh <[email protected]>
  • Loading branch information
arvindh123 committed Jan 25, 2024
1 parent 92dc606 commit 1f5a1ec
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions things/api/http/endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,33 +456,6 @@ func TestListThings(t *testing.T) {
status: http.StatusBadRequest,
err: apiutil.ErrValidation,
},
{
desc: "list things with owner_id",
token: validToken,
listThingsResponse: mgclients.ClientsPage{
Page: mgclients.Page{
Total: 1,
},
Clients: []mgclients.Client{client},
},
query: fmt.Sprintf("owner_id=%s", validID),
status: http.StatusOK,
err: nil,
},
{
desc: "list things with duplicate owner_id",
token: validToken,
query: "owner_id=1&owner_id=2",
status: http.StatusBadRequest,
err: apiutil.ErrInvalidQueryParams,
},
{
desc: "list things with invalid owner_id",
token: validToken,
query: "owner_id=invalid",
status: http.StatusBadRequest,
err: apiutil.ErrValidation,
},
{
desc: "list things with name",
token: validToken,
Expand Down

0 comments on commit 1f5a1ec

Please sign in to comment.