Versions in this module Expand all Collapse all v1 v1.0.1 May 14, 2024 v1.0.0 Mar 26, 2024 Changes in this version + const KubeConfig + var PodInitialized = corev1.PodCondition + var PodReady = corev1.PodCondition + func NoopLogFunc(...any) + type AddressMappings struct + func (a *AddressMappings) DialContext(ctx context.Context, network, addr string) (net.Conn, error) + func (a *AddressMappings) DialTLSContext(tlsConfig *tls.Config) func(context.Context, string, string) (net.Conn, error) + type CookieTracker struct + Cookies map[string]*http.Cookie + Delegate http.RoundTripper + func (c *CookieTracker) RoundTrip(req *http.Request) (*http.Response, error) + type DockerCompose struct + func NewDockerCompose(opts ...DockerComposeOption) DockerCompose + func (d DockerCompose) StartDockerService(name string) error + func (d DockerCompose) StopDockerService(name string) error + func (d DockerCompose) WaitForDockerService(name string, status DockerServiceStatus, timeout, tick time.Duration) error + type DockerComposeOption func(compose *DockerCompose) + func WithDockerComposeLogFunc(logFunc func(...any)) DockerComposeOption + type DockerServiceStatus interface + Match func(string) bool + String func() string + var DockerServiceContainerUp DockerServiceStatus = containsMatcher{ ... } + var DockerServiceContainerUpAndHealthy DockerServiceStatus = containsMatcher{ ... } + var DockerServiceExited DockerServiceStatus = containsMatcher{ ... } + type K8sSuite struct + Kubeconfig *rest.Config + func (k *K8sSuite) Apply(ctx context.Context, file string) error + func (k *K8sSuite) Delete(ctx context.Context, file string) error + func (k *K8sSuite) MustApply(ctx context.Context, file string) + func (k *K8sSuite) MustDelete(ctx context.Context, file string) + func (k *K8sSuite) ReadObjects(file string) []*unstructured.Unstructured + func (k *K8sSuite) SetupSuite() + func (k *K8sSuite) WaitForPods(client kubernetes.Interface, namespace, selector string, phase corev1.PodPhase, ...) + type LoggingRoundTripper struct + Delegate http.RoundTripper + LogBody bool + LogFunc func(...any) + func (l LoggingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) + type OIDCTestClient struct + func NewOIDCTestClient(opts ...Option) (*OIDCTestClient, error) + func (o *OIDCTestClient) Get(url string) (*http.Response, error) + func (o *OIDCTestClient) Login(formData map[string]string) (*http.Response, error) + func (o *OIDCTestClient) Logout() (*http.Response, error) + func (o *OIDCTestClient) ParseLoginForm(responseBody io.ReadCloser, formID string) error + func (o *OIDCTestClient) ParseLogoutForm(responseBody io.ReadCloser) error + func (o *OIDCTestClient) Send(req *http.Request) (*http.Response, error) + type Option func(*OIDCTestClient) error + func WithBaseURL(idpBaseURL string) Option + func WithCustomAddressMappings(mappings map[string]string) Option + func WithCustomCA(caCert string) Option + func WithLoggingOptions(logFunc func(...any), logBody bool) Option