test

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArbitraryArgs

func ArbitraryArgs(cmd *cobra.Command, args []string) error

func EmptyRun

func EmptyRun(*cobra.Command, []string)

func EnvVarExists

func EnvVarExists(t *testing.T, env []corev1.EnvVar, name string)

EnvVarExists --.

func EnvVarHasValue

func EnvVarHasValue(t *testing.T, env []corev1.EnvVar, name string, val string)

EnvVarHasValue --.

func ExecuteCommand

func ExecuteCommand(root *cobra.Command, args ...string) (output string, err error)

func ExecuteCommandC

func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, output string, err error)

func HasVolume

func HasVolume(t *testing.T, volumes []corev1.Volume, name string)

HasVolume --.

func NewFakeClient

func NewFakeClient(initObjs ...runtime.Object) (client.Client, error)

NewFakeClient ---.

func TraitSpecFromMap

func TraitSpecFromMap(t *testing.T, spec map[string]interface{}) v1.TraitSpec

func TraitSpecToMap

func TraitSpecToMap(t *testing.T, spec v1.TraitSpec) map[string]string

Types

type FakeClient

type FakeClient struct {
	controller.Client
	kubernetes.Interface
	// contains filtered or unexported fields
}

FakeClient ---.

func (*FakeClient) CamelV1

func (c *FakeClient) CamelV1() camelv1.CamelV1Interface

func (*FakeClient) CamelV1alpha1

func (c *FakeClient) CamelV1alpha1() camelv1alpha1.CamelV1alpha1Interface

func (*FakeClient) Discovery

func (c *FakeClient) Discovery() discovery.DiscoveryInterface

func (*FakeClient) GetConfig

func (c *FakeClient) GetConfig() *rest.Config

func (*FakeClient) GetCurrentNamespace

func (c *FakeClient) GetCurrentNamespace(kubeConfig string) (string, error)

func (*FakeClient) GetScheme

func (c *FakeClient) GetScheme() *runtime.Scheme

GetScheme ---.

func (*FakeClient) Patch

Patch mimicks patch for server-side apply and simply creates the obj.

func (*FakeClient) ScalesClient

func (c *FakeClient) ScalesClient() (scale.ScalesGetter, error)

func (*FakeClient) ServerOrClientSideApplier

func (c *FakeClient) ServerOrClientSideApplier() client.ServerOrClientSideApplier

type FakeDiscovery

type FakeDiscovery struct {
	discovery.DiscoveryInterface
}

func (*FakeDiscovery) ServerResourcesForGroupVersion

func (f *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)

Jump to

Keyboard shortcuts

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