lrintegrationtest

package
v0.0.0-...-5999da7 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package lrintegrationtest contains integration tests for all API calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTestEnv

func SetTestEnv()

Types

type AccountSetup

type AccountSetup struct {
	PhoneIDVerified bool
	EmailVerified   bool
	Email           TestEmailArr
	Password        string
	Username        string
	PhoneID         string
}

type AccountSetupWithSecurityQuestion

type AccountSetupWithSecurityQuestion struct {
	PhoneIDVerified  bool
	EmailVerified    bool
	Email            TestEmailArr
	Password         string
	Username         string
	PhoneID          string
	SecurityQuestion string
	SecurityAnswer   string
}

type CandidateToken

type CandidateToken struct {
	CandidateToken string `json:"candidatetoken"`
}

type DeletePermissionList

type DeletePermissionList struct {
	AdditionalPermissions []string
}

type Error

type Error struct {
	Name    string
	Message string
}

type OTPVerify

type OTPVerify struct {
	Otp   string
	Email string
}

type PassChange

type PassChange struct {
	Oldpassword string
	Newpassword string
}

type PasswordReset

type PasswordReset struct {
	ResetToken string
	Password   string
}

type PermissionList

type PermissionList struct {
	Permissions []string
}

type Permissions

type Permissions struct {
	PermissionName1 bool `json:"permission_name1"`
	PermissionName2 bool `json:"permission_name2"`
	PermissionName3 bool `json:"permission_name3"`
}

type PhoneNumberArray

type PhoneNumberArray []struct {
	PhoneType   string `json:"PhoneType"`
	PhoneNumber string `json:"PhoneNumber"`
}

type PhoneRegister

type PhoneRegister struct {
	Email    TestEmailArr
	PhoneID  string
	Password string
}

type ProfileEmail

type ProfileEmail struct {
	Email TestEmailArr
}

type Provider

type Provider struct {
	Provider   string `json:"provider"`
	ProviderID string `json:"providerid"`
}

type ResetPhonePassword

type ResetPhonePassword struct {
	Phone    string
	OTP      string
	Password string
}

type ResetWithEmailSecurity

type ResetWithEmailSecurity struct {
	SecurityAnswer             SecurityQuestion
	Email                      string
	Password                   string
	ResetPasswordEmailTemplate string
}

type ResetWithPhoneSecurity

type ResetWithPhoneSecurity struct {
	SecurityAnswer             SecurityQuestion
	Phone                      string
	Password                   string
	ResetPasswordEmailTemplate string
}

type ResetWithUsernameSecurity

type ResetWithUsernameSecurity struct {
	SecurityAnswer             SecurityQuestion
	Username                   string
	Password                   string
	ResetPasswordEmailTemplate string
}

type RoleContext

type RoleContext struct {
	Context               string   `json:"context"`
	Roles                 []string `json:"roles"`
	Additionalpermissions []string `json:"additionalpermissions"`
	Expiration            string   `json:"expiration"`
}

type RoleContextContainer

type RoleContextContainer struct {
	RoleContext []RoleContext
}

type RoleList

type RoleList struct {
	Roles []string `json:"roles"`
}

type Roles

type Roles []struct {
	Name        string `json:"name"`
	Permissions Permissions
}

type SecurityQuestion

type SecurityQuestion struct {
	QuestionID string `json:"b8c8ac7593744113a1b37e1976a43488"`
}

The security question is identified by a random string key in the LoginRadius database You can retrieve this key with a call to GetConfiguration, and replace the json tag value with your question string

type SecurityQuestionTest

type SecurityQuestionTest struct {
	Securityquestionanswer SecurityQuestion `json:"securityquestionanswer"`
}

Used by PutManageAccountUpdateSecurityQuestionConfig

type Success

type Success struct {
	Name    string
	Hobbies []string
}

Helper Function Test Structs

type TestAccount

type TestAccount struct {
	EmailVerified bool
	Email         TestEmailArr
	Password      string
}

Account API Test Structs

type TestAccountRegister

type TestAccountRegister struct {
	Email    TestEmailArr
	Password string
}

type TestEmail

type TestEmail struct {
	Email string
}

type TestEmailArr

type TestEmailArr []struct {
	Type  string
	Value string
}

type TestEmailCreator

type TestEmailCreator struct {
	Email string
	Type  string
}

Authentication Test Structs

type TestEmailLogin

type TestEmailLogin struct {
	Email    string
	Password string
}

Multi-module Test Structs

type TestFirstName

type TestFirstName struct {
	FirstName string
}

type TestPassword

type TestPassword struct {
	Password string
}

type TestPhone

type TestPhone struct {
	Phone string
}

type TestPhoneLogin

type TestPhoneLogin struct {
	Phone    string
	Password string
}

type TestRole

type TestRole struct {
	Roles Roles
}

Role Test Structs

type TestUpdateRole

type TestUpdateRole struct {
	Name        string `json:"name"`
	Permissions Permissions
}

type TestUsername

type TestUsername struct {
	Username string
}

type TestUsernameLogin

type TestUsernameLogin struct {
	Username string
	Password string
}

type UndoPhoneVerify

type UndoPhoneVerify struct {
	PhoneIDVerified bool
}

type WebhookTest

type WebhookTest struct {
	TargetURL string
	Event     string
}

Jump to

Keyboard shortcuts

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