Documentation
¶
Index ¶
- func GetEnvRaw(key string) string
- func GetEnvWithPrefix(key string) string
- func ITConfigFromEnv(t *testing.T) *config.Config
- func ITCtx(t *testing.T, d time.Duration) context.Context
- func ITHttpClient(t *testing.T, ctx context.Context, cfg *config.Config, log *slog.Logger) *http.Client
- func LogJson(t *testing.T, v any)
- func Logger(t *testing.T) *slog.Logger
- func RequireEnv(t testing.TB, key string) string
- func RequireEnvRaw(t testing.TB, key string) string
- func RequireEnvWithPrefix(t testing.TB, key string) string
- func RequireEnvs(t testing.TB, keys ...string) map[string]string
- func RequireEnvsWithPrefix(t testing.TB, keys ...string) map[string]string
- func TestAuthJSON200Response(t *testing.T, status int, token string, raw string) *oauth2.RequestTokenResponse
- func TestConfig(t *testing.T) *config.Config
- type AuthServerCookie
- type AuthServerXsrf
- type CookieAuthOpts
- type FakeServer
- type XsrfAuthOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvWithPrefix ¶
func ITHttpClient ¶
func RequireEnvsWithPrefix ¶
func TestAuthJSON200Response ¶
Types ¶
type AuthServerCookie ¶
func StartAuthServerCookie ¶
func StartAuthServerCookie(t testing.TB, opts CookieAuthOpts) *AuthServerCookie
func (*AuthServerCookie) Close ¶
func (s *AuthServerCookie) Close()
type AuthServerXsrf ¶
func StartAuthServerXSRF ¶
func StartAuthServerXSRF(t testing.TB, opts XsrfAuthOpts) *AuthServerXsrf
func (*AuthServerXsrf) Close ¶
func (s *AuthServerXsrf) Close()
type CookieAuthOpts ¶
type FakeServer ¶
func NewFakeServer ¶
func NewFakeServer(t *testing.T) *FakeServer
type XsrfAuthOpts ¶
Click to show internal directories.
Click to hide internal directories.