testutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedKeycloakService

type MockedKeycloakService struct {
	mock.Mock
}

func (*MockedKeycloakService) GetClientSecret

func (m *MockedKeycloakService) GetClientSecret(ctx context.Context, token string, realm string, clientID string) (*gocloak.CredentialRepresentation, error)

func (*MockedKeycloakService) GetClients

func (m *MockedKeycloakService) GetClients(ctx context.Context, token string, realm string, params gocloak.GetClientsParams) ([]*gocloak.Client, error)

func (*MockedKeycloakService) GetWellKnownOpenidConfiguration

func (m *MockedKeycloakService) GetWellKnownOpenidConfiguration(ctx context.Context, realm string) (*keycloakservice.WellKnownOpenidConfiguration, error)

func (*MockedKeycloakService) LoginClient

func (m *MockedKeycloakService) LoginClient(ctx context.Context, clientID string, clientSecret string, realm string) (*gocloak.JWT, error)

mock implementation of KeycloakService

type MockedKeycloakServiceFactory

type MockedKeycloakServiceFactory struct {
	MockedService *MockedKeycloakService
}

func NewMockedKeycloakServiceFactory

func NewMockedKeycloakServiceFactory(service *MockedKeycloakService) *MockedKeycloakServiceFactory

func (*MockedKeycloakServiceFactory) NewClient

Jump to

Keyboard shortcuts

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