From 37ab08373550749fa06491d70d8b52837d302ee3 Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Tue, 21 May 2024 15:57:36 +0200 Subject: [PATCH] TST: Test for gitlab.com/linkahead/linkahead-server/-/issues/263 --- CHANGELOG.md | 2 ++ tests/test_issues_server.py | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63beaa9..2553c6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 parents. * Test for [caosdb-server#192](https://gitlab.com/caosdb/caosdb-server/-/issues/192) * Test for miscellaneous *-too-long errors. +* Test for [caosdb-server#263](https://gitlab.com/linkahead/linkahead-server/-/issues/263): Unexpected server error when attempting to retrieve internal ROLE + entities. ### Changed (for changes in existing functionality) diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index 8bedd02..d3f11b3 100644 --- a/tests/test_issues_server.py +++ b/tests/test_issues_server.py @@ -1505,3 +1505,11 @@ def test_253(): for string in test_strings: results = db.execute_query(f"FIND Entity with prop={string}") assert len(results) == 0 + + +@pytest.mark.xfail(reason="https://gitlab.com/linkahead/linkahead-server/-/issues/263") +def test_263(): + with pytest.raises(TransactionError) as exc: + db.Record(name="1").retrieve() + assert len(exc.errors) == 1 + assert exc.errors[0].msg == "Entity does not exist." # TODO Or whatever the message shall be. -- GitLab