Documentation
¶
Overview ¶
Package integration contains the Addon Operator integration tests.
Index ¶
- Constants
- Variables
- func ExecCommandInPod(namespace string, pod string, container string, command []string) (string, string, error)
- func LoadObjectsFromDeploymentFiles(t *testing.T) []unstructured.Unstructured
- func PrintPodStatusAndLogs(namespace string) error
- func RunAPIServerProxy(closeCh <-chan struct{}) error
- func WaitForFreshAddonCondition(t *testing.T, timeout time.Duration, a *addonsv1alpha1.Addon, ...) error
- func WaitForObject(t *testing.T, timeout time.Duration, object client.Object, reason string, ...) error
- func WaitToBeGone(t *testing.T, timeout time.Duration, object client.Object) error
Constants ¶
View Source
const (
OCMAPIEndpoint = "http://api-mock.api-mock.svc.cluster.local"
)
Variables ¶
View Source
var ( // Client pointing to the e2e test cluster. Client client.Client Config *rest.Config Scheme = runtime.NewScheme() Cv *configv1.ClusterVersion OCMClient *ocm.Client // Typed K8s Clients CoreV1Client corev1client.CoreV1Interface // Path to the deployment configuration directory. PathConfigDeploy string // Path to the webhook deployment configuration directory. PathWebhookConfigDeploy string // Path to the OCM API PathOCMAPIMockDeploy string )
Functions ¶
func ExecCommandInPod ¶ added in v0.7.0
func LoadObjectsFromDeploymentFiles ¶
func LoadObjectsFromDeploymentFiles(t *testing.T) []unstructured.Unstructured
Load all k8s objects from .yaml files in config/deploy. File/Object order is preserved.
func PrintPodStatusAndLogs ¶
Prints the phase of a pod together with the logs of every container.
func RunAPIServerProxy ¶ added in v0.7.0
func RunAPIServerProxy(closeCh <-chan struct{}) error
Runs a local apiserver proxy on 127.0.0.1:8001 similar to `kubectl proxy`.
func WaitForFreshAddonCondition ¶ added in v0.7.0
func WaitForFreshAddonCondition( t *testing.T, timeout time.Duration, a *addonsv1alpha1.Addon, conditionType string, conditionStatus metav1.ConditionStatus, ) error
Wait for an up-to-date condition value on an addon. A condition is considered up-to-date when it's .ObservedGeneration matches the generation of it's addon object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.