Commit 9a5dc4e9 authored by Georgios Bitzes's avatar Georgios Bitzes
Browse files

Tweak quarkdb-health output some more

parent 2e6d6e1a
Pipeline #1100407 passed with stages
in 52 minutes and 45 seconds
......@@ -92,7 +92,7 @@ public:
}
std::string toString() const {
return SSTR("[" << healthStatusAsString(status) << "] " << description << " " << message);
return SSTR(healthStatusAsString(status) << " | " << description << " " << message);
}
private:
......
......@@ -271,8 +271,8 @@ TEST(Formatter, NodeHealth) {
"2) NODE example.com:7777\n"
"3) VERSION 1.33.7\n"
"4) ----------\n"
"5) [RED] CHICKEN-INVASION Imminent\n"
"6) [GREEN] BEARS Sleeping\n"
"5) RED | CHICKEN-INVASION Imminent\n"
"6) GREEN | BEARS Sleeping\n"
);
}
......
......@@ -55,6 +55,6 @@ TEST(HealthIndicator, BasicSanity) {
ASSERT_EQ(ind1.getDescription(), "AVAILABLE-SPACE");
ASSERT_EQ(ind1.getMessage(), "120 GB");
ASSERT_EQ(ind1.toString(), "[GREEN] AVAILABLE-SPACE 120 GB");
ASSERT_EQ(ind1.toString(), "GREEN | AVAILABLE-SPACE 120 GB");
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment