Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGomegaFailHandler ¶
func NewGomegaFailHandler(ctx *godog.ScenarioContext)
NewGomegaFailHandler registers gomega fail handler
func NewPostgresCleanup ¶
func NewPostgresCleanup(ctx *godog.ScenarioContext, postgresDSN string)
NewPostgresCleanup executes a query before each scenario in order to clean the postgres db
func NewWireMock ¶
func NewWireMock(ctx *godog.ScenarioContext, serverURL string)
NewWireMock sets the server url on the WireMock struct and resets mocks before scenarios
Types ¶
type WireMock ¶
type WireMock struct { Request WireMockRequest `json:"request"` Response WireMockResponse `json:"response"` // contains filtered or unexported fields }
WireMock holds the request and response we will store on the WireMock server
func WireMockClient ¶
func WireMockClient() WireMock
func (*WireMock) ResetMocks ¶
ResetMocks will reset all stored mocks on the WireMock server
type WireMockRequest ¶
WireMockRequest represents the request structure of a mock
Click to show internal directories.
Click to hide internal directories.