From a19ec20c12ea7b8659d1405bb2e293094584ba2e Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Wed, 20 Aug 2025 12:16:38 -0300 Subject: [PATCH] SIENTIAPDE-1199 Update Ingestor project name and metadata keys to lowercase for consistency - Changed project_name, workflow_name, and schema_name from uppercase to lowercase in Ingestor class and corresponding unit tests. --- ingestor/ingestor.py | 6 +++--- tests/unit/test_ingestor.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ingestor/ingestor.py b/ingestor/ingestor.py index c8c6ce3..27f1819 100644 --- a/ingestor/ingestor.py +++ b/ingestor/ingestor.py @@ -66,14 +66,14 @@ class Ingestor: connection_string=self.mongo_connection_string, database=self.mongo_database, logger=self.logger, - project_name="OPC_INGESTOR" + project_name="opc_ingestor" ) self.metadata = { 'model_id': '-', 'model_name': '-', - 'workflow_name': 'OPC_INGESTOR', - 'schema_name': 'OPC_INGESTOR', + 'workflow_name': 'opc_ingestor', + 'schema_name': 'opc_ingestor', 'pod_id': self.pod_id, } self.ingestor_manager = None diff --git a/tests/unit/test_ingestor.py b/tests/unit/test_ingestor.py index 215e0fc..5faccfa 100644 --- a/tests/unit/test_ingestor.py +++ b/tests/unit/test_ingestor.py @@ -49,8 +49,8 @@ def test___init__(notification_handler, getenv): assert ingestor.metadata == { "model_id": "-", "model_name": "-", - "workflow_name": "OPC_INGESTOR", - "schema_name": "OPC_INGESTOR", + "workflow_name": "opc_ingestor", + "schema_name": "opc_ingestor", "pod_id": "localhost1" } @@ -58,7 +58,7 @@ def test___init__(notification_handler, getenv): connection_string="mongodb://sientia:sientia@localhost:27017", database="sientia", logger=ingestor.logger, - project_name="OPC_INGESTOR" + project_name="opc_ingestor" )