Skip to content

Commit

Permalink
metric deletion test comments update
Browse files Browse the repository at this point in the history
  • Loading branch information
aaa5kameric committed Oct 15, 2024
1 parent 8e52c02 commit 1a319c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/certmonitor/certmonitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func TestCertMonitor_secretMatches(t *testing.T) {
}
}

// TestCertMonitor func tests certificates event handlers + prometheus metrics handling
// TestCertMonitor_Secret tests that secret event handlers correctly populate prometheus metrics
func TestCertMonitor_Secret(t *testing.T) {
fleetshardmetrics.MetricsInstance().CertificatesExpiry.Reset()

Expand Down Expand Up @@ -345,6 +345,7 @@ func TestCertMonitor_Secret(t *testing.T) {
verifyPrometheusMetricDelete(t, "namespace-1", "secret-1", "tls.crt")
}

// TestCertMonitor_Namespace tests that namespace secret handlers remove prometheus metrics when the namespace is deleted
func TestCertMonitor_Namespace(t *testing.T) {
fleetshardmetrics.MetricsInstance().CertificatesExpiry.Reset()

Expand Down

0 comments on commit 1a319c3

Please sign in to comment.