testhelper

package
v0.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func K6Path added in v0.38.5

func K6Path(t *testing.T) string

func Logger added in v0.38.5

func Logger(t *testing.T) zerolog.Logger

func ModuleDir added in v0.18.0

func ModuleDir(t *testing.T) string

func MustReadFile

func MustReadFile(t *testing.T, filename string) []byte

Types

type NoopSecretStore added in v0.41.3

type NoopSecretStore struct{}

NoopSecretStore is a test implementation of the SecretProvider interface that returns an empty secret store. Use this in tests when you need a secret store but don't care about the actual secrets.

func (NoopSecretStore) GetSecretCredentials added in v0.41.3

func (n NoopSecretStore) GetSecretCredentials(ctx context.Context, tenantID model.GlobalID) (*sm.SecretStore, error)

func (NoopSecretStore) GetSecretValue added in v0.42.0

func (n NoopSecretStore) GetSecretValue(ctx context.Context, tenantID model.GlobalID, secretKey string) (string, error)

type TestSecretStore added in v0.41.3

type TestSecretStore struct{}

TestSecretStore is a test implementation of the SecretProvider interface that returns a mock secret store with test credentials. Use this in tests when you need to test behavior that depends on having actual secret values.

func (TestSecretStore) GetSecretCredentials added in v0.41.3

func (s TestSecretStore) GetSecretCredentials(ctx context.Context, tenantId model.GlobalID) (*sm.SecretStore, error)

func (TestSecretStore) GetSecretValue added in v0.42.0

func (s TestSecretStore) GetSecretValue(ctx context.Context, tenantID model.GlobalID, secretKey string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL