e2e

package
v0.0.0-...-609bd80 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AdminUser   = model.TestAdminUserApiKey
	PowerUser   = model.TestPowerUserApiKey
	DefaultUser = model.TestDefaultUserApiKey

	TestDomain    = "test-deploy.saffronbun.com"
	CheckInterval = 1 * time.Second
	MaxChecks     = 3600 // 1 hour

	VmTestsEnabled = false
)

Variables

This section is empty.

Functions

func CreateServerURL

func CreateServerURL(subPath string) string

func CreateServerUrlWithProtocol

func CreateServerUrlWithProtocol(protocol, subPath string) string

func DoDeleteRequest

func DoDeleteRequest(t *testing.T, subPath string, user ...string) *http.Response

func DoGetRequest

func DoGetRequest(t *testing.T, subPath string, user ...string) *http.Response

func DoPlainGetRequest

func DoPlainGetRequest(t *testing.T, path string) *http.Response

func DoPostRequest

func DoPostRequest(t *testing.T, subPath string, body interface{}, user ...string) *http.Response

func FetchUntil

func FetchUntil(t *testing.T, subPath string, callback func(*http.Response) bool)

func GenName

func GenName(base ...string) string

func GetUserID

func GetUserID(user string) string

func IsUserError

func IsUserError(code int) bool

func MustNotEmpty

func MustNotEmpty[T any](t *testing.T, slice []T, msg string)

func MustNotNil

func MustNotNil(t *testing.T, obj interface{}, msg string)

func MustParse

func MustParse[okType any](t *testing.T, resp *http.Response) okType

func ReadRawResponseBody

func ReadRawResponseBody(t *testing.T, resp *http.Response) []byte

func ReadResponseBody

func ReadResponseBody(t *testing.T, resp *http.Response, body interface{}) error

func Setup

func Setup()

func Shutdown

func Shutdown()

func StrPtr

func StrPtr(s string) *string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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