mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 23:45:27 +00:00
[2854] made trivial updates to xfrin for the correction to reconfigure()
This commit is contained in:
@@ -256,11 +256,11 @@ class MockDataSrcClientsMgr():
|
|||||||
def get_client_list(self, rrclass):
|
def get_client_list(self, rrclass):
|
||||||
return self.found_datasrc_client_list
|
return self.found_datasrc_client_list
|
||||||
|
|
||||||
def reconfigure(self, arg1):
|
def reconfigure(self, arg1, arg2):
|
||||||
# the only current test simply needs to know this is called with
|
# the only current test simply needs to know this is called with
|
||||||
# the expected argument and exceptions are handled. if we need more
|
# the expected arguments and exceptions are handled. if we need more
|
||||||
# variations in tests, this mock method should be extended.
|
# variations in tests, this mock method should be extended.
|
||||||
self.reconfigure_param.append(arg1)
|
self.reconfigure_param.append((arg1, arg2))
|
||||||
raise isc.server_common.datasrc_clients_mgr.ConfigError(
|
raise isc.server_common.datasrc_clients_mgr.ConfigError(
|
||||||
'reconfigure failure')
|
'reconfigure failure')
|
||||||
|
|
||||||
@@ -3038,7 +3038,7 @@ class TestXfrin(unittest.TestCase):
|
|||||||
# we just check it's called as expected, and the only possible
|
# we just check it's called as expected, and the only possible
|
||||||
# exception doesn't cause disruption.
|
# exception doesn't cause disruption.
|
||||||
self.xfr._datasrc_config_handler(True, False)
|
self.xfr._datasrc_config_handler(True, False)
|
||||||
self.assertEqual([True],
|
self.assertEqual([(True, False)],
|
||||||
self.xfr._datasrc_clients_mgr.reconfigure_param)
|
self.xfr._datasrc_clients_mgr.reconfigure_param)
|
||||||
|
|
||||||
def raise_interrupt():
|
def raise_interrupt():
|
||||||
|
@@ -1459,7 +1459,7 @@ class Xfrin:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
self._datasrc_clients_mgr.reconfigure(new_config)
|
self._datasrc_clients_mgr.reconfigure(new_config, config_data)
|
||||||
except isc.server_common.datasrc_clients_mgr.ConfigError as ex:
|
except isc.server_common.datasrc_clients_mgr.ConfigError as ex:
|
||||||
logger.error(XFRIN_DATASRC_CONFIG_ERROR, ex)
|
logger.error(XFRIN_DATASRC_CONFIG_ERROR, ex)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user