test

package
v0.3.30 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Notes:

  • The directories ./framework and ./testing are copied from github.tools.sap/cs-devops/kubernetes-testing.
  • The file zz_environment.go can be generated by running a go template renderer (such as github.tools.sap/cs-devops/gotpl) with template templates/environment.tpl and input generate.json.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	framework.Environment
	// contains filtered or unexported fields
}

func NewEnvironment

func NewEnvironment() *Environment

func (*Environment) AddClusterSecret

func (env *Environment) AddClusterSecret(obj *_corecssapcomv1alpha1.ClusterSecret)

func (*Environment) AddClusterSecretFromFile

func (env *Environment) AddClusterSecretFromFile(path string)

func (*Environment) AddClusterSecretsFromFiles

func (env *Environment) AddClusterSecretsFromFiles(paths ...string)

func (*Environment) AddNamespace

func (env *Environment) AddNamespace(obj *_corev1.Namespace)

func (*Environment) AddNamespaceFromFile

func (env *Environment) AddNamespaceFromFile(path string)

func (*Environment) AddNamespacesFromFiles

func (env *Environment) AddNamespacesFromFiles(paths ...string)

func (*Environment) AddSecret

func (env *Environment) AddSecret(obj *_corev1.Secret)

func (*Environment) AddSecretFromFile

func (env *Environment) AddSecretFromFile(path string)

func (*Environment) AddSecretsFromFiles

func (env *Environment) AddSecretsFromFiles(paths ...string)

func (*Environment) AssertClusterSecret

func (env *Environment) AssertClusterSecret(obj *_corecssapcomv1alpha1.ClusterSecret) error

func (*Environment) AssertClusterSecretCount

func (env *Environment) AssertClusterSecretCount(labelSelector string, count int) error

func (*Environment) AssertClusterSecretFromFile

func (env *Environment) AssertClusterSecretFromFile(path string) error

func (*Environment) AssertNamespace

func (env *Environment) AssertNamespace(obj *_corev1.Namespace) error

func (*Environment) AssertNamespaceCount

func (env *Environment) AssertNamespaceCount(labelSelector string, count int) error

func (*Environment) AssertNamespaceFromFile

func (env *Environment) AssertNamespaceFromFile(path string) error

func (*Environment) AssertSecret

func (env *Environment) AssertSecret(obj *_corev1.Secret) error

func (*Environment) AssertSecretCount

func (env *Environment) AssertSecretCount(namespace string, labelSelector string, count int) error

func (*Environment) AssertSecretFromFile

func (env *Environment) AssertSecretFromFile(path string) error

func (*Environment) CoreClient

func (env *Environment) CoreClient() *_core.Clientset

func (*Environment) CreateClusterSecret

func (*Environment) CreateClusterSecretFromFile

func (env *Environment) CreateClusterSecretFromFile(path string) (*_corecssapcomv1alpha1.ClusterSecret, error)

func (*Environment) CreateNamespace

func (env *Environment) CreateNamespace(obj *_corev1.Namespace) (*_corev1.Namespace, error)

func (*Environment) CreateNamespaceFromFile

func (env *Environment) CreateNamespaceFromFile(path string) (*_corev1.Namespace, error)

func (*Environment) CreateSecret

func (env *Environment) CreateSecret(obj *_corev1.Secret) (*_corev1.Secret, error)

func (*Environment) CreateSecretFromFile

func (env *Environment) CreateSecretFromFile(path string) (*_corev1.Secret, error)

func (*Environment) DeleteClusterSecret

func (env *Environment) DeleteClusterSecret(name string) error

func (*Environment) DeleteNamespace

func (env *Environment) DeleteNamespace(name string) error

func (*Environment) DeleteSecret

func (env *Environment) DeleteSecret(namespace string, name string) error

func (*Environment) GetClusterSecret

func (env *Environment) GetClusterSecret(name string) (*_corecssapcomv1alpha1.ClusterSecret, error)

func (*Environment) GetNamespace

func (env *Environment) GetNamespace(name string) (*_corev1.Namespace, error)

func (*Environment) GetSecret

func (env *Environment) GetSecret(namespace string, name string) (*_corev1.Secret, error)

