e2e

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 9 Imported by: 0

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)

type TestFile

type TestFile struct {
	Path    string
	Content string
	Mode    os.FileMode // Optional, 0 defaults to 0644
}

Jump to

Keyboard shortcuts

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