Documentation
¶
Index ¶
Constants ¶
const VaultRootToken = "root"
VaultRootToken is the dev-mode root token used by the throwaway Vault container created by CreateVault.
Variables ¶
var ( Alice = testutil.Alice Bob = testutil.Bob Carol = testutil.Carol Mallory = testutil.Mallory RandomBytes = testutil.RandomBytes RandomDID = testutil.RandomDID RandomSigner = testutil.RandomSigner RandomIssuer = testutil.RandomIssuer )
Functions ¶
func CreatePostgres ¶
CreatePostgres starts a throwaway Postgres container, runs the hilt migrations against it, and returns a connection pool. The container is cleaned up when the test finishes.
func CreateVault ¶
CreateVault starts a throwaway HashiCorp Vault dev-mode container (which auto-mounts a KV v2 engine at "secret") and returns its address and root token. The container is cleaned up when the test finishes.
func IsDockerAvailable ¶
IsDockerAvailable returns true if the docker daemon is available, useful for skipping tests when docker isn't running.
func IsRunningInCI ¶
IsRunningInCI returns true if the process is running in a CI environment.
Types ¶
This section is empty.