func (*Environment) KubernetesClient

func (env *Environment) KubernetesClient() *_kubernetes.Clientset

func (*Environment) LabelClusterSecret

func (env *Environment) LabelClusterSecret(name string, key string, value string) (*_corecssapcomv1alpha1.ClusterSecret, error)

func (*Environment) LabelNamespace

func (env *Environment) LabelNamespace(name string, key string, value string) (*_corev1.Namespace, error)

func (*Environment) LabelSecret

func (env *Environment) LabelSecret(namespace string, name string, key string, value string) (*_corev1.Secret, error)

func (*Environment) ListClusterSecrets

func (env *Environment) ListClusterSecrets(labelSelector string) ([]*_corecssapcomv1alpha1.ClusterSecret, error)

func (*Environment) ListNamespaces

func (env *Environment) ListNamespaces(labelSelector string) ([]*_corev1.Namespace, error)

func (*Environment) ListSecrets

func (env *Environment) ListSecrets(namespace string, labelSelector string) ([]*_corev1.Secret, error)

func (*Environment) LoadClusterSecretFromFile

func (env *Environment) LoadClusterSecretFromFile(path string) *_corecssapcomv1alpha1.ClusterSecret

func (*Environment) LoadNamespaceFromFile

func (env *Environment) LoadNamespaceFromFile(path string) *_corev1.Namespace

func (*Environment) LoadSecretFromFile

func (env *Environment) LoadSecretFromFile(path string) *_corev1.Secret

func (*Environment) Must

func (env *Environment) Must(errorHandler func(error)) *Must

func (*Environment) MustError

func (env *Environment) MustError(t *testing.T) *Must

func (*Environment) MustFatal

func (env *Environment) MustFatal(t *testing.T) *Must

func (*Environment) PatchClusterSecret

func (env *Environment) PatchClusterSecret(name string, patchType types.PatchType, patch []byte) (*_corecssapcomv1alpha1.ClusterSecret, error)

func (*Environment) PatchNamespace

func (env *Environment) PatchNamespace(name string, patchType types.PatchType, patch []byte) (*_corev1.Namespace, error)

func (*Environment) PatchSecret

func (env *Environment) PatchSecret(namespace string, name string, patchType types.PatchType, patch []byte) (*_corev1.Secret, error)

func (*Environment) UnlabelClusterSecret

func (env *Environment) UnlabelClusterSecret(name string, key string) (*_corecssapcomv1alpha1.ClusterSecret, error)

func (*Environment) UnlabelNamespace

func (env *Environment) UnlabelNamespace(name string, key string) (*_corev1.Namespace, error)

func (*Environment) UnlabelSecret

func (env *Environment) UnlabelSecret(namespace string, name string, key string) (*_corev1.Secret, error)

func (*Environment) UpdateClusterSecret

func (*Environment) UpdateClusterSecretFromFile

func (env *Environment) UpdateClusterSecretFromFile(path string) (*_corecssapcomv1alpha1.ClusterSecret, error)

func (*Environment) UpdateNamespace

func (env *Environment) UpdateNamespace(obj *_corev1.Namespace) (*_corev1.Namespace, error)

func (*Environment) UpdateNamespaceFromFile

func (env *Environment) UpdateNamespaceFromFile(path string) (*_corev1.Namespace, error)

func (*Environment) UpdateSecret

func (env *Environment) UpdateSecret(obj *_corev1.Secret) (*_corev1.Secret, error)

func (*Environment) UpdateSecretFromFile

func (env *Environment) UpdateSecretFromFile(path string) (*_corev1.Secret, error)

func (*Environment) WaitForClusterSecret

func (*Environment) WaitForClusterSecretDeleted

func (env *Environment) WaitForClusterSecretDeleted(obj *corev1alpha1.ClusterSecret) error

func (*Environment) WaitForClusterSecretFromFile

func (env *Environment) WaitForClusterSecretFromFile(path string, conditions ...watchtools.ConditionFunc) (*_corecssapcomv1alpha1.ClusterSecret, error)

func (*Environment) WaitForClusterSecretReady

func (env *Environment) WaitForClusterSecretReady(obj *corev1alpha1.ClusterSecret) (*corev1alpha1.ClusterSecret, error)

