From fd2aba92a3b677542a0d2a9b6f3f297fdf3cd762 Mon Sep 17 00:00:00 2001 From: Wout Slakhorst Date: Tue, 8 Oct 2024 10:12:44 +0200 Subject: [PATCH] fixes --- discovery/module_test.go | 2 +- policy/local.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/discovery/module_test.go b/discovery/module_test.go index ef94407d5..4e781ef78 100644 --- a/discovery/module_test.go +++ b/discovery/module_test.go @@ -522,7 +522,7 @@ func TestModule_ActivateServiceForSubject(t *testing.T) { subject := make([]credential.DiscoveryRegistrationCredentialSubject, 0) _ = credentials[1].UnmarshalCredentialSubject(&subject) assert.Equal(t, "value", subject[0]["test"]) - assert.Equal(t, "https://example.com/oauth2/alice", subject[0]["authServerURL"]) + assert.Equal(t, "https://nuts.nl/oauth2/alice", subject[0]["authServerURL"]) return &vpAlice, nil }) testContext.subjectManager.EXPECT().ListDIDs(gomock.Any(), aliceSubject).Return([]did.DID{aliceDID}, nil) diff --git a/policy/local.go b/policy/local.go index e46edbd86..81719eb7d 100644 --- a/policy/local.go +++ b/policy/local.go @@ -61,6 +61,8 @@ func (b *LocalPDP) Configure(_ core.ServerConfig) error { return fmt.Errorf("failed to load policy from directory: %w", err) } } + } + if b.config.Directory != "" { if err := b.loadFromDirectory(b.config.Directory); err != nil { return fmt.Errorf("failed to load policy from directory: %w", err) }