suite

package
v4.3.10+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 21 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectDeleteResource

func ExpectDeleteResource(c *check.C, w services.Watcher, timeout time.Duration, resource services.Resource)

ExpectDeleteResource expects a delete event of a certain kind

func ExpectResource

func ExpectResource(c *check.C, w services.Watcher, timeout time.Duration, resource services.Resource)

ExpectResource expects a Put event of a certain resource

func NewServer

func NewServer(kind, name, addr, namespace string) *services.ServerV2

NewServer creates a new server resource

func NewTestCA

func NewTestCA(caType services.CertAuthType, clusterName string, privateKeys ...[]byte) *services.CertAuthorityV2

NewTestCA returns new test authority with a test key as a public and signing key

Types

type ServicesTestSuite

type ServicesTestSuite struct {
	Access          services.Access
	CAS             services.Trust
	PresenceS       services.Presence
	ProvisioningS   services.Provisioner
	WebS            services.Identity
	ConfigS         services.ClusterConfiguration
	EventsS         services.Events
	UsersS          services.UsersService
	ChangesC        chan interface{}
	Clock           clockwork.FakeClock
	NewProxyWatcher services.NewProxyWatcherFunc
}

ServicesTestSuite is an acceptance test suite for services. It is used for local implementations and implementations using GRPC to guarantee consistency between local and remote services

func (*ServicesTestSuite) AuthPreference

func (s *ServicesTestSuite) AuthPreference(c *check.C)

AuthPreference tests authentication preference service

func (*ServicesTestSuite) CertAuthCRUD

func (s *ServicesTestSuite) CertAuthCRUD(c *check.C)

func (*ServicesTestSuite) ClusterConfig

func (s *ServicesTestSuite) ClusterConfig(c *check.C, opts ...SuiteOption)

ClusterConfig tests cluster configuration

func (*ServicesTestSuite) Events

func (s *ServicesTestSuite) Events(c *check.C)

Events tests various events variations

func (*ServicesTestSuite) EventsClusterConfig

func (s *ServicesTestSuite) EventsClusterConfig(c *check.C)

EventsClusterConfig tests cluster config resource events

func (*ServicesTestSuite) GithubConnectorCRUD

func (s *ServicesTestSuite) GithubConnectorCRUD(c *check.C)

func (*ServicesTestSuite) LoginAttempts

func (s *ServicesTestSuite) LoginAttempts(c *check.C)

func (*ServicesTestSuite) NamespacesCRUD

func (s *ServicesTestSuite) NamespacesCRUD(c *check.C)

func (*ServicesTestSuite) PasswordHashCRUD

func (s *ServicesTestSuite) PasswordHashCRUD(c *check.C)

func (*ServicesTestSuite) ProxyWatcher

func (s *ServicesTestSuite) ProxyWatcher(c *check.C)

ProxyWatcher tests proxy watcher

func (*ServicesTestSuite) RemoteClustersCRUD

func (s *ServicesTestSuite) RemoteClustersCRUD(c *check.C)

func (*ServicesTestSuite) ReverseTunnelsCRUD

func (s *ServicesTestSuite) ReverseTunnelsCRUD(c *check.C)

func (*ServicesTestSuite) RolesCRUD

func (s *ServicesTestSuite) RolesCRUD(c *check.C)

func (*ServicesTestSuite) SAMLCRUD

func (s *ServicesTestSuite) SAMLCRUD(c *check.C)

func (*ServicesTestSuite) ServerCRUD

func (s *ServicesTestSuite) ServerCRUD(c *check.C)

func (*ServicesTestSuite) StaticTokens

func (s *ServicesTestSuite) StaticTokens(c *check.C)

func (*ServicesTestSuite) TokenCRUD

func (s *ServicesTestSuite) TokenCRUD(c *check.C)

func (*ServicesTestSuite) TunnelConnectionsCRUD

func (s *ServicesTestSuite) TunnelConnectionsCRUD(c *check.C)

func (*ServicesTestSuite) U2FCRUD added in v1.3.0

func (s *ServicesTestSuite) U2FCRUD(c *check.C)

func (*ServicesTestSuite) Users

func (*ServicesTestSuite) UsersCRUD

func (s *ServicesTestSuite) UsersCRUD(c *check.C)

func (*ServicesTestSuite) UsersExpiry

func (s *ServicesTestSuite) UsersExpiry(c *check.C)

func (*ServicesTestSuite) WebSessionCRUD

func (s *ServicesTestSuite) WebSessionCRUD(c *check.C)

type SuiteOption

type SuiteOption func(s *SuiteOptions)

SuiteOption is a functional suite option

func SkipDelete

func SkipDelete() SuiteOption

SkipDelete instructs tests to skip testing delete features

type SuiteOptions

type SuiteOptions struct {
	// SkipDelete turns off deletes in tests
	SkipDelete bool
}

SuiteOptions provides functional arguments to turn certain parts of the test suite off

func CollectOptions

func CollectOptions(opts ...SuiteOption) SuiteOptions

CollectOptions collects suite options

Jump to

Keyboard shortcuts

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