Documentation
¶
Index ¶
- func BuildGoBinary(t *testing.T, sourcePath string, outputName string) error
- func BuildGoTestBinary(t *testing.T, pkgPath string, outputName string) error
- func SetupPodmanEnv(t *testing.T)
- func StartKeycloakContainer(ctx context.Context, t *testing.T, realmConfigPath string) (testcontainers.Container, error)
- func StartSystemdContainer(ctx context.Context, t *testing.T, files []testcontainers.ContainerFile) (testcontainers.Container, error)
- func WaitForService(ctx context.Context, t *testing.T, container testcontainers.Container, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGoBinary ¶
BuildGoBinary builds a go binary for linux/amd64 and returns its path.
func BuildGoTestBinary ¶
BuildGoTestBinary builds a go test binary for linux/amd64 and returns its path.
func SetupPodmanEnv ¶
SetupPodmanEnv configures the environment to use podman for testcontainers.
func StartKeycloakContainer ¶
func StartKeycloakContainer(ctx context.Context, t *testing.T, realmConfigPath string) (testcontainers.Container, error)
StartKeycloakContainer starts a Keycloak container for testing OAuth2 authentication. It imports the provided realm configuration file.
func StartSystemdContainer ¶
func StartSystemdContainer(ctx context.Context, t *testing.T, files []testcontainers.ContainerFile) (testcontainers.Container, error)
StartSystemdContainer starts an openSUSE bci-init container with systemd as PID 1. It accepts optional files to inject into the container before starting.
func WaitForService ¶
func WaitForService(ctx context.Context, t *testing.T, container testcontainers.Container, serviceName string) error
WaitForService enables and starts a service inside the container, then waits for it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.