Skip to content

Commit 8c35ac3

Browse files
committed
add the changes
Signed-off-by: kunal_yelgate <kunalyelgatew@gmail.com>
1 parent 7a0923b commit 8c35ac3

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

cmd/health_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ func TestHealthyServer(t *testing.T) {
7272
}
7373

7474
output := buf.String()
75-
if !strings.Contains(output, "Reachable") {
75+
if !strings.Contains(output, "Reachable") {
7676
t.Errorf("output does not contain reachability info: %q", output)
7777
}
78-
if !strings.Contains(output, "Overall Status: HEALTHY") {
78+
if !strings.Contains(output, "Overall Status: HEALTHY") {
7979
t.Errorf("output does not contain healthy overall status: %q", output)
8080
}
81-
if !strings.Contains(output, "Keycloak: disabled") {
81+
if !strings.Contains(output, "Keycloak: disabled") {
8282
t.Errorf("output does not contain keycloak disabled info: %q", output)
8383
}
84-
if !strings.Contains(output, "Database: connected") {
84+
if !strings.Contains(output, "Database: connected") {
8585
t.Errorf("output does not contain database connected info: %q", output)
8686
}
8787
}
@@ -112,10 +112,10 @@ func TestUnreachableServer(t *testing.T) {
112112
}
113113

114114
output := buf.String()
115-
if !strings.Contains(output, "Unreachable") {
115+
if !strings.Contains(output, "Unreachable") {
116116
t.Errorf("output does not contain unreachable info: %q", output)
117117
}
118-
if !strings.Contains(output, "Overall Status: UNHEALTHY") {
118+
if !strings.Contains(output, "Overall Status: UNHEALTHY") {
119119
t.Errorf("output does not contain unhealthy status: %q", output)
120120
}
121121
}
@@ -161,10 +161,10 @@ func TestHealthResponseParsing(t *testing.T) {
161161
}
162162

163163
output := buf.String()
164-
if !strings.Contains(output, "Database: connected") {
164+
if !strings.Contains(output, "Database: connected") {
165165
t.Errorf("output should show Database connected: %q", output)
166166
}
167-
if !strings.Contains(output, "Overall Status: DEGRADED ⚠️") {
167+
if !strings.Contains(output, "Overall Status: DEGRADED") {
168168
t.Errorf("output should show degraded status: %q", output)
169169
}
170170
}

0 commit comments

Comments
 (0)