tests

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestKubernetesConformance

func TestKubernetesConformance(
	ctx context.Context,
	log *zap.SugaredLogger,
	opts *types.Options,
	scenario scenarios.Scenario,
	cluster *kubermaticv1.Cluster,
	userClusterClient ctrlruntimeclient.Client,
	kubeconfigFilename string,
	cloudConfigFilename string,
	report *reporters.JUnitTestSuite,
) error

func TestLoadBalancer

func TestLoadBalancer(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options, cluster *kubermaticv1.Cluster, userClusterClient ctrlruntimeclient.Client, attempt int) error

func TestNoK8sGcrImages

func TestNoK8sGcrImages(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options, cluster *kubermaticv1.Cluster) error

func TestStorage

func TestStorage(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options, cluster *kubermaticv1.Cluster, userClusterClient ctrlruntimeclient.Client, attempt int) error

func TestTelemetry

func TestTelemetry(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options) error

TestTelemetry checks if there are telemetry pods available and gets the logs from the most recent one, assuming that it output a big JSON document with KKP and k8s statistics.

func TestUserClusterControlPlaneSecurityContext

func TestUserClusterControlPlaneSecurityContext(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options, cluster *kubermaticv1.Cluster) error

func TestUserClusterMetrics

func TestUserClusterMetrics(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options, cluster *kubermaticv1.Cluster, seedClient ctrlruntimeclient.Client) error

testUserClusterMetrics ensures all expected metrics are actually collected in Prometheus. Note that this assumes that some time has passed between Prometheus' eployment and this test, so it can scrape all targets. This includes kubelets, so nodes must have been ready for at least 30 seconds before this can succeed.

func TestUserClusterNoK8sGcrImages

func TestUserClusterNoK8sGcrImages(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options, cluster *kubermaticv1.Cluster, userClusterClient ctrlruntimeclient.Client) error

func TestUserClusterPodAndNodeMetrics

func TestUserClusterPodAndNodeMetrics(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options, cluster *kubermaticv1.Cluster, userClusterClient ctrlruntimeclient.Client) error

func TestUserClusterSeccompProfiles

func TestUserClusterSeccompProfiles(ctx context.Context, log *zap.SugaredLogger, opts *ctypes.Options, cluster *kubermaticv1.Cluster, userClusterClient ctrlruntimeclient.Client) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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