testupdate

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertStatusAndAllVersionAreUpToDate

func AssertStatusAndAllVersionAreUpToDate(t *testing.T, db *gorm.DB, st update.Status, filterEnvType update.FilterEnvType)

func Tx

func Tx(t *testing.T, DB *gorm.DB, do func(repo update.Repository) error)

func UpdateVersionsTo

func UpdateVersionsTo(repo update.Repository, version string) error

Types

type DummyUpdateExecutor

type DummyUpdateExecutor struct {
	NumberOfCalls *uint64
	TimeToSleep   time.Duration

	ClusterService cluster.Service
	// contains filtered or unexported fields
}

func NewDummyUpdateExecutor

func NewDummyUpdateExecutor(db *gorm.DB, config *configuration.Data) *DummyUpdateExecutor

func (*DummyUpdateExecutor) Update

func (e *DummyUpdateExecutor) Update(ctx context.Context, dbTenant *tenant.Tenant, user *auth.User, envTypes []environment.Type, allowSelfHealing bool) error

Jump to

Keyboard shortcuts

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