jx: github.com/jenkins-x/jx/pkg/pipelinescheduler/testhelpers Index | Files

package testhelpers

import "github.com/jenkins-x/jx/pkg/pipelinescheduler/testhelpers"

Index

Package Files

helpers.go

func BuildAndValidateProwConfig Uses

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 Uses

func CompleteScheduler() *v1.SchedulerSpec

CompleteScheduler returns a SchedulerSpec completely filled with dummy data

func PointerToReplaceableMapOfStringString Uses

func PointerToReplaceableMapOfStringString() *v1.ReplaceableMapOfStringString

PointerToReplaceableMapOfStringString returns a ReplaceableMapOfStringString pointer

func PointerToReplaceableSliceOfStrings Uses

func PointerToReplaceableSliceOfStrings() *v1.ReplaceableSliceOfStrings

PointerToReplaceableSliceOfStrings creaters a ReplaceableSliceOfStrings and returns its pointer

type SchedulerFile Uses

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

Package testhelpers imports 12 packages (graph). Updated 2019-06-24. Refresh now. Tools for package owners.