From c3f5ba660fda6377111c5b7cfb95f1f0a839d9e0 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Wed, 24 Sep 2025 09:13:22 -0300 Subject: [PATCH] SIENTIAPDE-1222 Enhance test cases for server configuration in test_formatters.py and test_orchestrator_functions.py - Added optional fields for certificate paths in the test cases to align with recent changes in server configuration, improving test coverage and ensuring proper handling of security configurations. --- tests/orchestrator/activities/test_formatters.py | 9 +++++++++ tests/orchestrator/utils/test_orchestrator_functions.py | 3 +++ 2 files changed, 12 insertions(+) diff --git a/tests/orchestrator/activities/test_formatters.py b/tests/orchestrator/activities/test_formatters.py index 6fd32fb..cf2e17a 100644 --- a/tests/orchestrator/activities/test_formatters.py +++ b/tests/orchestrator/activities/test_formatters.py @@ -239,6 +239,9 @@ async def test_process_slots(mock_build_tag_config, mock_gather_read_tags, forma "url": "test_url", "server_uri": "test_uri", "test_name": "test_spec", + "cert_path": None, + "private_key_path": None, + "server_cert_path": None, "tags": { "test_tag_address": { "server_id": "1", @@ -253,6 +256,9 @@ async def test_process_slots(mock_build_tag_config, mock_gather_read_tags, forma "name": "test_server_name2", "url": "test_url2", "server_uri": "test_uri2", + "cert_path": None, + "private_key_path": None, + "server_cert_path": None, "tags": { "test_tag_address2": { "server_id": "2", @@ -269,6 +275,9 @@ async def test_process_slots(mock_build_tag_config, mock_gather_read_tags, forma "name": "test_server_name2", "url": "test_url2", "server_uri": "test_uri2", + "cert_path": None, + "private_key_path": None, + "server_cert_path": None, "tags": { "test_tag_address3": { "server_id": "2", diff --git a/tests/orchestrator/utils/test_orchestrator_functions.py b/tests/orchestrator/utils/test_orchestrator_functions.py index de4a1d5..78cfe1b 100644 --- a/tests/orchestrator/utils/test_orchestrator_functions.py +++ b/tests/orchestrator/utils/test_orchestrator_functions.py @@ -386,6 +386,9 @@ def test_build_tag_config(): "name": "test_server_name", "url": "test_url", "server_uri": "test_uri", + "cert_path": None, + "private_key_path": None, + "server_cert_path": None, "tags": { "test_tag_address": { "server_id": "1",