Documentation ¶
Index ¶
- func AlertingRules(c component.MonitoringComponent, expectedAlertingRules map[string]string)
- func AlertingRulesWithPromtool(c component.MonitoringComponent, expectedAlertingRules map[string]string, ...)
- func CmpOptsForDestinationRule() cmp.Option
- func CmpOptsForGateway() cmp.Option
- func CmpOptsForVirtualService() cmp.Option
- func ExecutePromtool(c component.MonitoringComponent, filenameRulesTest string)
- func ScrapeConfigs(c component.MonitoringComponent, expectedScrapeConfigs ...string)
- func Serialize(obj client.Object) string
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 ¶
CmpOptsForDestinationRule returns a compare option to ignore unexported fields in types related to destination rules
func CmpOptsForGateway ¶
CmpOptsForGateway returns a compare option to ignore unexported fields in types related to gateways
func CmpOptsForVirtualService ¶
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 ¶
func ScrapeConfigs(c component.MonitoringComponent, expectedScrapeConfigs ...string)
ScrapeConfigs is a utility test function for MonitoringComponents in order to test the scape configurations.
Types ¶
This section is empty.