assertion

package
v0.0.0-...-bf90f01 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceAssertion

type NamespaceAssertion struct {
	// contains filtered or unexported fields
}

func AssertNamespace

func AssertNamespace(t *testing.T, namespace *tenant.Namespace) *NamespaceAssertion

func (*NamespaceAssertion) HasCurrentCompleteVersion

func (a *NamespaceAssertion) HasCurrentCompleteVersion() *NamespaceAssertion

func (*NamespaceAssertion) HasMasterURL

func (a *NamespaceAssertion) HasMasterURL(masterURL string) *NamespaceAssertion

func (*NamespaceAssertion) HasName

func (a *NamespaceAssertion) HasName(name string) *NamespaceAssertion

func (*NamespaceAssertion) HasNameWithBaseName

func (a *NamespaceAssertion) HasNameWithBaseName(baseName string) *NamespaceAssertion

func (*NamespaceAssertion) HasState

func (*NamespaceAssertion) HasUpdatedBy

func (a *NamespaceAssertion) HasUpdatedBy(updatedBy string) *NamespaceAssertion

func (*NamespaceAssertion) HasVersion

func (a *NamespaceAssertion) HasVersion(version string) *NamespaceAssertion

func (*NamespaceAssertion) IsOFType

func (a *NamespaceAssertion) IsOFType(envType environment.Type) *NamespaceAssertion

func (*NamespaceAssertion) WasUpdatedAfter

func (a *NamespaceAssertion) WasUpdatedAfter(before time.Time) *NamespaceAssertion

func (*NamespaceAssertion) WasUpdatedBefore

func (a *NamespaceAssertion) WasUpdatedBefore(after time.Time) *NamespaceAssertion

type TenantRepoAssertion

type TenantRepoAssertion struct {
	// contains filtered or unexported fields
}

func AssertTenant

func AssertTenant(t *testing.T, repo tenant.Repository) *TenantRepoAssertion

func AssertTenantFromDB

func AssertTenantFromDB(t *testing.T, db *gorm.DB, tenantID uuid.UUID) *TenantRepoAssertion

func AssertTenantFromService

func AssertTenantFromService(t *testing.T, repo tenant.Service, tenantID uuid.UUID) *TenantRepoAssertion

func (*TenantRepoAssertion) DoesNotExist

func (a *TenantRepoAssertion) DoesNotExist() *TenantRepoAssertion

func (*TenantRepoAssertion) Exists

func (*TenantRepoAssertion) HasNamespaceOfTypeThat

func (a *TenantRepoAssertion) HasNamespaceOfTypeThat(envType environment.Type) *NamespaceAssertion

func (*TenantRepoAssertion) HasNamespacesThat

func (a *TenantRepoAssertion) HasNamespacesThat(nsAssertion func(assertion *NamespaceAssertion)) *TenantRepoAssertion

func (*TenantRepoAssertion) HasNoNamespace

func (a *TenantRepoAssertion) HasNoNamespace() *TenantRepoAssertion

func (*TenantRepoAssertion) HasNotNamespaceOfType

func (a *TenantRepoAssertion) HasNotNamespaceOfType(envType environment.Type) *TenantRepoAssertion

func (*TenantRepoAssertion) HasNsBaseName

func (a *TenantRepoAssertion) HasNsBaseName(name string) *TenantRepoAssertion

func (*TenantRepoAssertion) HasNumberOfNamespaces

func (a *TenantRepoAssertion) HasNumberOfNamespaces(number int) *TenantRepoAssertion

Jump to

Keyboard shortcuts

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