test

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const API string = "http://test.hub.cli"

API is test URL

Variables

This section is empty.

Functions

func CreateTektonPipelineController

func CreateTektonPipelineController(dynamic dynamic.Interface, version string) error

func DynamicClient

func DynamicClient(objects ...runtime.Object) *fake.FakeDynamicClient

func FakeClientSet

func FakeClientSet(tekton versioned.Interface, dynamic dynamic.Interface, namespace string) *fakeClients

func GetConfigMapData

func GetConfigMapData(name string, version string) *unstructured.Unstructured

func GetDeploymentData

func GetDeploymentData(name, version string) *unstructured.Unstructured

func NewCLI

func NewCLI(hubType string) *cli

func SeedTestData added in v1.14.0

func SeedV1beta1TestData

func SeedV1beta1TestData(t *testing.T, d Data) (Clients, Informers)

Types

type Clients added in v1.14.0

type Clients struct {
	Pipeline *fakepipelineclientset.Clientset
	Kube     *fakekubeclientset.Clientset
}

type Data added in v1.14.0

type Data struct {
	Pipelines    []*v1beta1.Pipeline
	Tasks        []*v1beta1.Task
	ClusterTasks []*v1beta1.ClusterTask
}

type Informers added in v1.14.0

Informers holds references to informers which are useful for reconciler tests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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