Documentation ¶
Index ¶
- type NamespaceAssertion
- func (a *NamespaceAssertion) HasCurrentCompleteVersion() *NamespaceAssertion
- func (a *NamespaceAssertion) HasMasterURL(masterURL string) *NamespaceAssertion
- func (a *NamespaceAssertion) HasName(name string) *NamespaceAssertion
- func (a *NamespaceAssertion) HasNameWithBaseName(baseName string) *NamespaceAssertion
- func (a *NamespaceAssertion) HasState(state tenant.NamespaceState) *NamespaceAssertion
- func (a *NamespaceAssertion) HasUpdatedBy(updatedBy string) *NamespaceAssertion
- func (a *NamespaceAssertion) HasVersion(version string) *NamespaceAssertion
- func (a *NamespaceAssertion) IsOFType(envType environment.Type) *NamespaceAssertion
- func (a *NamespaceAssertion) WasUpdatedAfter(before time.Time) *NamespaceAssertion
- func (a *NamespaceAssertion) WasUpdatedBefore(after time.Time) *NamespaceAssertion
- type TenantRepoAssertion
- func (a *TenantRepoAssertion) DoesNotExist() *TenantRepoAssertion
- func (a *TenantRepoAssertion) Exists() *TenantRepoAssertion
- func (a *TenantRepoAssertion) HasNamespaceOfTypeThat(envType environment.Type) *NamespaceAssertion
- func (a *TenantRepoAssertion) HasNamespacesThat(nsAssertion func(assertion *NamespaceAssertion)) *TenantRepoAssertion
- func (a *TenantRepoAssertion) HasNoNamespace() *TenantRepoAssertion
- func (a *TenantRepoAssertion) HasNotNamespaceOfType(envType environment.Type) *TenantRepoAssertion
- func (a *TenantRepoAssertion) HasNsBaseName(name string) *TenantRepoAssertion
- func (a *TenantRepoAssertion) HasNumberOfNamespaces(number int) *TenantRepoAssertion
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 (a *NamespaceAssertion) HasState(state tenant.NamespaceState) *NamespaceAssertion
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 (a *TenantRepoAssertion) Exists() *TenantRepoAssertion
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
Click to show internal directories.
Click to hide internal directories.