Documentation
¶
Index ¶
- Constants
- func GetEnvRaw(key string) string
- func GetEnvWithPrefix(key string) string
- 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(status int, token string, raw string) *oauth2.RequestTokenResponse
- func TestConfig() *config.Config
- type AuthServerCookie
- type AuthServerXsrf
- type CookieAuthOpts
- type XsrfAuthOpts
Constants ¶
View Source
const EnvCamunderTestPrefix = "CAMUNDER_TEST_"
Variables ¶
This section is empty.
Functions ¶
func GetEnvWithPrefix ¶
func RequireEnvsWithPrefix ¶
func TestAuthJSON200Response ¶
func TestAuthJSON200Response(status int, token string, raw string) *oauth2.RequestTokenResponse
func TestConfig ¶
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 XsrfAuthOpts ¶
Click to show internal directories.
Click to hide internal directories.