func (*Environment) WaitForNamespace

func (env *Environment) WaitForNamespace(obj *_corev1.Namespace, conditions ...watchtools.ConditionFunc) (*_corev1.Namespace, error)

func (*Environment) WaitForNamespaceFromFile

func (env *Environment) WaitForNamespaceFromFile(path string, conditions ...watchtools.ConditionFunc) (*_corev1.Namespace, error)

func (*Environment) WaitForSecret

func (env *Environment) WaitForSecret(obj *_corev1.Secret, conditions ...watchtools.ConditionFunc) (*_corev1.Secret, error)

func (*Environment) WaitForSecretFromFile

func (env *Environment) WaitForSecretFromFile(path string, conditions ...watchtools.ConditionFunc) (*_corev1.Secret, error)

func (*Environment) WithClusterSecret

func (env *Environment) WithClusterSecret(obj *_corecssapcomv1alpha1.ClusterSecret) *Environment

func (*Environment) WithClusterSecretFromFile

func (env *Environment) WithClusterSecretFromFile(path string) *Environment

func (*Environment) WithClusterSecretsFromFiles

func (env *Environment) WithClusterSecretsFromFiles(paths ...string) *Environment

func (*Environment) WithNamespace

func (env *Environment) WithNamespace(obj *_corev1.Namespace) *Environment

func (*Environment) WithNamespaceFromFile

func (env *Environment) WithNamespaceFromFile(path string) *Environment

func (*Environment) WithNamespacesFromFiles

func (env *Environment) WithNamespacesFromFiles(paths ...string) *Environment

func (*Environment) WithSecret

func (env *Environment) WithSecret(obj *_corev1.Secret) *Environment

func (*Environment) WithSecretFromFile

func (env *Environment) WithSecretFromFile(path string) *Environment

func (*Environment) WithSecretsFromFiles

func (env *Environment) WithSecretsFromFiles(paths ...string) *Environment

type Must

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

func (*Must) AssertClusterSecret

func (must *Must) AssertClusterSecret(obj *_corecssapcomv1alpha1.ClusterSecret)

func (*Must) AssertClusterSecretCount

func (must *Must) AssertClusterSecretCount(labelSelector string, count int)

func (*Must) AssertClusterSecretFromFile

func (must *Must) AssertClusterSecretFromFile(path string)

func (*Must) AssertNamespace

func (must *Must) AssertNamespace(obj *_corev1.Namespace)

func (*Must) AssertNamespaceCount

func (must *Must) AssertNamespaceCount(labelSelector string, count int)

func (*Must) AssertNamespaceFromFile

func (must *Must) AssertNamespaceFromFile(path string)

func (*Must) AssertSecret

func (must *Must) AssertSecret(obj *_corev1.Secret)

func (*Must) AssertSecretCount

func (must *Must) AssertSecretCount(namespace string, labelSelector string, count int)

func (*Must) AssertSecretFromFile

func (must *Must) AssertSecretFromFile(path string)

func (*Must) CreateClusterSecretFromFile

func (must *Must) CreateClusterSecretFromFile(path string) *_corecssapcomv1alpha1.ClusterSecret

func (*Must) CreateNamespace

func (must *Must) CreateNamespace(obj *_corev1.Namespace) *_corev1.Namespace

func (*Must) CreateNamespaceFromFile

func (must *Must) CreateNamespaceFromFile(path string) *_corev1.Namespace

func (*Must) CreateSecret

func (must *Must) CreateSecret(obj *_corev1.Secret) *_corev1.Secret

func (*Must) CreateSecretFromFile

func (must *Must) CreateSecretFromFile(path string) *_corev1.Secret

func (*Must) DeleteClusterSecret

func (must *Must) DeleteClusterSecret(name string)

func (*Must) DeleteNamespace

func (must *Must) DeleteNamespace(name string)

func (*Must) DeleteSecret

func (must *Must) DeleteSecret(namespace string, name string)

func (*Must) GetClusterSecret

func (must *Must) GetClusterSecret(name string) *_corecssapcomv1alpha1.ClusterSecret

func (*Must) GetNamespace

