e2e

package
v0.0.0-...-c94c68f Latest Latest
Warning

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

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

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