Skip to content

Commit

Permalink
Merge pull request #2165 from Nordix/kashif/fix-metrics-service-check
Browse files Browse the repository at this point in the history
🐛 Fix metrics service validation
  • Loading branch information
metal3-io-bot authored Jan 2, 2025
2 parents 8cd8f58 + 6b58105 commit 5999d3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ var _ = SynchronizedBeforeSuite(func() []byte {
Expect(err).NotTo(HaveOccurred(), "Failed to create ClusterRoleBinding")

By("validating that the metrics service is available")
cmd = exec.Command("kubectl", "get", "service", metricsServiceName, "-n", namespace)
Eventually(func() error {
cmd := exec.Command("kubectl", "get", "service", metricsServiceName, "-n", namespace)
output, err := cmd.CombinedOutput()
if err != nil {
fmt.Printf("Command output: %s\n", string(output))
fmt.Printf("Service check output: %s\n", string(output))
return err
}
return nil
}, "30s", "5s").Should(Succeed())
}, "30s", "5s").Should(Succeed(), "Metrics service is not available")

By("getting the service account token")
token, err := serviceAccountToken()
Expand Down

0 comments on commit 5999d3e

Please sign in to comment.