steps

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BabbageFeature

type BabbageFeature struct {
	Server     *httptest.Server
	Body       string
	StatusCode int
	Headers    map[string]string
}

func NewBabbageFeature

func NewBabbageFeature() *BabbageFeature

func (*BabbageFeature) RegisterSteps

func (f *BabbageFeature) RegisterSteps(ctx *godog.ScenarioContext)

type Component

type Component struct {
	componenttest.ErrorFeature

	Config         *config.Config
	HTTPServer     *http.Server
	ServiceRunning bool
	// contains filtered or unexported fields
}

func NewComponent

func NewComponent() (*Component, error)

func (*Component) Close

func (c *Component) Close() error

func (*Component) DoGetHTTPServer

func (c *Component) DoGetHTTPServer(_ *config.Config, bindAddr string, router http.Handler) service.HTTPServer

func (*Component) DoGetHealthcheckOk

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

func (*Component) DoGetRequestMiddleware

func (c *Component) DoGetRequestMiddleware() service.RequestMiddleware

func (*Component) InitialiseService

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

func (*Component) RegisterSteps

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

func (*Component) Reset

func (c *Component) Reset() *Component

type HTTPTestRequestMiddleware

type HTTPTestRequestMiddleware struct{}

func (HTTPTestRequestMiddleware) GetMiddlewareFunction

func (rm HTTPTestRequestMiddleware) GetMiddlewareFunction() func(http.Handler) http.Handler

type LegacyCacheAPIFeature

type LegacyCacheAPIFeature struct {
	Server *httptest.Server
	// contains filtered or unexported fields
}

func NewLegacyCacheAPIFeature

func NewLegacyCacheAPIFeature() *LegacyCacheAPIFeature

func (*LegacyCacheAPIFeature) RegisterSteps

func (f *LegacyCacheAPIFeature) RegisterSteps(ctx *godog.ScenarioContext)

func (*LegacyCacheAPIFeature) Reset

func (f *LegacyCacheAPIFeature) Reset()

type ReleaseCalendarFeature

type ReleaseCalendarFeature struct {
	Server     *httptest.Server
	Body       string
	StatusCode int
	Headers    map[string]string
}

func NewReleaseCalendarFeature

func NewReleaseCalendarFeature() *ReleaseCalendarFeature

func (*ReleaseCalendarFeature) RegisterSteps

func (f *ReleaseCalendarFeature) RegisterSteps(ctx *godog.ScenarioContext)

type SearchControllerFeature added in v1.7.0

type SearchControllerFeature struct {
	Server     *httptest.Server
	Body       string
	StatusCode int
	Headers    map[string]string
}

func NewSearchControllerFeature added in v1.7.0

func NewSearchControllerFeature() *SearchControllerFeature

func (*SearchControllerFeature) RegisterSteps added in v1.7.0

func (f *SearchControllerFeature) RegisterSteps(ctx *godog.ScenarioContext)

Jump to

Keyboard shortcuts

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