From 1f5a1ec0d14605844b670f1b31d7d379b06a3100 Mon Sep 17 00:00:00 2001 From: Arvindh Date: Thu, 25 Jan 2024 21:05:45 +0530 Subject: [PATCH] fix: things test Signed-off-by: Arvindh --- things/api/http/endpoints_test.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/things/api/http/endpoints_test.go b/things/api/http/endpoints_test.go index fc44c3e5a..cbe12647c 100644 --- a/things/api/http/endpoints_test.go +++ b/things/api/http/endpoints_test.go @@ -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,