Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockServer ¶
func NewMockServer(t *testing.T, config MockServerConfig) *httptest.Server
NewMockServer creates a new HTTPS mock server with the given config
func SetupTestEnv ¶
SetupTestEnv sets up test environment variables
func TeardownTestEnv ¶
TeardownTestEnv cleans up test environment variables
Types ¶
type MockServerConfig ¶
type MockServerConfig struct {
LoginResponse leostream.AuthResponse
Paths map[string]http.HandlerFunc
}
MockServerConfig holds configuration for mock server responses
Click to show internal directories.
Click to hide internal directories.