steps

package
v1.73.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoGetHealthClient

func DoGetHealthClient(name, url string) *health.Client

GetHealthClient returns a healthclient for the provided URL

func DoGetHealthcheckOk

func DoGetHealthcheckOk(cfg *config.Config, buildTime, gitCommit, version string) (service.HealthChecker, error)

DoGetHealthCheck creates a healthcheck with versionInfo

func GenerateCookie added in v1.42.0

func GenerateCookie(name, value, domain, path string, httpOnly bool) *http.Cookie

func SetCookies added in v1.42.0

func SetCookies(cookies []*http.Cookie) chromedp.Action

Types

type Chrome

type Chrome struct {
	// contains filtered or unexported fields
}

type Collection

type Collection struct {
	componenttest.ErrorFeature
	// contains filtered or unexported fields
}

func NewCollectionAction

func NewCollectionAction(f *FakeApi, c context.Context) *Collection

type Component

type Component struct {
	componenttest.ErrorFeature

	HTTPServer *http.Server

	FakeApi *FakeApi

	SignedInUser string
	// contains filtered or unexported fields
}

func NewFlorenceComponent

func NewFlorenceComponent() (*Component, error)

func (*Component) Close

func (c *Component) Close() error

func (*Component) DoGetHTTPServer

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

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 FakeApi

type FakeApi struct {
	// contains filtered or unexported fields
}

func NewFakeApi

func NewFakeApi(t testing.TB) *FakeApi

func (*FakeApi) Close

func (f *FakeApi) Close()

func (*FakeApi) Reset

func (f *FakeApi) Reset()
type Header struct {
	Name  string
	Value string
}

type LegacyPublisher added in v1.42.0

type LegacyPublisher struct {
	// contains filtered or unexported fields
}

func NewLegacyPublisher added in v1.42.0

func NewLegacyPublisher(api *FakeApi, ctx context.Context) *LegacyPublisher

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(api *FakeApi, ctx context.Context) *Publisher

type User added in v1.42.0

type User interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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