unittesting

package
v0.0.0-...-bd06354 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanST

func CleanST()

func EmailVerificationTokenRequest

func EmailVerificationTokenRequest(cookies []*http.Cookie, testUrl string) (*http.Response, error)

func EmailVerifyTokenRequest

func EmailVerifyTokenRequest(testUrl string, userId string, accessToken string, antiCsrf string) (*http.Response, error)

func ExtractInfoFromResponse

func ExtractInfoFromResponse(res *http.Response) map[string]string

func ExtractInfoFromResponseForAuthModeTests

func ExtractInfoFromResponseForAuthModeTests(res *http.Response) map[string]string

func ExtractInfoFromResponseWhenAntiCSRFisNone

func ExtractInfoFromResponseWhenAntiCSRFisNone(res *http.Response) map[string]string

func GenerateRandomCode

func GenerateRandomCode(size int) string

func GetRequestWithJSONResult

func GetRequestWithJSONResult(url string, cookies []*http.Cookie) (int, map[string]interface{}, error)

func HttpResponseToConsumableInformation

func HttpResponseToConsumableInformation(body io.ReadCloser) *map[string]interface{}

func KillAllST

func KillAllST()

func MaxVersion

func MaxVersion(version1 string, version2 string) string

MaxVersion returns max of v1 and v2

func PasswordResetTokenRequest

func PasswordResetTokenRequest(email string, testUrl string) (*http.Response, error)

func PasswordlessEmailLoginRequest

func PasswordlessEmailLoginRequest(email string, testUrl string) (*http.Response, error)

func PasswordlessLoginResendRequest

func PasswordlessLoginResendRequest(deviceId string, preAuthSessionId string, testUrl string) (*http.Response, error)

func PasswordlessLoginWithCodeRequest

func PasswordlessLoginWithCodeRequest(deviceId string, preAuthSessionId string, code string, testUrl string) (*http.Response, error)

func PasswordlessPhoneLoginRequest

func PasswordlessPhoneLoginRequest(phone string, testUrl string) (*http.Response, error)

func ReturnCustomProviderWithAuthRedirectParams

func ReturnCustomProviderWithAuthRedirectParams() tpmodels.ProviderInput

func ReturnCustomProviderWithoutAuthRedirectParams

func ReturnCustomProviderWithoutAuthRedirectParams() tpmodels.ProviderInput

func SessionRefresh

func SessionRefresh(testUrl string, refreshToken string, antiCsrf string) (*http.Response, error)

func SetKeyValueInConfig

func SetKeyValueInConfig(key string, value string)

func SetUpST

func SetUpST()

func SignInRequest

func SignInRequest(email string, password string, testUrl string) (*http.Response, error)

func SignInRequestWithTenantId

func SignInRequestWithTenantId(tenantId string, email string, password string, testUrl string) (*http.Response, error)

func SigninupCustomRequest

func SigninupCustomRequest(testServerUrl string, email string, id string) (*http.Response, error)

func SignoutRequest

func SignoutRequest(testUrl string, accessToken string, antiCsrf string) (*http.Response, error)

func SignupRequest

func SignupRequest(email string, password string, testUrl string) (*http.Response, error)

func SignupRequestWithTenantId

func SignupRequestWithTenantId(tenantId string, email string, password string, testUrl string) (*http.Response, error)

func StartUpST

func StartUpST(host string, port string) string

func StartUpSTWithMultitenancy

func StartUpSTWithMultitenancy(host string, port string) string

Types

type InfoLogData

type InfoLogData struct {
	LastLine string
	Output   []string
}

func GetInfoLogData

func GetInfoLogData(t *testing.T, startWith string) InfoLogData

Jump to

Keyboard shortcuts

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