// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
ConstElementPtr command = Element::fromJSON(ha_sync_command);
};
// Tests that HAService object is created for DHCPv4 service.
-TEST_F(HAImplTest, startService) {
+TEST_F(HAImplTest, startServices) {
// Valid configuration must be provided prior to starting the service.
TestHAImpl ha_impl;
ASSERT_NO_THROW(ha_impl.configure(createValidJsonConfiguration()));
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
// Start the service for DHCPv4 server.
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
// Make sure that the HA service has been created for the requested
// server type.
}
// Tests that HAService object is created for DHCPv6 service.
-TEST_F(HAImplTest, startService6) {
+TEST_F(HAImplTest, startServices6) {
// Valid configuration must be provided prior to starting the service.
TestHAImpl ha_impl;
ASSERT_NO_THROW(ha_impl.configure(createValidJsonConfiguration()));
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv6));
// Start the service for DHCPv4 server.
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv6));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv6));
// Make sure that the HA service has been created for the requested
// server type.
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
// Initially the HA service is in the waiting state and serves no scopes.
// We need to explicitly enable the scope to be served.
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv6));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv6));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv6));
// Initially the HA service is in the waiting state and serves no scopes.
// We need to explicitly enable the scope to be served.
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
// Make sure we wait for the acks from the backup server to be able to
// test the case of sending lease updates even though the service is
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv6));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv6));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv6));
// Make sure we wait for the acks from the backup server to be able to
// test the case of sending lease updates even though the service is
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
ConstElementPtr command = Element::fromJSON("{ \"command\": \"ha-continue\" }");
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
std::string name = "status-get";
ConstElementPtr response =
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
std::string name = "status-get";
ConstElementPtr response =
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
std::string name = "status-get";
ConstElementPtr response =
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
ConstElementPtr command = Element::fromJSON(
"{"
// Starting the service is required prior to running any callouts.
NetworkStatePtr network_state(new NetworkState(NetworkState::DHCPv4));
- ASSERT_NO_THROW(ha_impl.startService(io_service_, network_state,
- HAServerType::DHCPv4));
+ ASSERT_NO_THROW(ha_impl.startServices(io_service_, network_state,
+ HAServerType::DHCPv4));
ConstElementPtr command = Element::fromJSON(
"{"