From e98c3e6f721ff06867faeb917614b74d6215bdc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Otto?= Date: Mon, 16 Sep 2024 10:56:14 +0200 Subject: [PATCH] Fix invalid operation names --- aas_test_engines/api.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/aas_test_engines/api.py b/aas_test_engines/api.py index 9aec4cf..70abf38 100644 --- a/aas_test_engines/api.py +++ b/aas_test_engines/api.py @@ -239,17 +239,17 @@ def _extend(data: Dict[str, List[str]]) -> dict: # Submodel API "GetSubmodel", "GetSubmodel-Metadata", - "GetSubmodel-Valueonly", + "GetSubmodel-ValueOnly", "GetSubmodel-Reference", "GetSubmodel-Path", "GetAllSubmodelElements", "GetAllSubmodelElements-Metadata", - "GetAllSubmodelElements-Valueonly", + "GetAllSubmodelElements-ValueOnly", "GetAllSubmodelElements-Reference", "GetAllSubmodelElements-Path", "GetSubmodelElementByPath", "GetSubmodelElementByPath-Metadata", - "GetSubmodelElementByPath-Valueonly", + "GetSubmodelElementByPath-ValueOnly", "GetSubmodelElementByPath-Reference", "GetSubmodelElementByPath-Path", "GetFileByPath", @@ -340,9 +340,9 @@ def _extend(data: Dict[str, List[str]]) -> dict: # Submodel API 'GetAllSubmodelElements_SubmodelRepository', 'GetAllSubmodelElements-Metadata_SubmodelRepository', - 'GetAllSubmodelElements-ValueOnly_SubmodelRepository', - 'GetAllSubmodelElements-Reference_SubmodelRepository', - 'GetAllSubmodelElements-Path_SubmodelRepository', + 'GetAllSubmodelElements-ValueOnly_SubmodelRepo', + 'GetAllSubmodelElements-Reference_SubmodelRepo', + 'GetAllSubmodelElements-Path_SubmodelRepo', "GetSubmodelElementByPath_SubmodelRepo", "GetSubmodelElementByPath-Metadata_SubmodelRepo", "GetSubmodelElementByPath-ValueOnly_SubmodelRepo", @@ -978,7 +978,7 @@ def check_in_sync(): operations = _available_suites[suite] for op in operations: if op not in spec.open_api.operations: - raise AasTestToolsException(f"Unknown operation {suite}") + raise AasTestToolsException(f"Unknown operation {op}") def execute_tests(server: str, suite: str, version: str = _DEFAULT_VERSION, conf: ExecConf = ExecConf()) -> AasTestResult: