SIENTIAPDE-1174
Update requirements and refactor manager classes to remove pod_id - Updated the sientia-dataops-library dependency version to 1.3.8 in requirements.txt. - Refactored IngestorManager, OpcManager, and ResourceManager classes to remove pod_id from their initialization and internal handling, enhancing code clarity and consistency. - Adjusted unit tests to reflect the removal of pod_id, ensuring they remain functional and accurate.
This commit is contained in:
@@ -46,13 +46,12 @@ metadata = {
|
||||
@fixture
|
||||
def raw_opc_manager():
|
||||
return OpcManager(
|
||||
"TestConnector",
|
||||
"opc.tcp://localhost:4840",
|
||||
MagicMock(),
|
||||
MagicMock(),
|
||||
"opc.tcp://localhost:4840",
|
||||
MagicMock(),
|
||||
"localhost",
|
||||
name="TestConnector",
|
||||
url="opc.tcp://localhost:4840",
|
||||
data_manager=MagicMock(),
|
||||
logger=MagicMock(),
|
||||
server_uri="opc.tcp://localhost:4840",
|
||||
notification_handler=MagicMock(),
|
||||
metadata=metadata["metadata"],
|
||||
)
|
||||
|
||||
@@ -552,7 +551,6 @@ def test_init_metrics_calls_correct_metric_methods(mock_metrics):
|
||||
logger=MagicMock(),
|
||||
server_uri="opc.tcp://init.test:4840/uri",
|
||||
notification_handler=MagicMock(),
|
||||
pod_id="init_pod_localhost",
|
||||
metadata=metadata["metadata"],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user