Skip to content

Commit

Permalink
[NO-ISSUE] Fix test-mk-do test failure
Browse files Browse the repository at this point in the history
The test fails because the default operator log level
has changed from debug to info
  • Loading branch information
howardgao authored and brusdev committed Apr 20, 2023
1 parent 763e9f4 commit cd0330a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@ var _ = Describe("artemis controller", Label("do"), func() {
Context("operator logging config test", Label("do-operator-log"), func() {
It("test operator with env var", func() {
if os.Getenv("DEPLOY_OPERATOR") == "true" {
By("checking default operator should have INFO/DEBUG logs")
// re-install a new operator to have a fresh log
uninstallOperator(false)
installOperator(nil)
By("checking default operator should have INFO logs")
Eventually(func(g Gomega) {
oprLog, err := GetOperatorLog(defaultNamespace)
g.Expect(err).To(BeNil())
g.Expect(*oprLog).To(ContainSubstring("INFO"))
g.Expect(*oprLog).To(ContainSubstring("DEBUG"))
g.Expect(*oprLog).NotTo(ContainSubstring("DEBUG"))
g.Expect(*oprLog).NotTo(ContainSubstring("ERROR"))
}, existingClusterTimeout, existingClusterInterval).Should(Succeed())

Expand Down

0 comments on commit cd0330a

Please sign in to comment.