Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type E2ETestContext ¶
type E2ETestContext struct {
T *testing.T
TempDir string
Tester *caddytest.Tester
BaseURL string
HTTPPort int
ExpectedResponse string
}
func RunE2ETest ¶
func RunE2ETest(t *testing.T, serverBlockContent string, files []TestFile) *E2ETestContext
func (*E2ETestContext) AssertGet ¶
func (ctx *E2ETestContext) AssertGet(path, expectedBody string)
func (*E2ETestContext) AssertGetStatus ¶
func (ctx *E2ETestContext) AssertGetStatus(path string, expectedStatus int)
Click to show internal directories.
Click to hide internal directories.