Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAPI ¶
type FakeAPI struct {
// contains filtered or unexported fields
}
FakeAPI contains all the information for a fake component API
func NewFakeAPI ¶
NewFakeAPI creates a new fake component API
type LegacyComponent ¶ added in v1.22.0
type LegacyComponent struct {
APIFeature *componentTest.APIFeature
AuthFeature *componentTest.AuthorizationFeature
Cfg *config.Config
ErrorFeature componentTest.ErrorFeature
FakeElasticSearchAPI *FakeAPI
HTTPServer *http.Server
ServiceRunning bool
StartTime time.Time
// contains filtered or unexported fields
}
LegacyComponent contains all the information to create a component test
func LegacySearchAPIComponent ¶ added in v1.22.0
func LegacySearchAPIComponent(authFeature *componentTest.AuthorizationFeature) (c *LegacyComponent, err error)
LegacySearchAPIComponent creates a search api component
func (*LegacyComponent) Close ¶ added in v1.22.0
func (c *LegacyComponent) Close() error
Close closes the search api component
func (*LegacyComponent) InitAPIFeature ¶ added in v1.22.0
func (c *LegacyComponent) InitAPIFeature() *componentTest.APIFeature
InitAPIFeature initialises the ApiFeature that's contained within a specific JobsFeature.
func (*LegacyComponent) InitialiseService ¶ added in v1.22.0
func (c *LegacyComponent) InitialiseService() (http.Handler, error)
InitialiseService returns the http.Handler that's contained within the component.
func (*LegacyComponent) RegisterSteps ¶ added in v1.22.0
func (c *LegacyComponent) RegisterSteps(ctx *godog.ScenarioContext)
RegisterSteps registers the specific steps needed to do component tests for the search api
func (*LegacyComponent) Reset ¶ added in v1.22.0
func (c *LegacyComponent) Reset() *LegacyComponent
Reset resets the search api component (should not reset Fake APIs)
Click to show internal directories.
Click to hide internal directories.