testhelpers

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompactJSON

func CompactJSON(spacedJSONStr string) string

Types

type CreateBuilderArgs

type CreateBuilderArgs struct {
	Keychain     authn.Keychain
	ClusterStack *buildapi.ClusterStack
	ClusterStore *buildapi.ClusterStore
	BuilderSpec  buildapi.BuilderSpec
}

type DiffOptions

type DiffOptions struct {
	Prefix string
	Color  bool
}

func DefaultDiffOptions

func DefaultDiffOptions() DiffOptions

type DiffOutBuilder

type DiffOutBuilder struct {
	// contains filtered or unexported fields
}

func NewDiffOutBuilder

func NewDiffOutBuilder(t *testing.T) *DiffOutBuilder

func (*DiffOutBuilder) Configure

func (d *DiffOutBuilder) Configure(options DiffOptions) *DiffOutBuilder

func (*DiffOutBuilder) New

func (d *DiffOutBuilder) New(str string) *DiffOutBuilder

func (*DiffOutBuilder) NoD

func (d *DiffOutBuilder) NoD(str string) *DiffOutBuilder

func (*DiffOutBuilder) Old

func (d *DiffOutBuilder) Old(str string) *DiffOutBuilder

func (*DiffOutBuilder) Out

func (d *DiffOutBuilder) Out() string

func (*DiffOutBuilder) Reset

func (d *DiffOutBuilder) Reset() *DiffOutBuilder

func (*DiffOutBuilder) Txt

func (d *DiffOutBuilder) Txt(str string) *DiffOutBuilder

type FakeBuilderCreator

type FakeBuilderCreator struct {
	Record    buildapi.BuilderRecord
	CreateErr error

	CreateBuilderCalls []CreateBuilderArgs
}

func (*FakeBuilderCreator) CreateBuilder

func (f *FakeBuilderCreator) CreateBuilder(keychain authn.Keychain, clusterStore *buildapi.ClusterStore, clusterStack *buildapi.ClusterStack, builder buildapi.BuilderSpec) (buildapi.BuilderRecord, error)

type FakeBuildpackRepository added in v0.0.6

type FakeBuildpackRepository struct {
	ClusterStore *buildapi.ClusterStore
}

func (FakeBuildpackRepository) FindByIdAndVersion added in v0.0.6

func (f FakeBuildpackRepository) FindByIdAndVersion(id, version string) (cnb.RemoteBuildpackInfo, error)

type FakeTracker

type FakeTracker map[string]map[types.NamespacedName]struct{}

func (FakeTracker) IsTracking

func (f FakeTracker) IsTracking(ref reconciler.Key, obj types.NamespacedName) bool

func (FakeTracker) OnChanged

func (FakeTracker) OnChanged(obj interface{})

func (FakeTracker) String

func (f FakeTracker) String() string

func (FakeTracker) Track

func (f FakeTracker) Track(ref reconciler.Key, obj types.NamespacedName) error

type Listers

type Listers struct {
	// contains filtered or unexported fields
}

func NewListers

func NewListers(objs []runtime.Object) Listers

func (*Listers) BuildServiceObjects

func (l *Listers) BuildServiceObjects() []runtime.Object

func (*Listers) GetBuildLister

func (l *Listers) GetBuildLister() buildlisters.BuildLister

func (*Listers) GetBuilderLister

func (l *Listers) GetBuilderLister() buildlisters.BuilderLister

func (*Listers) GetClusterBuilderLister

func (l *Listers) GetClusterBuilderLister() buildlisters.ClusterBuilderLister

func (*Listers) GetClusterStackLister

func (l *Listers) GetClusterStackLister() buildlisters.ClusterStackLister

func (*Listers) GetClusterStoreLister

func (l *Listers) GetClusterStoreLister() buildlisters.ClusterStoreLister

func (*Listers) GetConfigMapLister

func (l *Listers) GetConfigMapLister() corev1listers.ConfigMapLister

func (*Listers) GetDuckBuilderLister

func (l *Listers) GetDuckBuilderLister() *duckbuilder.DuckBuilderLister

func (*Listers) GetImageLister

func (l *Listers) GetImageLister() buildlisters.ImageLister

func (*Listers) GetKubeObjects

func (l *Listers) GetKubeObjects() []runtime.Object

func (*Listers) GetPersistentVolumeClaimLister

func (l *Listers) GetPersistentVolumeClaimLister() corev1listers.PersistentVolumeClaimLister

func (*Listers) GetPodLister

func (l *Listers) GetPodLister() corev1listers.PodLister

func (*Listers) GetSourceResolverLister

func (l *Listers) GetSourceResolverLister() buildlisters.SourceResolverLister

type SpecReconcilerTester

type SpecReconcilerTester struct {
	// contains filtered or unexported fields
}

func ReconcilerTester

func ReconcilerTester(t *testing.T, factory rtesting.Factory) SpecReconcilerTester

func (SpecReconcilerTester) Test

func (rt SpecReconcilerTester) Test(test rtesting.TableRow)

Jump to

Keyboard shortcuts

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