SIENTIAPDE-988

Enhance IngestorManager and related tests with notification handling integration

- Added notification_handler parameter to IngestorManager and OpcManager initialization for improved event handling.
- Updated unit tests to include notification_handler in the Ingestor and IngestorManager instantiation, ensuring proper coverage of new functionality.
- Refactored test cases to validate the integration of notification handling across components.
This commit is contained in:
vitor-aignosi
2025-05-05 10:06:05 -03:00
parent d00078d323
commit 5f95b6309e
3 changed files with 6 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ def test___init__(notification_handler_mock, resource_manager_mock, data_manager
opc_manager_mock.assert_not_called()
data_manager_mock.assert_called_once_with(
"localhost:9092", ingestor.logger)
"localhost:9092", ingestor.logger, ingestor.notification_handler)
resource_manager_mock.assert_called_once_with(
"localhost", 6379, 60, 60, "test_pod", None, None)
@@ -70,7 +70,8 @@ def test_initialize_opc_from_config(opc_manager, ingestor_manager):
opc_manager.assert_called_once_with(
server_config['name'], server_config['url'], ingestor_manager.data_manager, ingestor_manager.logger,
server_config['server_uri'], server_config['cert_path'], server_config['private_key_path'],
server_config['server_uri'], ingestor_manager.notification_handler,
server_config['cert_path'], server_config['private_key_path'],
server_config['server_cert_path']
)