Skip to content

Commit

Permalink
fixup! fixup! Revert "[CLOUDTRUST-1502] Self service API"
Browse files Browse the repository at this point in the history
  • Loading branch information
bsoniam committed Sep 5, 2019
1 parent 560932a commit 176b915
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/keycloakb/eventsdbmodule_test.go
Expand Up @@ -5,7 +5,7 @@ import (
"database/sql"
"testing"

"github.com/cloudtrust/common-service/http"
errorhandler "github.com/cloudtrust/common-service/errors"
api "github.com/cloudtrust/keycloak-bridge/api/events"
"github.com/cloudtrust/keycloak-bridge/pkg/events/mock"
"github.com/golang/mock/gomock"
Expand All @@ -22,7 +22,7 @@ func TestModuleGetEvents(t *testing.T) {
params := map[string]string{"origin": "origin-1", "max": "5"}
var empty [0]api.AuditRepresentation
var expectedResult = empty[:]
var expectedError error = http.CreateMissingParameterError("")
var expectedError error = errorhandler.CreateMissingParameterError("")
var rows sql.Rows
dbEvents.EXPECT().Query(gomock.Any(), params["origin"], nil, nil, nil, nil, nil, 0, params["max"]).Return(&rows, expectedError).Times(1)
res, err := module.GetEvents(context.Background(), params)
Expand All @@ -39,7 +39,7 @@ func TestModuleGetEventsSummary(t *testing.T) {
module := NewEventsDBModule(dbEvents)

var expectedResult api.EventSummaryRepresentation
var expectedError error = http.CreateMissingParameterError("")
var expectedError error = errorhandler.CreateMissingParameterError("")
var rows sql.Rows
dbEvents.EXPECT().Query(gomock.Any()).Return(&rows, expectedError).Times(1)
res, err := module.GetEventsSummary(context.Background())
Expand Down
2 changes: 1 addition & 1 deletion pkg/management/component_test.go
Expand Up @@ -11,7 +11,7 @@ import (

cs "github.com/cloudtrust/common-service"
"github.com/cloudtrust/common-service/database"
commonhttp "github.com/cloudtrust/common-service/http"
commonhttp "github.com/cloudtrust/common-service/errors"
"github.com/cloudtrust/common-service/log"
api "github.com/cloudtrust/keycloak-bridge/api/management"
"github.com/cloudtrust/keycloak-bridge/pkg/management/mock"
Expand Down
2 changes: 1 addition & 1 deletion pkg/management/http_test.go
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

commonhttp "github.com/cloudtrust/common-service/http"
commonhttp "github.com/cloudtrust/common-service/errors"
"github.com/cloudtrust/common-service/log"
"github.com/cloudtrust/common-service/security"
api "github.com/cloudtrust/keycloak-bridge/api/management"
Expand Down

0 comments on commit 176b915

Please sign in to comment.