e2e

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PromethusTestSA = "prometheus-query-sa"
)

Variables

This section is empty.

Functions

func AssertMetricsEndpointUsesHTTPVersion

func AssertMetricsEndpointUsesHTTPVersion(t *testing.T, endpoint, version, namespace string) error

func AssertServiceMonitoringMetricsTarget added in v1.3.6

func AssertServiceMonitoringMetricsTarget(t *testing.T, metrics []promv1.Target, expectedTargetsCount int)

assertServiceMonitoringMetricsTarget checks if the specified metrics are up

func CleanupRBACForMetricsTest added in v1.3.6

func CleanupRBACForMetricsTest(t *testing.T, operatorNamespace string)

CleanupRBACForMetricsTest deletes the service account

func GetPrometheusMetricTargets added in v1.3.6

func GetPrometheusMetricTargets(t *testing.T, operatorNamespace string) []promv1.Target

GetPrometheusMetricTargets retrieves Prometheus metric targets

func SetupRBACForMetricsTest added in v1.3.6

func SetupRBACForMetricsTest(t *testing.T, operatorNamespace string)

createServiceAccount creates a service account

Types

This section is empty.

Jump to

Keyboard shortcuts

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