testing

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterForTest

func ClusterForTest() *v1alpha1.CassandraCluster

func FuzzCassandraClusterNodePools

func FuzzCassandraClusterNodePools(cluster *v1alpha1.CassandraCluster, rand *rand.Rand, size int)

func FuzzCassandraNodePool

func FuzzCassandraNodePool(np *v1alpha1.CassandraClusterNodePool, rand *rand.Rand, size int)

Types

type FakeControl

type FakeControl struct {
	SyncError error
}

func (*FakeControl) Sync

func (c *FakeControl) Sync(cluster *v1alpha1.CassandraCluster) error

type Fixture

type Fixture struct {
	Cluster                    *v1alpha1.CassandraCluster
	SeedProviderServiceControl cassandra.ControlInterface
	NodesServiceControl        cassandra.ControlInterface
	NodepoolControl            nodepool.Interface
	PilotControl               pilot.Interface
	ServiceAccountControl      serviceaccount.Interface
	RoleControl                role.Interface
	RoleBindingControl         rolebinding.Interface
	SeedLabellerControl        seedlabeller.Interface
	// contains filtered or unexported fields
}

func NewFixture

func NewFixture(t *testing.T) *Fixture

func (*Fixture) AddObjectK

func (f *Fixture) AddObjectK(o runtime.Object)

func (*Fixture) AddObjectN

func (f *Fixture) AddObjectN(o runtime.Object)

func (*Fixture) AssertPilotsLength

func (f *Fixture) AssertPilotsLength(l int)

func (*Fixture) AssertRoleBindingsLength

func (f *Fixture) AssertRoleBindingsLength(l int)

func (*Fixture) AssertRolesLength

func (f *Fixture) AssertRolesLength(l int)

func (*Fixture) AssertServiceAccountsLength

func (f *Fixture) AssertServiceAccountsLength(l int)

func (*Fixture) AssertServicesLength

func (f *Fixture) AssertServicesLength(l int)

func (*Fixture) AssertStatefulSetsLength

func (f *Fixture) AssertStatefulSetsLength(l int)

func (*Fixture) Pilots

func (f *Fixture) Pilots() *v1alpha1.PilotList

func (*Fixture) RoleBindings

func (f *Fixture) RoleBindings() *rbacv1.RoleBindingList

func (*Fixture) Roles

func (f *Fixture) Roles() *rbacv1.RoleList

func (*Fixture) Run

func (f *Fixture) Run()

func (*Fixture) RunExpectError

func (f *Fixture) RunExpectError()

func (*Fixture) ServiceAccounts

func (f *Fixture) ServiceAccounts() *v1.ServiceAccountList

func (*Fixture) Services

func (f *Fixture) Services() *v1.ServiceList

func (*Fixture) StatefulSets

func (f *Fixture) StatefulSets() *apps.StatefulSetList

Jump to

Keyboard shortcuts

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