Skip to content

Commit

Permalink
Merge pull request #924 from gcs278/OCPBUGS-13106-logging
Browse files Browse the repository at this point in the history
OCPBUGS-13106: Add ingress controller status logging on waitForIngressControllerCondition
  • Loading branch information
openshift-merge-robot committed Jun 22, 2023
2 parents 038b86c + 00e85e1 commit 3c362e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/e2e/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"errors"
"fmt"
"io"
Expand Down Expand Up @@ -3725,6 +3726,13 @@ func waitForIngressControllerCondition(t *testing.T, cl client.Client, timeout t
})
if err != nil {
t.Errorf("Expected conditions: %v\n Current conditions: %v", expected, current)
if ic != nil {
if icStatusPretty, err := json.MarshalIndent(ic.Status, "", " "); err != nil {
t.Fatal(err)
} else {
t.Logf("Ingress Controller %s/%s status: %s\n", ic.Namespace, ic.Name, string(icStatusPretty))
}
}
}
return err
}
Expand Down

0 comments on commit 3c362e2

Please sign in to comment.