Skip to content

Commit

Permalink
chore(alerts): improve test description
Browse files Browse the repository at this point in the history
  • Loading branch information
ibakshay committed Sep 19, 2024
1 parent e365fad commit 260426e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alerts/charts/templates/tests/test-alerts-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ data:
}
{{- if .Values.alerts.alertmanager.ingress.enabled }}
@test "Verify that secret '{{ .Release.Namespace }}-monitoring-ca' is created" {
@test "Verify that secret '{{ .Release.Namespace }}-monitoring-ca' is created when ingress is enabled" {
verify "there is 1 secret named '{{ .Release.Namespace }}-monitoring-ca'"
}
{{- end -}}
{{- if .Values.alerts.alertmanager.ingress.enabled }}
{{ if .Capabilities.APIVersions.Has "cert-manager.io/v1" }}
@test "Verify that Issuer and Certificate are created" {
@test "Verify that Issuer and Certificate are created when ingress is enabled and cert-manager crd is available" {
verify "there is 1 issuer named '{{ .Release.Namespace }}-monitoring-issuer'"
verify "there is 1 certificate named '{{ .Release.Namespace }}-prometheus-auth'"
}
Expand Down

0 comments on commit 260426e

Please sign in to comment.