Skip to content
Snippets Groups Projects
Commit 92413aea authored by I. Nüske's avatar I. Nüske
Browse files
parent d7181bda
No related branches found
No related tags found
1 merge request!83Add test for https://gitlab.com/linkahead/linkahead-pylib/-/issues/103
Pipeline #57982 passed with warnings
...@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added (for new features) ### Added (for new features)
* Test for [caosdb-pylib#103](https://gitlab.com/linkahead/linkahead-pylib/-/issues/103)
* Tests for entity state [caosdb-server!62](https://gitlab.com/caosdb/caosdb-server/-/merge_requests/62) * Tests for entity state [caosdb-server!62](https://gitlab.com/caosdb/caosdb-server/-/merge_requests/62)
* Tests for version history * Tests for version history
* Tests for inheritance bug (caosdb/caosdb-server!54) * Tests for inheritance bug (caosdb/caosdb-server!54)
......
...@@ -66,6 +66,25 @@ def teardown_function(function): ...@@ -66,6 +66,25 @@ def teardown_function(function):
# ########################### Issue tests start here ##################### # ########################### Issue tests start here #####################
def test_gitlab_com_103():
"""
Test that after causing an UriTooLong error the used auth_token
is still valid.
See https://gitlab.com/linkahead/linkahead-pylib/-/issues/103 and
https://gitlab.indiscale.com/caosdb/customers/f-fit/management/-/issues/82
"""
#
auth_token = db.get_connection()._authenticator.auth_token
db.configure_connection(auth_token=auth_token)
#
c = db.Container()
c.extend([db.Record(id=i) for i in range(1000,5000)])
with pytest.raises(db.exceptions.TransactionError) as te:
c.retrieve()
assert "authentication token" not in str(te)
# @pytest.mark.xfail(reason="Entities with many, long, properties: " # @pytest.mark.xfail(reason="Entities with many, long, properties: "
# "https://gitlab.com/linkahead/linkahead-pylib/-/issues/108") # "https://gitlab.com/linkahead/linkahead-pylib/-/issues/108")
def test_gitlab_com_108(): def test_gitlab_com_108():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment