testhelpers

package
v0.0.194 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAndValidateProwConfig

func BuildAndValidateProwConfig(t *testing.T, baseDir string, expectedConfigFilename string,
	expectedPluginsFilename string, schedulerFiles []SchedulerFile)

BuildAndValidateProwConfig takes a list of schedulerFiles and builds them to a Prow config, and validates them against the expectedConfigFilename and expectedPluginsFilename that make up the prow config. Filepaths are relative to the baseDir

func CompleteScheduler

func CompleteScheduler() *v1.SchedulerSpec

CompleteScheduler returns a SchedulerSpec completely filled with dummy data

func PointerToReplaceableMapOfStringString

func PointerToReplaceableMapOfStringString() *v1.ReplaceableMapOfStringString

PointerToReplaceableMapOfStringString returns a ReplaceableMapOfStringString pointer

func PointerToReplaceableSliceOfStrings

func PointerToReplaceableSliceOfStrings() *v1.ReplaceableSliceOfStrings

PointerToReplaceableSliceOfStrings creaters a ReplaceableSliceOfStrings and returns its pointer

Types

type SchedulerFile

type SchedulerFile struct {
	// Filenames is the hierarchy with the leaf at the right
	Filenames []string
	Org       string
	Repo      string
}

SchedulerFile contains a list of leaf files to build the scheduler from

Jump to

Keyboard shortcuts

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