SIENTIAPDE-1222

SIENTIAPDE-1222 Refactor server configuration handling in orchestrator_functions.py and update related tests

- Removed the security_spec field from server configuration in build_tag_config to streamline the configuration process.
- Updated test cases in test_formatters.py and test_orchestrator_functions.py to reflect the removal of security_spec, ensuring alignment with the new configuration structure and improving test accuracy.
This commit is contained in:
vitor-aignosi
2025-09-24 10:57:38 -03:00
parent dacbcbf56a
commit 49f3429556
3 changed files with 13 additions and 29 deletions

View File

@@ -287,8 +287,6 @@ def build_tag_config(tag: dict[str, Any], slot_config: dict[str, Any],
"server_cert_path": opc_servers[server_id].get('server_cert_path', None),
"tags": {}
}
for name, spec in opc_servers[server_id].get('security_spec', {}).items():
slot_config[f"{i}"][server_name][name] = spec
slot_config[f"{i}"][server_name]["tags"][tag['tag_address']] = {
**tag,