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.
This commit is contained in:
vitor-aignosi
2025-09-24 09:13:22 -03:00
parent 02b647931f
commit c3f5ba660f
2 changed files with 12 additions and 0 deletions

View File

@@ -239,6 +239,9 @@ async def test_process_slots(mock_build_tag_config, mock_gather_read_tags, forma
"url": "test_url", "url": "test_url",
"server_uri": "test_uri", "server_uri": "test_uri",
"test_name": "test_spec", "test_name": "test_spec",
"cert_path": None,
"private_key_path": None,
"server_cert_path": None,
"tags": { "tags": {
"test_tag_address": { "test_tag_address": {
"server_id": "1", "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", "name": "test_server_name2",
"url": "test_url2", "url": "test_url2",
"server_uri": "test_uri2", "server_uri": "test_uri2",
"cert_path": None,
"private_key_path": None,
"server_cert_path": None,
"tags": { "tags": {
"test_tag_address2": { "test_tag_address2": {
"server_id": "2", "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", "name": "test_server_name2",
"url": "test_url2", "url": "test_url2",
"server_uri": "test_uri2", "server_uri": "test_uri2",
"cert_path": None,
"private_key_path": None,
"server_cert_path": None,
"tags": { "tags": {
"test_tag_address3": { "test_tag_address3": {
"server_id": "2", "server_id": "2",

View File

@@ -386,6 +386,9 @@ def test_build_tag_config():
"name": "test_server_name", "name": "test_server_name",
"url": "test_url", "url": "test_url",
"server_uri": "test_uri", "server_uri": "test_uri",
"cert_path": None,
"private_key_path": None,
"server_cert_path": None,
"tags": { "tags": {
"test_tag_address": { "test_tag_address": {
"server_id": "1", "server_id": "1",