diff --git a/pkg/middleware/openidconnect_test.go b/pkg/middleware/openidconnect_test.go index ce38cefc0f..19420ed8f8 100644 --- a/pkg/middleware/openidconnect_test.go +++ b/pkg/middleware/openidconnect_test.go @@ -8,8 +8,6 @@ import ( "testing" "github.com/coreos/go-oidc" - "github.com/micro/go-micro/v2/client" - "github.com/owncloud/ocis-accounts/pkg/proto/v0" "github.com/owncloud/ocis-pkg/v2/log" "golang.org/x/oauth2" ) @@ -67,26 +65,3 @@ func mockOP(retErr bool) OIDCProvider { } } - -func mockOpenidConnectMiddlewareAccSvc(retErr bool) proto.AccountsService { - if retErr { - return &proto.MockAccountsService{ - ListFunc: func(ctx context.Context, in *proto.ListAccountsRequest, opts ...client.CallOption) (out *proto.ListAccountsResponse, err error) { - return nil, fmt.Errorf("error returned by mockAccountsService LIST") - }, - } - } - - return &proto.MockAccountsService{ - ListFunc: func(ctx context.Context, in *proto.ListAccountsRequest, opts ...client.CallOption) (out *proto.ListAccountsResponse, err error) { - return &proto.ListAccountsResponse{ - Accounts: []*proto.Account{ - { - Id: "yay", - }, - }, - }, nil - }, - } - -}