mock

package
v0.0.0-...-dbb2ee5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	IssuerURL                 string
	TokenURL                  string
	JwksURI                   string
	VirtualServiceDestination string
	Subdomain                 string
	// contains filtered or unexported fields
}

func DeployMock

func DeployMock(t *testing.T, ns string, options ...Option) (*Mock, error)

func (*Mock) GetIssuerURL

func (m *Mock) GetIssuerURL() string

func (*Mock) GetJwksURI

func (m *Mock) GetJwksURI() string

func (*Mock) GetToken

func (m *Mock) GetToken(t *testing.T, options ...oauth2.GetTokenOption) (string, error)

func (*Mock) MakeRequest

func (m *Mock) MakeRequest(t *testing.T, method, url string, options ...oauth2.RequestOption) (statusCode int, responseHeaders map[string][]string, responseBody []byte, err error)

type Option

type Option func(*Options)

func WithDomain

func WithDomain(domain string) Option

type Options

type Options struct {
	Domain string
}

Jump to

Keyboard shortcuts

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