QTZPOC-20

QTZPOC-20: Improve error handling and classification tests for model import activities and add validation for OPC repository security.
This commit is contained in:
2026-09-09 08:49:23 -03:00
parent abfd474e4d
commit 37544edafe
3 changed files with 99 additions and 0 deletions

View File

@@ -144,6 +144,16 @@ async def test_set_security_missing_certificates(opc_repository):
assert str(e) == 'Certificate and private key paths must be provided for secure connection.'
@pytest.mark.asyncio
async def test_set_security_missing_server_uri(opc_repository):
opc_repository.server_uri = None
try:
await opc_repository.set_security()
except ValueError as e:
assert str(e) == 'server_uri must be provided for secure connection.'
@pytest.mark.asyncio
async def test_set_security_missing_client(opc_repository):
opc_repository.client = None