ASSERT_TRUE(command);
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"command\": \"config-get\", "
- "\"service\": [ \"foo\" ] }";
+ "\"remote-address\": \"127.0.0.1\", \"service\": [ \"foo\" ] }";
EXPECT_EQ(expected, command->stringValue());
}
ConstElementPtr command = reflected->get("received");
ASSERT_TRUE(command);
ASSERT_EQ(Element::string, command->getType());
- string expected = "{ \"command\": \"config-get\" }";
+ string expected = "{ \"command\": \"config-get\", \"remote-address\": \"127.0.0.1\" }";
EXPECT_EQ(expected, command->stringValue());
}
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"arguments\": { \"bar\": 1 }, "
"\"command\": \"config-test\", "
- "\"service\": [ \"foo\" ] }";
+ "\"remote-address\": \"127.0.0.1\", \"service\": [ \"foo\" ] }";
EXPECT_EQ(expected, command->stringValue());
}
ASSERT_TRUE(command);
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"arguments\": { \"bar\": 1 }, "
- "\"command\": \"config-test\" }";
+ "\"command\": \"config-test\", \"remote-address\": \"127.0.0.1\" }";
EXPECT_EQ(expected, command->stringValue());
}
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"arguments\": { \"bar\": 1 }, "
"\"command\": \"config-set\", "
- "\"service\": [ \"foo\" ] }";
+ "\"remote-address\": \"127.0.0.1\", \"service\": [ \"foo\" ] }";
EXPECT_EQ(expected, command->stringValue());
}
ASSERT_TRUE(command);
ASSERT_EQ(Element::string, command->getType());
string expected = "{ \"arguments\": { \"bar\": 1 }, "
- "\"command\": \"config-set\" }";
+ "\"command\": \"config-set\", \"remote-address\": \"127.0.0.1\" }";
EXPECT_EQ(expected, command->stringValue());
}