e2e_common

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GqlStandardHeaders map[string]string = map[string]string{
	"Cache-Control": "no-cache",
}

Functions

func CompareSeverityCounts added in v1.18.0

func CompareSeverityCounts(a model.SeverityCounts, b model.SeverityCounts) int

CompareSeverityCounts compares two SeverityCounts structs. It returns 1 if a > b, -1 if a < b, and 0 if they are equal. The comparison is done in the order of Critical, High, Medium, Low, None.

func ExecuteGqlQuery added in v1.43.0

func ExecuteGqlQuery[T any](client *graphql.Client, req *graphql.Request) (T, error)

func ExecuteGqlQueryFromFile added in v1.26.0

func ExecuteGqlQueryFromFile[T any](port string, queryFilePath string, vars map[string]any) (T, error)

func ExecuteGqlQueryFromFileWithHeaders added in v1.31.0

func ExecuteGqlQueryFromFileWithHeaders[T any](port string, queryFilePath string, vars map[string]any,
	headers map[string]string,
) (T, error)

func ExpectNonSystemUserCount

func ExpectNonSystemUserCount(n, expectedN int)

func ExpectNonSystemUserNames

func ExpectNonSystemUserNames(v, expectedV []*string)

func ExpectNonSystemUserUniqueUserIds

func ExpectNonSystemUserUniqueUserIds(v, expectedV []*string)

func NewRunningServer added in v1.28.1

func NewRunningServer(cfg util.Config) *server.Server

func QueryCreateIssue

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

func QueryCreateUser

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

func QueryDeleteIssue

func QueryDeleteIssue(port string, iid string) string

func QueryGetIssue

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

func QueryGetIssueWithReqVars

func QueryGetIssueWithReqVars(port string, vars map[string]interface{}) *model.IssueConnection

func QueryGetIssuesFilteringByState

func QueryGetIssuesFilteringByState(port string, stateFilter []string) *model.IssueConnection

func QueryGetIssuesWithoutFiltering

func QueryGetIssuesWithoutFiltering(port 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 ServerTeardown added in v1.28.1

func ServerTeardown(s *server.Server)

func SubtractSystemUserId

func SubtractSystemUserId(v []int64) []int64

func SubtractSystemUserName

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

func SubtractSystemUserNameFromValueItems

func SubtractSystemUserNameFromValueItems(v []*model.ValueItem) []*model.ValueItem

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 PausableProxy added in v1.6.0

type PausableProxy struct {
	// contains filtered or unexported fields
}

func NewPausableProxy added in v1.6.0

func NewPausableProxy(listenAddr, targetAddr string) *PausableProxy

func (*PausableProxy) DoNotHoldNewIncomingConnections added in v1.6.0

func (p *PausableProxy) DoNotHoldNewIncomingConnections()

func (*PausableProxy) HoldNewIncomingConnections added in v1.6.0

func (p *PausableProxy) HoldNewIncomingConnections()

func (*PausableProxy) ResumeHeldConnections added in v1.6.0

func (p *PausableProxy) ResumeHeldConnections()

func (*PausableProxy) Start added in v1.6.0

func (p *PausableProxy) Start() error

func (*PausableProxy) Stop added in v1.6.0

func (p *PausableProxy) Stop()

type User

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

Jump to

Keyboard shortcuts

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