// Add the ha servers info to arguments.
ElementPtr mutable_resp_args =
boost::const_pointer_cast<Element>(resp_args);
- ConstElementPtr ha_servers = service_->commandProcessed();
+ ConstElementPtr ha_servers = service_->processStatusGet();
mutable_resp_args->set("ha-servers", ha_servers);
}
}
///
/// @c HAImpl::commandProcessed calls this to add HA servers info
/// into the status-get response.
- data::ConstElementPtr commandProcessed() const;
+ data::ConstElementPtr processStatusGet() const;
protected:
service.runModel(HAService::NOP_EVT);
// Check the reported info about servers.
- ConstElementPtr ha_servers = service.commandProcessed();
+ ConstElementPtr ha_servers = service.processStatusGet();
ASSERT_TRUE(ha_servers);
std::string expected = "{ "
"\"local\": { \"role\": \"primary\", "
TestHAService service(io_service_, network_state_, config_storage);
// Check the reported info about servers.
- ConstElementPtr ha_servers = service.commandProcessed();
+ ConstElementPtr ha_servers = service.processStatusGet();
ASSERT_TRUE(ha_servers);
std::string expected = "{ "
"\"local\": { \"role\": \"standby\", "
ASSERT_FALSE(isFailureDetected());
// Check the reported info about servers.
- ConstElementPtr ha_servers = service_->commandProcessed();
+ ConstElementPtr ha_servers = service_->processStatusGet();
ASSERT_TRUE(ha_servers);
std::cout << ha_servers->str() << "\n";
std::string expected = "{ "