In-memory StorageAdapter for tests.
Uses an Agent to store registrations, deployments, and nonces. Each
test should start its own adapter via start_link/1 and register it
with set_pid/1.
Manual usage
{:ok, pid} = Ltix.Test.StorageAdapter.start_link(
platforms: [platform]
)
Ltix.Test.StorageAdapter.set_pid(pid)
Summary
Functions
Returns a specification to start this module under a supervisor.
Register the adapter PID in the calling process.
Start the storage adapter agent.
Return the key the adapter signs with.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Register the adapter PID in the calling process.
Processes the caller starts, such as tasks and LiveViews, use the same adapter.
Start the storage adapter agent.
Options
:platforms- list ofLtix.Test.Platformstructs whose registration and deployment the adapter resolves (defaults to[]):registrations- list of structs implementingLtix.Registerablethat have no deployment (defaults to[])
@spec tool_jwk() :: Ltix.JWK.t()
Return the key the adapter signs with.
The key is generated the first time it is needed, and signing works without starting the adapter.