Expand description
Utilities for running tests against a NATS instance.
Structsยง
- Nats
System ๐Credentials - Holds Keys for system- and operator account, which must match the server configuration.
Functionsยง
- authenticate_
as_ ๐sys - Attempts to create a new connection to a running NATS server, using the system user credentials. A system user (belonging to the SYS account) is the only account eligible to creating other accounts.
- authenticate_
via_ ๐jwt - Creates a NATS connection using the provided credentials
- create_
nats_ account_ for_ test - Creates a new NATS account to ensure that unit tests can run concurrently without interfering with each other.