func (must *Must) GetNamespace(name string) *_corev1.Namespace

func (*Must) GetSecret

func (must *Must) GetSecret(namespace string, name string) *_corev1.Secret

func (*Must) LabelClusterSecret

func (must *Must) LabelClusterSecret(name string, key string, value string) *_corecssapcomv1alpha1.ClusterSecret

func (*Must) LabelNamespace

func (must *Must) LabelNamespace(name string, key string, value string) *_corev1.Namespace

func (*Must) LabelSecret

func (must *Must) LabelSecret(namespace string, name string, key string, value string) *_corev1.Secret

func (*Must) ListClusterSecrets

func (must *Must) ListClusterSecrets(labelSelector string) []*_corecssapcomv1alpha1.ClusterSecret

func (*Must) ListNamespaces

func (must *Must) ListNamespaces(labelSelector string) []*_corev1.Namespace

func (*Must) ListSecrets

func (must *Must) ListSecrets(namespace string, labelSelector string) []*_corev1.Secret

func (*Must) PatchClusterSecret

func (must *Must) PatchClusterSecret(name string, patchType types.PatchType, patch []byte) *_corecssapcomv1alpha1.ClusterSecret

func (*Must) PatchNamespace

func (must *Must) PatchNamespace(name string, patchType types.PatchType, patch []byte) *_corev1.Namespace

func (*Must) PatchSecret

func (must *Must) PatchSecret(namespace string, name string, patchType types.PatchType, patch []byte) *_corev1.Secret

func (*Must) UnlabelClusterSecret

func (must *Must) UnlabelClusterSecret(name string, key string) *_corecssapcomv1alpha1.ClusterSecret

func (*Must) UnlabelNamespace

func (must *Must) UnlabelNamespace(name string, key string) *_corev1.Namespace

func (*Must) UnlabelSecret

func (must *Must) UnlabelSecret(namespace string, name string, key string) *_corev1.Secret

func (*Must) UpdateClusterSecretFromFile

func (must *Must) UpdateClusterSecretFromFile(path string) *_corecssapcomv1alpha1.ClusterSecret

func (*Must) UpdateNamespace

func (must *Must) UpdateNamespace(obj *_corev1.Namespace) *_corev1.Namespace

func (*Must) UpdateNamespaceFromFile

func (must *Must) UpdateNamespaceFromFile(path string) *_corev1.Namespace

func (*Must) UpdateSecret

func (must *Must) UpdateSecret(obj *_corev1.Secret) *_corev1.Secret

func (*Must) UpdateSecretFromFile

func (must *Must) UpdateSecretFromFile(path string) *_corev1.Secret

func (*Must) WaitForClusterSecret

func (must *Must) WaitForClusterSecret(obj *_corecssapcomv1alpha1.ClusterSecret, conditions ...watchtools.ConditionFunc) *_corecssapcomv1alpha1.ClusterSecret

func (*Must) WaitForClusterSecretDeleted

func (must *Must) WaitForClusterSecretDeleted(obj *corev1alpha1.ClusterSecret)

func (*Must) WaitForClusterSecretFromFile

func (must *Must) WaitForClusterSecretFromFile(path string, conditions ...watchtools.ConditionFunc) *_corecssapcomv1alpha1.ClusterSecret

func (*Must) WaitForClusterSecretReady

func (must *Must) WaitForClusterSecretReady(obj *corev1alpha1.ClusterSecret) *corev1alpha1.ClusterSecret

func (*Must) WaitForNamespace

func (must *Must) WaitForNamespace(obj *_corev1.Namespace, conditions ...watchtools.ConditionFunc) *_corev1.Namespace

func (*Must) WaitForNamespaceFromFile

func (must *Must) WaitForNamespaceFromFile(path string, conditions ...watchtools.ConditionFunc) *_corev1.Namespace

func (*Must) WaitForSecret

func (must *Must) WaitForSecret(obj *_corev1.Secret, conditions ...watchtools.ConditionFunc) *_corev1.Secret

func (*Must) WaitForSecretFromFile

func (must *Must) WaitForSecretFromFile(path string, conditions ...watchtools.ConditionFunc) *_corev1.Secret

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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