test

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 16 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

TraitSpecFromMap --

func TraitSpecToMap

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

TraitSpecFromMap --

Types

type FakeClient

type FakeClient struct {
	controller.Client
	kubernetes.Interface
}

FakeClient ---

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 ---

Jump to

Keyboard shortcuts

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