steps

package
v0.0.0-...-14f90b6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WellKnownTestTime, _ = time.Parse("2006-01-02T15:04:05Z", "2021-01-01T00:00:00Z")
)

Functions

This section is empty.

Types

type InteractivesApiComponent

type InteractivesApiComponent struct {
	componenttest.ErrorFeature
	ApiFeature *componenttest.APIFeature

	MongoClient *mongo.Mongo
	Config      *config.Config
	HTTPServer  *http.Server

	ServiceRunning bool
	// contains filtered or unexported fields
}

func NewInteractivesApiComponent

func NewInteractivesApiComponent(mongoURI string) (*InteractivesApiComponent, error)

func (*InteractivesApiComponent) Close

func (c *InteractivesApiComponent) Close() error

func (*InteractivesApiComponent) DoGetAuthorisationMiddleware

func (f *InteractivesApiComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)

func (*InteractivesApiComponent) DoGetFSClient

func (f *InteractivesApiComponent) DoGetFSClient(ctx context.Context, cfg *config.Config) (api.FilesService, error)

func (*InteractivesApiComponent) DoGetGenerators

func (*InteractivesApiComponent) DoGetHTTPServer

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

func (*InteractivesApiComponent) DoGetHealthcheckOk

func (f *InteractivesApiComponent) DoGetHealthcheckOk(_ *config.Config, _ string, _ string, _ string) (service.HealthChecker, error)

func (*InteractivesApiComponent) DoGetMockedKafkaProducerOk

func (c *InteractivesApiComponent) DoGetMockedKafkaProducerOk(ctx context.Context, cfg *config.Config) (kafka.IProducer, error)

func (*InteractivesApiComponent) DoGetMongoDB

func (*InteractivesApiComponent) DoGetResponder

func (*InteractivesApiComponent) DoS3Client

func (*InteractivesApiComponent) IGetWithFilterString

func (c *InteractivesApiComponent) IGetWithFilterString(path string) error

func (*InteractivesApiComponent) IPostToWithFormData

func (c *InteractivesApiComponent) IPostToWithFormData(formFile, path string, body *godog.DocString) error

func (*InteractivesApiComponent) IPostToWithFormDataAsAdmin

func (c *InteractivesApiComponent) IPostToWithFormDataAsAdmin(formFile, path string, body *godog.DocString) error

func (*InteractivesApiComponent) IShouldReceiveTheFollowingModelResponse

func (c *InteractivesApiComponent) IShouldReceiveTheFollowingModelResponse(expectedCodeStr string, expectedAPIResponse *godog.DocString) error

func (*InteractivesApiComponent) InitialiseService

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

func (*InteractivesApiComponent) RegisterSteps

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

func (*InteractivesApiComponent) Reset

func (c *InteractivesApiComponent) Reset() error

Jump to

Keyboard shortcuts

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