test

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAccount

type MockAccount struct {
	*storagev1alpha3.Account
}

MockAccount builder for testing account object

func NewMockAccount

func NewMockAccount(name string) *MockAccount

NewMockAccount creates new account wrapper

func (*MockAccount) WithDeleteTimestamp

func (ta *MockAccount) WithDeleteTimestamp(t metav1.Time) *MockAccount

WithDeleteTimestamp sets metadata deletion timestamp

func (*MockAccount) WithFinalizer

func (ta *MockAccount) WithFinalizer(f string) *MockAccount

WithFinalizer sets finalizer

func (*MockAccount) WithFinalizers

func (ta *MockAccount) WithFinalizers(f []string) *MockAccount

WithFinalizers sets finalizers list

func (*MockAccount) WithObjectMeta

func (ta *MockAccount) WithObjectMeta(om metav1.ObjectMeta) *MockAccount

WithObjectMeta sets ObjectMeta value

func (*MockAccount) WithSpecClaimRef

func (ta *MockAccount) WithSpecClaimRef(ref *corev1.ObjectReference) *MockAccount

WithSpecClaimRef set class reference

func (*MockAccount) WithSpecClassRef

func (ta *MockAccount) WithSpecClassRef(ref *corev1.ObjectReference) *MockAccount

WithSpecClassRef set class reference

func (*MockAccount) WithSpecProvider

func (ta *MockAccount) WithSpecProvider(name string) *MockAccount

WithSpecProvider set a provider

func (*MockAccount) WithSpecReclaimPolicy

func (ta *MockAccount) WithSpecReclaimPolicy(policy runtimev1alpha1.ReclaimPolicy) *MockAccount

WithSpecReclaimPolicy sets resource reclaim policy

func (*MockAccount) WithSpecStatusFromProperties

func (ta *MockAccount) WithSpecStatusFromProperties(props *storage.AccountProperties) *MockAccount

WithSpecStatusFromProperties set storage account spec status from storage properties

func (*MockAccount) WithSpecStorageAccountName

func (ta *MockAccount) WithSpecStorageAccountName(name string) *MockAccount

WithSpecStorageAccountName sets spec value

func (*MockAccount) WithSpecStorageAccountSpec

func (ta *MockAccount) WithSpecStorageAccountSpec(spec *storagev1alpha3.StorageAccountSpec) *MockAccount

WithSpecStorageAccountSpec sets storage account specs

func (*MockAccount) WithSpecWriteConnectionSecretToReference

func (ta *MockAccount) WithSpecWriteConnectionSecretToReference(ns, name string) *MockAccount

WithSpecWriteConnectionSecretToReference sets where the storage account will write its connection secret.

func (*MockAccount) WithStatusBindingPhase

func (ta *MockAccount) WithStatusBindingPhase(p runtimev1alpha1.BindingPhase) *MockAccount

WithStatusBindingPhase sets the storage account's binding phase.

func (*MockAccount) WithStatusConditions

func (ta *MockAccount) WithStatusConditions(c ...runtimev1alpha1.Condition) *MockAccount

WithStatusConditions sets the storage account's conditioned status.

func (*MockAccount) WithStorageAccountStatus

func (ta *MockAccount) WithStorageAccountStatus(status *storagev1alpha3.StorageAccountStatus) *MockAccount

WithStorageAccountStatus set storage account status

func (*MockAccount) WithTypeMeta

func (ta *MockAccount) WithTypeMeta(tm metav1.TypeMeta) *MockAccount

WithTypeMeta sets TypeMeta value

func (*MockAccount) WithUID

func (ta *MockAccount) WithUID(uid string) *MockAccount

WithUID sets UID value

type MockContainer

type MockContainer struct {
	*storagev1alpha3.Container
}

MockContainer builder to create a continer object for testing

func NewMockContainer

func NewMockContainer(name string) *MockContainer

NewMockContainer new container builcer

func (*MockContainer) WithDeleteTimestamp

func (tc *MockContainer) WithDeleteTimestamp(t time.Time) *MockContainer

WithDeleteTimestamp sets deletion timestamp value

func (*MockContainer) WithFinalizer

func (tc *MockContainer) WithFinalizer(f string) *MockContainer

WithFinalizer sets finalizer

func (*MockContainer) WithFinalizers

func (tc *MockContainer) WithFinalizers(f []string) *MockContainer

WithFinalizers sets finalizers list

func (*MockContainer) WithObjectMeta

func (tc *MockContainer) WithObjectMeta(om metav1.ObjectMeta) *MockContainer

WithObjectMeta sets ObjectMeta value

func (*MockContainer) WithSpecAccountRef

func (tc *MockContainer) WithSpecAccountRef(name string) *MockContainer

WithSpecAccountRef sets spec account reference value

func (*MockContainer) WithSpecClaimRef

func (tc *MockContainer) WithSpecClaimRef(ref *corev1.ObjectReference) *MockContainer

WithSpecClaimRef set class reference

func (*MockContainer) WithSpecClassRef

func (tc *MockContainer) WithSpecClassRef(ref *corev1.ObjectReference) *MockContainer

WithSpecClassRef set class reference

func (*MockContainer) WithSpecMetadata

func (tc *MockContainer) WithSpecMetadata(meta map[string]string) *MockContainer

WithSpecMetadata sets spec metadata value

func (*MockContainer) WithSpecNameFormat

func (tc *MockContainer) WithSpecNameFormat(f string) *MockContainer

WithSpecNameFormat sets spec name format

func (*MockContainer) WithSpecPAC

func (tc *MockContainer) WithSpecPAC(pac azblob.PublicAccessType) *MockContainer

WithSpecPAC sets spec public access type value

func (*MockContainer) WithSpecReclaimPolicy

func (tc *MockContainer) WithSpecReclaimPolicy(p runtimev1alpha1.ReclaimPolicy) *MockContainer

WithSpecReclaimPolicy sets spec reclaim policy value

func (*MockContainer) WithStatusBindingPhase

func (tc *MockContainer) WithStatusBindingPhase(p runtimev1alpha1.BindingPhase) *MockContainer

WithStatusBindingPhase sets the binding phase.

func (*MockContainer) WithStatusConditions

func (tc *MockContainer) WithStatusConditions(c ...runtimev1alpha1.Condition) *MockContainer

WithStatusConditions sets the conditioned status.

func (*MockContainer) WithTypeMeta

func (tc *MockContainer) WithTypeMeta(tm metav1.TypeMeta) *MockContainer

WithTypeMeta sets TypeMeta value

func (*MockContainer) WithUID

func (tc *MockContainer) WithUID(uid string) *MockContainer

WithUID sets UID value

Jump to

Keyboard shortcuts

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