Commit c7b46c72 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5351] Missing commit

parent b38803ce
......@@ -116,7 +116,7 @@ TEST_F(CfgDUIDTest, setValues) {
ASSERT_NO_THROW(cfg_duid.setTime(32100));
ASSERT_NO_THROW(cfg_duid.setEnterpriseId(10));
ASSERT_NO_THROW(cfg_duid.setPersist(false));
std::string user_context = "{ \"comment\": \"foo\", \"bar\": 1 }";
std::string user_context = "{ \"comment\": \"bar\", \"foo\": 1 }";
ASSERT_NO_THROW(cfg_duid.setContext(Element::fromJSON(user_context)));
// Check that values have been set correctly.
......@@ -130,14 +130,14 @@ TEST_F(CfgDUIDTest, setValues) {
EXPECT_EQ(user_context, cfg_duid.getContext()->str());
std::string expected = "{\n"
" \"comment\": \"foo\",\n"
" \"comment\": \"bar\",\n"
" \"type\": \"EN\",\n"
" \"identifier\": \"ABCDEF\",\n"
" \"htype\": 100,\n"
" \"time\": 32100,\n"
" \"enterprise-id\": 10,\n"
" \"persist\": false,\n"
" \"user-context\": { \"bar\": 1 }\n"
" \"user-context\": { \"foo\": 1 }\n"
"}";
runToElementTest<CfgDUID>(expected, cfg_duid);
}
......
......@@ -282,7 +282,7 @@ TEST(CfgOptionDefTest, unparse) {
" \"record-types\": \"uint16, uint16\",\n"
" \"encapsulate\": \"\",\n"
" \"space\": \"dns\",\n"
" \"user-context\": \"bar\": 1 }\n"
" \"user-context\": { \"bar\": 1 }\n"
"},{\n"
" \"name\": \"option-foo\",\n"
" \"code\": 5,\n"
......
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