next
Some checks failed
Tests / Run on Ubuntu (push) Failing after 1m4s
Lint / Run on Ubuntu (push) Failing after 3m4s
E2E Tests / Run on Ubuntu (push) Failing after 3m39s

This commit is contained in:
Chris Richardson
2025-05-12 17:38:00 -04:00
parent 1564c26dbf
commit b03514b861

View File

@@ -22,6 +22,7 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"time"
. "github.com/onsi/ginkgo/v2"
@@ -261,11 +262,11 @@ var _ = Describe("Manager", Ordered, func() {
// TODO: Customize the e2e test suite with scenarios specific to your project.
// Consider applying sample/CR(s) and check their status and/or verifying
// the reconciliation by using the metrics, i.e.:
// metricsOutput := getMetricsOutput()
// Expect(metricsOutput).To(ContainSubstring(
// fmt.Sprintf(`controller_runtime_reconcile_total{controller="%s",result="success"} 1`,
// strings.ToLower(<Kind>),
// ))
metricsOutput := getMetricsOutput()
Expect(metricsOutput).To(ContainSubstring(
fmt.Sprintf(`controller_runtime_reconcile_total{controller="%s",result="success"} 1`,
strings.ToLower(<Kind>),
))
})
})