Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Nov 27, 2024
1 parent 2cfc06a commit f7e6d94
Show file tree
Hide file tree
Showing 2 changed files with 668 additions and 611 deletions.
12 changes: 4 additions & 8 deletions oauth2/fosite_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/ory/hydra/v2/internal"
. "github.com/ory/hydra/v2/oauth2"
"github.com/ory/x/contextx"
"github.com/ory/x/networkx"
"github.com/ory/x/sqlcon/dockertest"
)

Expand Down Expand Up @@ -72,14 +71,11 @@ func TestManagers(t *testing.T) {

require.NoError(t, registries["memory"].ClientManager().CreateClient(context.Background(), &client.Client{ID: "foobar"})) // this is a workaround because the client is not being created for memory store by test helpers.

for k, store := range registries {
net := &networkx.Network{}
require.NoError(t, store.Persister().Connection(context.Background()).First(net))
store.Config().MustSet(ctx, config.KeyEncryptSessionData, tc.enableSessionEncrypted)
store.WithContextualizer(&contextx.Static{NID: net.ID, C: store.Config().Source(ctx)})
TestHelperRunner(t, store, k)
for k, _ := range registries {
reg := internal.NewRegistrySQLFromURL(t, registries[k].Config().DSN(), true, &contextx.Default{})
reg.Config().MustSet(ctx, config.KeyEncryptSessionData, tc.enableSessionEncrypted)
TestHelperRunner(t, reg, k)
}
})

}
}
Loading

0 comments on commit f7e6d94

Please sign in to comment.