Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
Signed-off-by: 1998-felix <[email protected]>
  • Loading branch information
felixgateru committed Aug 29, 2024
1 parent fa9f9d2 commit b2febb7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bootstrap/events/producer/streams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ func TestList(t *testing.T) {
identifyErr error
superAdminAuthRes *magistrala.AuthorizeRes
domainAdminAuthRes *magistrala.AuthorizeRes
listObjectsResponse *magistrala.ListObjectsRes
listObjectsResponse []string
listObjectsErr error
superAdmiAuthErr error
domainAdmiAuthErr error
Expand All @@ -838,7 +838,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
err: nil,
event: map[string]interface{}{
"thing_id": c.ThingID,
Expand Down Expand Up @@ -867,7 +867,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
err: nil,
event: map[string]interface{}{
"thing_id": c.ThingID,
Expand Down Expand Up @@ -896,7 +896,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
err: nil,
event: map[string]interface{}{
"thing_id": c.ThingID,
Expand Down Expand Up @@ -927,7 +927,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
superAdminAuthRes: &magistrala.AuthorizeRes{Authorized: false},
superAdmiAuthErr: svcerr.ErrAuthorization,
err: nil,
Expand All @@ -941,7 +941,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
superAdminAuthRes: &magistrala.AuthorizeRes{Authorized: false},
domainAdminAuthRes: &magistrala.AuthorizeRes{Authorized: false},
superAdmiAuthErr: svcerr.ErrAuthorization,
Expand All @@ -957,7 +957,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
superAdminAuthRes: &magistrala.AuthorizeRes{Authorized: false},
domainAdminAuthRes: &magistrala.AuthorizeRes{Authorized: false},
listObjectsErr: svcerr.ErrNotFound,
Expand All @@ -973,7 +973,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
superAdminAuthRes: &magistrala.AuthorizeRes{Authorized: true},
retrieveErr: nil,
err: nil,
Expand All @@ -987,7 +987,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
superAdminAuthRes: &magistrala.AuthorizeRes{Authorized: false},
domainAdminAuthRes: &magistrala.AuthorizeRes{Authorized: true},
retrieveErr: nil,
Expand All @@ -1002,7 +1002,7 @@ func TestList(t *testing.T) {
filter: bootstrap.Filter{},
offset: 0,
limit: 10,
listObjectsResponse: &magistrala.ListObjectsRes{},
listObjectsResponse: []string{},
superAdminAuthRes: &magistrala.AuthorizeRes{Authorized: false},
domainAdminAuthRes: &magistrala.AuthorizeRes{Authorized: false},
retrieveErr: nil,
Expand Down

0 comments on commit b2febb7

Please sign in to comment.