utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectTestArtifacts

func CollectTestArtifacts(t *testing.T, artifactName string, c client.Client, cfg *rest.Config)

CollectTestArtifacts gets all the artifacts from the test run and saves them to the artifact path. Currently, it saves: - clusterextensions - pods logs - deployments - catalogsources

func FindK8sClient

func FindK8sClient(t *testing.T) string

FindK8sClient returns the first available Kubernetes CLI client from the system, It checks for the existence of each client by running `version --client`. If no suitable client is found, the function terminates the test with a failure.

func ReadTestCatalogServerContents

func ReadTestCatalogServerContents(ctx context.Context, catalog *ocv1.ClusterCatalog, kubeClient kubernetes.Interface) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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