test

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePolicies

func ParsePolicies() ([]*api.ReleasePolicySaveRequest, error)

func RunPostgresDocker

func RunPostgresDocker(t *testing.T) *dockertest.Resource

Types

type DemoRepoOptions

type DemoRepoOptions struct {
	Name    string
	Project string
	Branch  string

	NumCommits    int
	NumTests      int
	NumCodeIssues int

	ArtifactTimeMin int
	ArtifactTimeMax int

	TestRunTimeMin int
	TestRunTimeMax int

	IssueScanTimeMin int
	IssueScanTimeMax int

	CveScanTimeMin int
	CveScanTimeMax int
}

type ReleaseData

type ReleaseData struct {
	Release   *api.ReleaseCreateRequest
	Artifacts []*api.ArtifactLogRequest
	CodeScans []*api.CodeScanRequest
	TestRuns  []*api.TestRunRequest
}

type RepoData

type RepoData struct {
	Releases []ReleaseData
}

func CreateDummyData

func CreateDummyData() []RepoData

Jump to

Keyboard shortcuts

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