test

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertingRules

func AlertingRules(c component.MonitoringComponent, expectedAlertingRules map[string]string)

AlertingRules is a utility test function for MonitoringComponents in order to test the alerting rules.

func AlertingRulesWithPromtool

func AlertingRulesWithPromtool(c component.MonitoringComponent, expectedAlertingRules map[string]string, filenameRulesTest string)

AlertingRulesWithPromtool tests the alerting rules and execute promtool tests.

func CmpOptsForDestinationRule added in v1.52.0

func CmpOptsForDestinationRule() cmp.Option

CmpOptsForDestinationRule returns a compare option to ignore unexported fields in types related to destination rules

func CmpOptsForGateway added in v1.52.0

func CmpOptsForGateway() cmp.Option

CmpOptsForGateway returns a compare option to ignore unexported fields in types related to gateways

func CmpOptsForVirtualService added in v1.52.0

func CmpOptsForVirtualService() cmp.Option

CmpOptsForVirtualService returns a compare option to ignore unexported fields in types related to virtual services

func ExecutePromtool

func ExecutePromtool(c component.MonitoringComponent, filenameRulesTest string)

ExecutePromtool execute the promtool tests for the alerting rules. It writes the rules into a temporary file in the "testdata" directory.

func ScrapeConfigs added in v1.12.0

func ScrapeConfigs(c component.MonitoringComponent, expectedScrapeConfigs ...string)

ScrapeConfigs is a utility test function for MonitoringComponents in order to test the scape configurations.

func Serialize added in v1.53.0

func Serialize(obj client.Object) string

Serialize serializes and encodes the passed object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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