steps

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ContentUpdatedTopic = "content-updated"
View Source
const SearchContentUpdatedTopic = "search-content-updated"
View Source
const (
	WaitEventTimeout = 5 * time.Second // maximum time that the component test consumer will wait for a kafka event
)

Variables

View Source
var (
	BuildTime = "1625046891"
	GitCommit = "7434fe334d9f51b7239f978094ea29d10ac33b16"
	Version   = ""
)

Functions

This section is empty.

Types

type Component

type Component struct {
	componenttest.ErrorFeature
	DatasetAPI *httpfake.HTTPFake // Dataset API mock at HTTP level
	Zebedee    *httpfake.HTTPFake // Zebedee mock at HTTP level
	// contains filtered or unexported fields
}

func NewComponent

func NewComponent(kafkaScenario *componenttest.KafkaScenario) *Component

func (*Component) Close

func (c *Component) Close()

Close kills the application under test and waits for it to complete the graceful shutdown, or timeout

func (*Component) RegisterSteps

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

func (*Component) Reset

func (c *Component) Reset() error

Reset re-initialises the service under test and the api mocks. Note that the service under test should not be started yet to prevent race conditions if it tries to call un-initialised dependencies (steps)

Jump to

Keyboard shortcuts

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