unittesting

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 15 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanST

func CleanST()

func EmailVerificationTokenRequest added in v0.6.8

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

func EmailVerifyTokenRequest

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

func ExtractInfoFromResponse

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

func ExtractInfoFromResponseWhenAntiCSRFisNone

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

func GenerateRandomCode added in v0.6.0

func GenerateRandomCode(size int) string

func HttpResponseToConsumableInformation added in v0.5.8

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 added in v0.6.8

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

func PasswordlessEmailLoginRequest added in v0.6.8

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

func PasswordlessLoginWithCodeRequest added in v0.6.8

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

func PasswordlessPhoneLoginRequest added in v0.6.8

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

func ReturnCustomProviderWithAuthRedirectParams

func ReturnCustomProviderWithAuthRedirectParams() tpmodels.TypeProvider

func ReturnCustomProviderWithoutAuthRedirectParams

func ReturnCustomProviderWithoutAuthRedirectParams() tpmodels.TypeProvider

func SessionRefresh

func SessionRefresh(testUrl string, refreshToken string, idRefreshToken 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 SigninupCustomRequest

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

func SignoutRequest

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

func SignupRequest

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

func StartUpST

func StartUpST(host string, port string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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