Documentation
¶
Index ¶
- Constants
- func CreateServerURL(subPath string) string
- func CreateServerUrlWithProtocol(protocol, subPath string) string
- func DoDeleteRequest(t *testing.T, subPath string, user ...string) *http.Response
- func DoGetRequest(t *testing.T, subPath string, user ...string) *http.Response
- func DoPlainGetRequest(t *testing.T, path string) *http.Response
- func DoPostRequest(t *testing.T, subPath string, body interface{}, user ...string) *http.Response
- func FetchUntil(t *testing.T, subPath string, callback func(*http.Response) bool)
- func GenName(base ...string) string
- func GetUserID(user string) string
- func IsUserError(code int) bool
- func MustNotEmpty[T any](t *testing.T, slice []T, msg string)
- func MustNotNil(t *testing.T, obj interface{}, msg string)
- func MustParse[okType any](t *testing.T, resp *http.Response) okType
- func ReadRawResponseBody(t *testing.T, resp *http.Response) []byte
- func ReadResponseBody(t *testing.T, resp *http.Response, body interface{}) error
- func Setup()
- func Shutdown()
- func StrPtr(s string) *string
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 DoDeleteRequest ¶
func DoPostRequest ¶
func IsUserError ¶
func MustNotNil ¶
func ReadResponseBody ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.