Documentation
¶
Index ¶
- Variables
- func CheckServer() error
- func GetClientSocketConnection(ticket string) (net.Conn, error)
- func GetSocketTicket(client *http.Client, userId string) (string, string)
- func GetTestReq(method, target string, body io.Reader) *http.Request
- func LoadIntegrations()
- func ResetB(b *testing.B)
- func SaveIntegrations()
- func StartTestServer() (*exec.Cmd, error)
- func TestPanic(t *testing.T) func()
- type IntegrationTestStruct
- type TestUsersStruct
- func (tus *TestUsersStruct) DoHandler(method, path string, body []byte, queryParams map[string]string, ...) error
- func (tus *TestUsersStruct) GetDateSlots(masterScheduleId string) ([]*types.IGroupScheduleDateSlots, error)
- func (tus *TestUsersStruct) GetMasterScheduleById(groupScheduleId string) (*types.IGroupSchedule, error)
- func (tus *TestUsersStruct) GetProfileDetails() (*types.IUserProfile, error)
- func (tus *TestUsersStruct) GetQuoteById(quoteId string) (*types.IQuote, error)
- func (tus *TestUsersStruct) GetScheduleById(scheduleId string) (*types.ISchedule, error)
- func (tus *TestUsersStruct) GetServiceById(serviceId string) (*types.IService, error)
- func (tus *TestUsersStruct) GetUserSession(pool *pgxpool.Pool) (*types.ConcurrentUserSession, error)
- func (tus *TestUsersStruct) Login(handler ...*http.ServeMux) ([]*http.Cookie, error)
- func (tus *TestUsersStruct) Logout(handler ...*http.ServeMux) error
- func (tus *TestUsersStruct) PatchGroupAssignments(roleFullName, actionName string) error
- func (tus *TestUsersStruct) PatchGroupUser(userSub, roleId string) error
- func (tus *TestUsersStruct) PostBooking(bookingRequests []*types.IBooking) ([]*types.IBooking, error)
- func (tus *TestUsersStruct) PostGroupSchedule(scheduleId string) error
- func (tus *TestUsersStruct) PostQuote(serviceTierId string, slot *types.IGroupScheduleDateSlots, ...) (*types.IQuote, error)
- func (tus *TestUsersStruct) PostSchedule(scheduleRequest *types.PostScheduleRequest) (*types.ISchedule, error)
- func (tus *TestUsersStruct) RegisterKeycloakUserViaForm(code ...string) error
- func (tus *TestUsersStruct) SetCookieData(cookies []*http.Cookie)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandlerOptions map[string]*util.HandlerOptions IntegrationTest = &IntegrationTestStruct{ IntegrationTest: &types.IntegrationTest{}, } )
Functions ¶
func CheckServer ¶
func CheckServer() error
func LoadIntegrations ¶
func LoadIntegrations()
func SaveIntegrations ¶
func SaveIntegrations()
func StartTestServer ¶
Types ¶
type IntegrationTestStruct ¶
type IntegrationTestStruct struct { TestUsers map[int32]*TestUsersStruct `json:"testUsers"` *types.IntegrationTest }
func (*IntegrationTestStruct) GetTestUsers ¶
func (its *IntegrationTestStruct) GetTestUsers() map[int32]*TestUsersStruct
type TestUsersStruct ¶
func NewTestUser ¶
func NewTestUser(userId, email, pass string) *TestUsersStruct
func (*TestUsersStruct) GetDateSlots ¶
func (tus *TestUsersStruct) GetDateSlots(masterScheduleId string) ([]*types.IGroupScheduleDateSlots, error)
func (*TestUsersStruct) GetMasterScheduleById ¶
func (tus *TestUsersStruct) GetMasterScheduleById(groupScheduleId string) (*types.IGroupSchedule, error)
func (*TestUsersStruct) GetProfileDetails ¶
func (tus *TestUsersStruct) GetProfileDetails() (*types.IUserProfile, error)
func (*TestUsersStruct) GetQuoteById ¶
func (tus *TestUsersStruct) GetQuoteById(quoteId string) (*types.IQuote, error)
func (*TestUsersStruct) GetScheduleById ¶
func (tus *TestUsersStruct) GetScheduleById(scheduleId string) (*types.ISchedule, error)
func (*TestUsersStruct) GetServiceById ¶
func (tus *TestUsersStruct) GetServiceById(serviceId string) (*types.IService, error)
func (*TestUsersStruct) GetUserSession ¶
func (tus *TestUsersStruct) GetUserSession(pool *pgxpool.Pool) (*types.ConcurrentUserSession, error)
func (*TestUsersStruct) Logout ¶
func (tus *TestUsersStruct) Logout(handler ...*http.ServeMux) error
func (*TestUsersStruct) PatchGroupAssignments ¶
func (tus *TestUsersStruct) PatchGroupAssignments(roleFullName, actionName string) error
func (*TestUsersStruct) PatchGroupUser ¶
func (tus *TestUsersStruct) PatchGroupUser(userSub, roleId string) error
func (*TestUsersStruct) PostBooking ¶
func (*TestUsersStruct) PostGroupSchedule ¶
func (tus *TestUsersStruct) PostGroupSchedule(scheduleId string) error
func (*TestUsersStruct) PostQuote ¶
func (tus *TestUsersStruct) PostQuote(serviceTierId string, slot *types.IGroupScheduleDateSlots, serviceForm, tierForm *types.IProtoFormVersionSubmission) (*types.IQuote, error)
func (*TestUsersStruct) PostSchedule ¶
func (tus *TestUsersStruct) PostSchedule(scheduleRequest *types.PostScheduleRequest) (*types.ISchedule, error)
func (*TestUsersStruct) RegisterKeycloakUserViaForm ¶
func (tus *TestUsersStruct) RegisterKeycloakUserViaForm(code ...string) error
func (*TestUsersStruct) SetCookieData ¶
func (tus *TestUsersStruct) SetCookieData(cookies []*http.Cookie)
Click to show internal directories.
Click to hide internal directories.