Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Python Integration Tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Python Integration Tests
Commits
92413aea
Commit
92413aea
authored
6 months ago
by
I. Nüske
Browse files
Options
Downloads
Patches
Plain Diff
TST: Added test for
https://gitlab.com/linkahead/linkahead-pylib/-/issues/103
parent
d7181bda
No related branches found
No related tags found
1 merge request
!83
Add test for https://gitlab.com/linkahead/linkahead-pylib/-/issues/103
Pipeline
#57982
passed with warnings
6 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
tests/test_issues_pylib.py
+19
-0
19 additions, 0 deletions
tests/test_issues_pylib.py
with
20 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
92413aea
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
tests/test_issues_pylib.py
+
19
−
0
View file @
92413aea
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment