Documentation ¶
Index ¶
- func ExpectDeleteResource(c *check.C, w services.Watcher, timeout time.Duration, ...)
- func ExpectResource(c *check.C, w services.Watcher, timeout time.Duration, ...)
- func NewServer(kind, name, addr, namespace string) *services.ServerV2
- func NewTestCA(caType services.CertAuthType, clusterName string, privateKeys ...[]byte) *services.CertAuthorityV2
- type ServicesTestSuite
- func (s *ServicesTestSuite) AuthPreference(c *check.C)
- func (s *ServicesTestSuite) CertAuthCRUD(c *check.C)
- func (s *ServicesTestSuite) ClusterConfig(c *check.C, opts ...SuiteOption)
- func (s *ServicesTestSuite) Events(c *check.C)
- func (s *ServicesTestSuite) EventsClusterConfig(c *check.C)
- func (s *ServicesTestSuite) GithubConnectorCRUD(c *check.C)
- func (s *ServicesTestSuite) LoginAttempts(c *check.C)
- func (s *ServicesTestSuite) NamespacesCRUD(c *check.C)
- func (s *ServicesTestSuite) PasswordHashCRUD(c *check.C)
- func (s *ServicesTestSuite) RemoteClustersCRUD(c *check.C)
- func (s *ServicesTestSuite) ReverseTunnelsCRUD(c *check.C)
- func (s *ServicesTestSuite) RolesCRUD(c *check.C)
- func (s *ServicesTestSuite) SAMLCRUD(c *check.C)
- func (s *ServicesTestSuite) ServerCRUD(c *check.C)
- func (s *ServicesTestSuite) StaticTokens(c *check.C)
- func (s *ServicesTestSuite) TokenCRUD(c *check.C)
- func (s *ServicesTestSuite) TunnelConnectionsCRUD(c *check.C)
- func (s *ServicesTestSuite) U2FCRUD(c *check.C)
- func (s *ServicesTestSuite) Users() services.UsersService
- func (s *ServicesTestSuite) UsersCRUD(c *check.C)
- func (s *ServicesTestSuite) UsersExpiry(c *check.C)
- func (s *ServicesTestSuite) WebSessionCRUD(c *check.C)
- type SuiteOption
- type SuiteOptions
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 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 }
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) 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 (s *ServicesTestSuite) Users() services.UsersService
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
Click to show internal directories.
Click to hide internal directories.