Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Crystal Michelle Chua
QuarkDB
Commits
9a5dc4e9
Commit
9a5dc4e9
authored
Sep 17, 2019
by
Georgios Bitzes
Browse files
Tweak quarkdb-health output some more
parent
2e6d6e1a
Pipeline
#1100407
passed with stages
in 52 minutes and 45 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/health/HealthIndicator.hh
View file @
9a5dc4e9
...
...
@@ -92,7 +92,7 @@ public:
}
std
::
string
toString
()
const
{
return
SSTR
(
"["
<<
healthStatusAsString
(
status
)
<<
"
]
"
<<
description
<<
" "
<<
message
);
return
SSTR
(
healthStatusAsString
(
status
)
<<
"
|
"
<<
description
<<
" "
<<
message
);
}
private:
...
...
test/formatter.cc
View file @
9a5dc4e9
...
...
@@ -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
"
);
}
...
...
test/health.cc
View file @
9a5dc4e9
...
...
@@ -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"
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment