testidplister

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestFederationDomainIdentityProvidersListerFinder

type TestFederationDomainIdentityProvidersListerFinder struct {
	// contains filtered or unexported fields
}

TestFederationDomainIdentityProvidersListerFinder implements FederationDomainIdentityProvidersListerFinderI for testing purposes.

func (*TestFederationDomainIdentityProvidersListerFinder) FindDefaultIDP

func (*TestFederationDomainIdentityProvidersListerFinder) FindUpstreamIDPByDisplayName

func (*TestFederationDomainIdentityProvidersListerFinder) GetIdentityProviders

func (*TestFederationDomainIdentityProvidersListerFinder) HasDefaultIDP

func (*TestFederationDomainIdentityProvidersListerFinder) IDPCount

func (*TestFederationDomainIdentityProvidersListerFinder) SetActiveDirectoryIdentityProviders

func (t *TestFederationDomainIdentityProvidersListerFinder) SetActiveDirectoryIdentityProviders(providers []*oidctestutil.TestUpstreamLDAPIdentityProvider)

func (*TestFederationDomainIdentityProvidersListerFinder) SetGitHubIdentityProviders added in v0.31.0

func (*TestFederationDomainIdentityProvidersListerFinder) SetLDAPIdentityProviders

func (*TestFederationDomainIdentityProvidersListerFinder) SetOIDCIdentityProviders

type UpstreamIDPListerBuilder

type UpstreamIDPListerBuilder struct {
	// contains filtered or unexported fields
}

UpstreamIDPListerBuilder can be used to build either a dynamicupstreamprovider.DynamicUpstreamIDPProvider or a FederationDomainIdentityProvidersListerFinderI for testing.

func NewUpstreamIDPListerBuilder

func NewUpstreamIDPListerBuilder() *UpstreamIDPListerBuilder

func (*UpstreamIDPListerBuilder) BuildDynamicUpstreamIDPProvider

func (*UpstreamIDPListerBuilder) BuildFederationDomainIdentityProvidersListerFinder

func (b *UpstreamIDPListerBuilder) BuildFederationDomainIdentityProvidersListerFinder() *TestFederationDomainIdentityProvidersListerFinder

func (*UpstreamIDPListerBuilder) CountAllCallsToAnyUpstreamRefresh added in v0.31.0

func (b *UpstreamIDPListerBuilder) CountAllCallsToAnyUpstreamRefresh() int

func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToActiveDirectoryPerformRefresh added in v0.31.0

func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToActiveDirectoryPerformRefresh(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.PerformLDAPRefreshArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToGithubGetUser added in v0.31.0

func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToGithubGetUser(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.GetUserArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToLDAPPerformRefresh added in v0.31.0

func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToLDAPPerformRefresh(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.PerformLDAPRefreshArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToOIDCPerformRefresh added in v0.31.0

func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToOIDCPerformRefresh(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.PerformOIDCRefreshArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToPasswordCredentialsGrantAndValidateTokens

func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToPasswordCredentialsGrantAndValidateTokens(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.PasswordCredentialsGrantAndValidateTokensArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToRevokeToken

func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToRevokeToken(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.RevokeTokenArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyOneCallToValidateToken

func (b *UpstreamIDPListerBuilder) RequireExactlyOneCallToValidateToken(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.ValidateTokenAndMergeWithUserInfoArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyOneGitHubAuthcodeExchange added in v0.31.0

func (b *UpstreamIDPListerBuilder) RequireExactlyOneGitHubAuthcodeExchange(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.ExchangeAuthcodeArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyOneOIDCAuthcodeExchange added in v0.31.0

func (b *UpstreamIDPListerBuilder) RequireExactlyOneOIDCAuthcodeExchange(
	t *testing.T,
	expectedPerformedByUpstreamName string,
	expectedArgs *oidctestutil.ExchangeAuthcodeAndValidateTokenArgs,
)

func (*UpstreamIDPListerBuilder) RequireExactlyZeroAuthcodeExchanges added in v0.31.0

func (b *UpstreamIDPListerBuilder) RequireExactlyZeroAuthcodeExchanges(t *testing.T)

func (*UpstreamIDPListerBuilder) RequireExactlyZeroCallsToAnyUpstreamRefresh added in v0.31.0

func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToAnyUpstreamRefresh(t *testing.T)

func (*UpstreamIDPListerBuilder) RequireExactlyZeroCallsToPasswordCredentialsGrantAndValidateTokens

func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToPasswordCredentialsGrantAndValidateTokens(t *testing.T)

func (*UpstreamIDPListerBuilder) RequireExactlyZeroCallsToRevokeToken

func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToRevokeToken(t *testing.T)

func (*UpstreamIDPListerBuilder) RequireExactlyZeroCallsToValidateToken

func (b *UpstreamIDPListerBuilder) RequireExactlyZeroCallsToValidateToken(t *testing.T)

func (*UpstreamIDPListerBuilder) WithActiveDirectory

func (b *UpstreamIDPListerBuilder) WithActiveDirectory(upstreamActiveDirectoryIdentityProviders ...*oidctestutil.TestUpstreamLDAPIdentityProvider) *UpstreamIDPListerBuilder

func (*UpstreamIDPListerBuilder) WithDefaultIDPDisplayName

func (b *UpstreamIDPListerBuilder) WithDefaultIDPDisplayName(defaultIDPDisplayName string) *UpstreamIDPListerBuilder

func (*UpstreamIDPListerBuilder) WithGitHub added in v0.31.0

func (b *UpstreamIDPListerBuilder) WithGitHub(upstreamGithubIdentityProviders ...*oidctestutil.TestUpstreamGitHubIdentityProvider) *UpstreamIDPListerBuilder

func (*UpstreamIDPListerBuilder) WithLDAP

func (*UpstreamIDPListerBuilder) WithOIDC

Jump to

Keyboard shortcuts

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