From 08f7d4602bab0cacd815cd0aa1dd056a15e201af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Otto?= Date: Mon, 16 Sep 2024 09:42:10 +0200 Subject: [PATCH] GetAllShells: filter for non-existing idShorts (fixes #33) --- aas_test_engines/api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aas_test_engines/api.py b/aas_test_engines/api.py index ded3e16..9aec4cf 100644 --- a/aas_test_engines/api.py +++ b/aas_test_engines/api.py @@ -521,7 +521,10 @@ def setup(self, result: AasTestResult) -> Dict[str, List[any]]: data = _invoke(result, request, self.server) self.valid_values = { 'limit': [1], - 'idShort': [_lookup(data, ['result', 0, 'idShort'])], + 'idShort': [ + _lookup(data, ['result', 0, 'idShort']), + 'does-not-exist', + ], 'assetIds': [b64urlsafe(_lookup(data, ['result', 0, 'id']))], } try: