From 8e4f814c3aa310e96abd555fda235ec936952927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 19 Jun 2020 14:53:25 +0200 Subject: [PATCH] remove unused mock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- pkg/middleware/openidconnect_test.go | 25 ------------------------- 1 file changed, 25 deletions(-) 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 - }, - } - -}