Commit c3af36b2 authored by Marcin Siodelski's avatar Marcin Siodelski

[#1041] Use isEquivalent in statusGet unittest

parent 7efc0e2e
......@@ -561,13 +561,23 @@ TEST_F(HAImplTest, statusGet) {
ASSERT_TRUE(got);
std::string expected =
"{ \"arguments\": { "
"\"ha-servers\": { "
"\"local\": { \"role\": \"primary\", \"scopes\": [ ], "
"\"state\": \"waiting\" }, "
"\"remote\": { \"role\": \"secondary\" } }, "
"\"pid\": 1 }, \"result\": 0 }";
EXPECT_EQ(expected, got->str());
"{"
" \"arguments\": {"
" \"ha-servers\": {"
" \"local\": {"
" \"role\": \"primary\","
" \"scopes\": [ ],"
" \"state\": \"waiting\""
" },"
" \"remote\": {"
" \"role\": \"secondary\""
" }"
" },"
" \"pid\": 1"
" },"
" \"result\": 0"
"}";
EXPECT_TRUE(isEquivalent(got, Element::fromJSON(expected)));
}
}
Markdown is supported
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