Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Sep 26, 2023
1 parent dcc57e6 commit fe0bf11
Show file tree
Hide file tree
Showing 54 changed files with 502 additions and 704 deletions.
6 changes: 3 additions & 3 deletions api/ssi_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package ssiTypes

import (
"encoding/json"
vdrTypes "github.com/nuts-foundation/nuts-node/vdr/resolver"
"github.com/stretchr/testify/require"
"testing"
"time"
Expand All @@ -32,6 +31,7 @@ import (
"github.com/nuts-foundation/go-did/vc"
"github.com/nuts-foundation/nuts-node/crypto/hash"
vcr "github.com/nuts-foundation/nuts-node/vcr/api/vcr/v2"
"github.com/nuts-foundation/nuts-node/vdr/resolver"
)

const (
Expand Down Expand Up @@ -183,8 +183,8 @@ func createDidDocument() did.Document {
}
}

func createDidDocumentMetadata() vdrTypes.DocumentMetadata {
return vdrTypes.DocumentMetadata{
func createDidDocumentMetadata() resolver.DocumentMetadata {
return resolver.DocumentMetadata{
Created: time.Now(),
Hash: hash.RandomHash(),
Deactivated: true,
Expand Down
6 changes: 3 additions & 3 deletions auth/api/iam/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/nuts-foundation/nuts-node/core"
"github.com/nuts-foundation/nuts-node/vcr"
"github.com/nuts-foundation/nuts-node/vcr/openid4vci"
vdr2 "github.com/nuts-foundation/nuts-node/vdr"
"github.com/nuts-foundation/nuts-node/vdr"
"github.com/nuts-foundation/nuts-node/vdr/resolver"
"html/template"
"net/http"
Expand All @@ -49,13 +49,13 @@ var assets embed.FS
// Wrapper handles OAuth2 flows.
type Wrapper struct {
vcr vcr.VCR
vdr vdr2.VDR
vdr vdr.VDR
auth auth.AuthenticationServices
sessions *SessionManager
templates *template.Template
}

func New(authInstance auth.AuthenticationServices, vcrInstance vcr.VCR, vdrInstance vdr2.VDR) *Wrapper {
func New(authInstance auth.AuthenticationServices, vcrInstance vcr.VCR, vdrInstance vdr.VDR) *Wrapper {
templates := template.New("oauth2 templates")
_, err := templates.ParseFS(assets, "assets/*.html")
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions auth/api/iam/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/nuts-foundation/nuts-node/audit"
"github.com/nuts-foundation/nuts-node/auth"
"github.com/nuts-foundation/nuts-node/core"
vdr2 "github.com/nuts-foundation/nuts-node/vdr"
"github.com/nuts-foundation/nuts-node/vdr"
"github.com/nuts-foundation/nuts-node/vdr/resolver"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -168,7 +168,7 @@ func statusCodeFrom(err error) int {
type testCtx struct {
client *Wrapper
authnServices *auth.MockAuthenticationServices
vdr *vdr2.MockVDR
vdr *vdr.MockVDR
resolver *resolver.MockDIDResolver
}

Expand All @@ -179,7 +179,7 @@ func newTestClient(t testing.TB) *testCtx {
authnServices := auth.NewMockAuthenticationServices(ctrl)
authnServices.EXPECT().PublicURL().Return(publicURL).AnyTimes()
resolver := resolver.NewMockDIDResolver(ctrl)
vdr := vdr2.NewMockVDR(ctrl)
vdr := vdr.NewMockVDR(ctrl)
vdr.EXPECT().Resolver().Return(resolver).AnyTimes()
return &testCtx{
authnServices: authnServices,
Expand Down
14 changes: 5 additions & 9 deletions auth/contract/signer_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions auth/mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions auth/services/mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions auth/services/oauth/mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions auth/services/selfsigned/types/mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fe0bf11

Please sign in to comment.