steps

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAPI added in v0.7.0

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

FakeAPI contains all the information for a fake component API

func NewFakeAPI added in v0.7.0

func NewFakeAPI() *FakeAPI

NewFakeAPI creates a new fake component API

func (*FakeAPI) Close added in v0.7.0

func (f *FakeAPI) Close()

Close closes the fake API

type MigrationComponent added in v0.6.0

type MigrationComponent struct {
	componenttest.ErrorFeature

	Config         *config.Config
	HTTPServer     *http.Server
	ServiceRunning bool

	MongoClient *mongo.Mongo

	StartTime               time.Time
	FakeAPIRouter           *FakeAPI
	AuthorisationMiddleware authorisation.Middleware
	// contains filtered or unexported fields
}

func NewMigrationComponent added in v0.6.0

func NewMigrationComponent(mongoFeat *componenttest.MongoFeature) (*MigrationComponent, error)

func (*MigrationComponent) Close added in v0.6.0

func (c *MigrationComponent) Close() error

func (*MigrationComponent) DoGetAppClients added in v0.6.0

func (c *MigrationComponent) DoGetAppClients(ctx context.Context, cfg *config.Config) *clients.ClientList

func (*MigrationComponent) DoGetAuthorisationMiddleware added in v0.9.0

func (c *MigrationComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)

func (*MigrationComponent) DoGetHTTPServer added in v0.6.0

func (c *MigrationComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer

func (*MigrationComponent) DoGetHealthcheckOk added in v0.6.0

func (c *MigrationComponent) DoGetHealthcheckOk(cfg *config.Config, _, _, _ string) (service.HealthChecker, error)

func (*MigrationComponent) DoGetMigrator added in v0.6.0

func (c *MigrationComponent) DoGetMigrator(ctx context.Context, jobService application.JobService, clientList *clients.ClientList) (migrator.Migrator, error)

func (*MigrationComponent) DoGetMongoDB added in v0.6.0

func (c *MigrationComponent) DoGetMongoDB(ctx context.Context, cfg config.MongoConfig) (store.MongoDB, error)

func (*MigrationComponent) InitAPIFeature added in v0.6.0

func (c *MigrationComponent) InitAPIFeature() *componenttest.APIFeature

func (*MigrationComponent) InitialiseService added in v0.6.0

func (c *MigrationComponent) InitialiseService() (http.Handler, error)

func (*MigrationComponent) RegisterSteps added in v0.6.0

func (c *MigrationComponent) RegisterSteps(ctx *godog.ScenarioContext)

func (*MigrationComponent) Reset added in v0.6.0

func (c *MigrationComponent) Reset() error

Jump to

Keyboard shortcuts

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