Documentation
¶
Index ¶
Constants ¶
View Source
const WaitEventTimeout = 5 * time.Second // maximum time that the component test consumer will wait for an elasticsearch call
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { APIFeature *componentTest.APIFeature AuthFeature *componentTest.AuthorizationFeature Cfg *config.Config ErrorFeature componentTest.ErrorFeature FakeElasticSearchAPI *FakeAPI FakeNLPSearchAPI *FakeAPI HTTPServer *http.Server ServiceRunning bool StartTime time.Time // contains filtered or unexported fields }
Component contains all the information to create a component test
func SearchAPIComponent ¶
func SearchAPIComponent(authFeature *componentTest.AuthorizationFeature) (c *Component, err error)
SearchAPIComponent creates a search api component
func (*Component) InitAPIFeature ¶
func (c *Component) InitAPIFeature() *componentTest.APIFeature
InitAPIFeature initialises the ApiFeature that's contained within a specific JobsFeature.
func (*Component) InitialiseService ¶
InitialiseService returns the http.Handler that's contained within the component.
func (*Component) RegisterSteps ¶
func (c *Component) RegisterSteps(ctx *godog.ScenarioContext)
RegisterSteps registers the specific steps needed to do component tests for the search api
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
Click to show internal directories.
Click to hide internal directories.