Documentation ¶
Index ¶
- func AssertOutput(t *testing.T, expected, actual interface{})
- func AssertOutputPrefix(t *testing.T, expected, actual string)
- func Contains(t *testing.T, container interface{}, obj interface{})
- func ExecuteCommand(root *cobra.Command, args ...string) (string, error)
- func ExecuteCommandC(c *cobra.Command, args ...string) (*cobra.Command, string, error)
- func FakeClock() clockwork.FakeClock
- func SeedTestData(t *testing.T, d Data) (Clients, Informers)
- func SeedTestResources(t *testing.T, d triggerstest.Resources) triggerstest.Clients
- func SeedV1beta1TestData(t *testing.T, d pipelinetest.Data) (pipelinetest.Clients, pipelinetest.Informers)
- type Clients
- type Data
- type Informers
- type Params
- func (p *Params) Clients(_ ...*rest.Config) (*cli.Clients, error)
- func (p *Params) KubeClient() (k8s.Interface, error)
- func (p *Params) KubeConfigPath() string
- func (p *Params) Namespace() string
- func (p *Params) SetKubeConfigPath(path string)
- func (p *Params) SetKubeContext(context string)
- func (p *Params) SetNamespace(ns string)
- func (p *Params) SetNoColour(_ bool)
- func (p *Params) Time() clockwork.Clock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertOutput ¶
func AssertOutputPrefix ¶ added in v0.14.0
func Contains ¶ added in v0.18.0
Contains is a test utility to check if obj is in the contents of the container.
func ExecuteCommand ¶
ExecuteCommand executes the root command passing the args and returns the output as a string and error
func ExecuteCommandC ¶
ExecuteCommandC executes the root command passing the args and returns the root command, output as a string and error if any
func SeedTestResources ¶ added in v0.7.0
func SeedTestResources(t *testing.T, d triggerstest.Resources) triggerstest.Clients
func SeedV1beta1TestData ¶ added in v0.9.0
func SeedV1beta1TestData(t *testing.T, d pipelinetest.Data) (pipelinetest.Clients, pipelinetest.Informers)
Types ¶
type Clients ¶ added in v0.30.0
type Clients struct { Pipeline *fakepipelineclientset.Clientset Kube *fakekubeclientset.Clientset }
Clients holds references to clients which are useful for reconciler tests.
type Informers ¶ added in v0.30.0
type Informers struct { PipelineRun informersv1.PipelineRunInformer Pipeline informersv1.PipelineInformer TaskRun informersv1.TaskRunInformer Task informersv1.TaskInformer Pod coreinformers.PodInformer }
Informers holds references to informers which are useful for reconciler tests.
type Params ¶
type Params struct { Tekton versioned.Interface Triggers versionedTriggers.Interface Kube k8s.Interface Clock clockwork.Clock Cls *cli.Clients Dynamic dynamic.Interface // contains filtered or unexported fields }
func (*Params) KubeConfigPath ¶
func (*Params) SetKubeConfigPath ¶
func (*Params) SetKubeContext ¶ added in v0.6.0
func (*Params) SetNamespace ¶
func (*Params) SetNoColour ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.