e2e_common

package
v0.0.0-...-113e83d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyUserId = -1
View Source
const NumberOfSystemUsers = 1
View Source
const SystemUserId = 1

Variables

View Source
var SystemUserName = "systemuser"
View Source
var SystemUserUniqueUserId = "S0000000"

Functions

func ExpectNonSystemUserCount

func ExpectNonSystemUserCount(n, expectedN int)

func ExpectNonSystemUserNames

func ExpectNonSystemUserNames(v, expectedV []*string)

func ExpectNonSystemUserUniqueUserIds

func ExpectNonSystemUserUniqueUserIds(v, expectedV []*string)

func QueryCreateIssue

func QueryCreateIssue(port string, issue Issue) *model.Issue

func QueryCreateUser

func QueryCreateUser(port string, user User) *model.User

func QueryGetIssue

func QueryGetIssue(port string, issuePrimaryName string) *model.IssueConnection

func QueryGetUser

func QueryGetUser(port string, uniqueUserId string) *model.UserConnection

func QueryUpdateIssue

func QueryUpdateIssue(port string, issue Issue, iid string) *model.Issue

func QueryUpdateUser

func QueryUpdateUser(port string, user User, uid string) *model.User

func SubtractSystemUserId

func SubtractSystemUserId(v []int64) []int64

func SubtractSystemUserName

func SubtractSystemUserName(v []*string) []*string

func SubtractSystemUserNameVL

func SubtractSystemUserNameVL(v []string) []string

func SubtractSystemUserUniqueUserId

func SubtractSystemUserUniqueUserId(v []*string) []*string

func SubtractSystemUserUniqueUserIdVL

func SubtractSystemUserUniqueUserIdVL(v []string) []string

func SubtractSystemUsers

func SubtractSystemUsers[T Number](n T) T

func SubtractSystemUsersEntity

func SubtractSystemUsersEntity(v []entity.User) []entity.User

Types

type Issue

type Issue struct {
	PrimaryName string
	Description string
	Type        string
}

type Number

type Number interface {
	int | int64
}

type User

type User struct {
	UniqueUserID string
	Type         entity.UserType
	Name         string
}

Jump to

Keyboard shortcuts

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