Skip to content

Commit

Permalink
chore(alerts): remove unnecessary code in test-alerts-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ibakshay committed Sep 19, 2024
1 parent a73b443 commit 3902e83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions alerts/charts/templates/tests/test-alerts-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ data:
verify "there is 1 service named '{{ .Release.Name }}-operator'"
try "at most 2 times every 5s to get pods named '{{ .Release.Name }}-operator.*' and verify that '.status.phase' is 'running'"
}
@test "Verify that alertmanager is available and reconciled" {
try "at most 5 times every 5s to get alertmanagers named '{{ .Release.Name }}' and verify that '.status.conditions[0].status' is 'True'"
try "at most 5 times every 5s to get alertmanagers named '{{ .Release.Name }}' and verify that '.status.conditions[1].status' is 'True'"
Expand All @@ -38,7 +37,7 @@ data:
{{- end -}}
{{- if .Values.alerts.alertmanager.ingress.enabled }}
{{ if .Capabilities.APIVersions.Has "cert-manager.io/v1" }}
{{- if .Capabilities.APIVersions.Has "cert-manager.io/v1" }}
@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 3902e83

Please sign in to comment.