Documentation
¶
Overview ¶
Package support provides shared test context and utilities for integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestContext ¶
type TestContext struct {
BaseURL string
Client *http.Client
// Auth state
Token string
// Resource IDs
InstallationID string
SourceID string
// Last response for assertions
LastStatusCode int
LastBody []byte
}
TestContext holds state shared across scenario steps.
func (*TestContext) ParseResponse ¶
func (c *TestContext) ParseResponse(v any) error
ParseResponse unmarshals the last response body into v.
Click to show internal directories.
Click to hide internal directories.