From 9a31c59847c5cdb4a9bb6b50a60487bef69d3eac Mon Sep 17 00:00:00 2001 From: Wout Slakhorst Date: Tue, 19 Sep 2023 11:34:29 +0200 Subject: [PATCH] test fix --- auth/api/iam/api_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/auth/api/iam/api_test.go b/auth/api/iam/api_test.go index 18d8530c5f..4033a39243 100644 --- a/auth/api/iam/api_test.go +++ b/auth/api/iam/api_test.go @@ -150,7 +150,7 @@ func TestWrapper_GetOAuthClientMetadata(t *testing.T) { // 200 ctx := newTestClient(t) did := did.MustParseDID("did:nuts:123") - ctx.vdrInstance.EXPECT().IsOwner(nil, did).Return(true, nil) + ctx.vdr.EXPECT().IsOwner(nil, did).Return(true, nil) res, err := ctx.client.GetOAuthClientMetadata(nil, GetOAuthClientMetadataRequestObject{Id: did.ID}) @@ -181,7 +181,7 @@ func TestWrapper_GetOAuthClientMetadata(t *testing.T) { //404 ctx := newTestClient(t) did := did.MustParseDID("did:nuts:123") - ctx.vdrInstance.EXPECT().IsOwner(nil, did) + ctx.vdr.EXPECT().IsOwner(nil, did) res, err := ctx.client.GetOAuthClientMetadata(nil, GetOAuthClientMetadataRequestObject{Id: did.ID}) @@ -193,7 +193,7 @@ func TestWrapper_GetOAuthClientMetadata(t *testing.T) { //404 ctx := newTestClient(t) did := did.MustParseDID("did:nuts:123") - ctx.vdrInstance.EXPECT().IsOwner(nil, did).Return(false, vdr.ErrNotFound) + ctx.vdr.EXPECT().IsOwner(nil, did).Return(false, vdr.ErrNotFound) res, err := ctx.client.GetOAuthClientMetadata(nil, GetOAuthClientMetadataRequestObject{Id: did.ID}) @@ -205,7 +205,7 @@ func TestWrapper_GetOAuthClientMetadata(t *testing.T) { //500 ctx := newTestClient(t) did := did.MustParseDID("did:nuts:123") - ctx.vdrInstance.EXPECT().IsOwner(nil, did).Return(false, errors.New("unknown error")) + ctx.vdr.EXPECT().IsOwner(nil, did).Return(false, errors.New("unknown error")) res, err := ctx.client.GetOAuthClientMetadata(nil, GetOAuthClientMetadataRequestObject{Id: did.ID})