Documentation
¶
Index ¶
- Constants
- func NewTestLogger() *slog.Logger
- func ReadLine(tb testing.TB, reader *bufio.Reader) string
- func SendLine(tb testing.TB, conn net.Conn, msg string, a ...any)
- func SetupMockEnvironment(tb testing.TB, conf config.Config) (config.Config, *openvpn.Client, net.Listener, *oauth2.Provider, ...)
- func SetupResourceServer(tb testing.TB, clientListener net.Listener) (*httptest.Server, *url.URL, config.OAuth2Client, error)
- func TCPTestListener(tb testing.TB) net.Listener
- type Logger
Constants ¶
View Source
const Secret = "0123456789101112"
Variables ¶
This section is empty.
Functions ¶
func NewTestLogger ¶
func SetupMockEnvironment ¶ added in v1.13.0
func SetupMockEnvironment(tb testing.TB, conf config.Config) ( config.Config, *openvpn.Client, net.Listener, *oauth2.Provider, *httptest.Server, *http.Client, func(), )
SetupMockEnvironment setups an OpenVPN and IDP mock
func SetupResourceServer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.