extauth

package
v0.0.0-...-8123bc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEndpoint

func AssertEndpoint(t *testing.T, method, url string, headers map[string]string, expectedHttpCode int)

AssertEndpoint dials `url` and asserts the response status. When TEST_IP_FAMILY selects more than one network the request is run once per family inside a t.Run(<network>, ...) sub-test; single-family runs match pre-dualstack behaviour byte for byte. Failures are reported via subtest t.Errorf / t.Fatal — no error return.

func AssertEndpointWithJWT

func AssertEndpointWithJWT(t *testing.T, method, url string, expectedHttpCode int, provider oauth2.Provider, options ...oauth2.RequestOption)

AssertEndpointWithJWT dials `url` with a JWT provider and asserts the response status. Failures are reported via subtest t.Errorf / t.Fatal (through the underlying require/assert helpers) and cause the subtest to fail; there is no error return because there is no assertion-level error a caller would meaningfully act on.

The JWT provider owns its HTTP client construction, so we cannot hand it the family-pinned client from ForEachDialNetwork. Instead we thread the selected network into the provider via oauth2.WithNetwork so the authenticated dial is exercised over the family selected by TEST_IP_FAMILY. On k3d (TEST_IP_FAMILY unset) the network is "" and behaviour is byte-identical to before.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL