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
b6f7d470
Commit
b6f7d470
authored
1 year ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
TST: Add xfailing test for
caosdb-server#101
parent
56fdc7f8
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!73
Confirm https://gitlab.com/linkahead/linkahead-server/-/issues/101
Pipeline
#46016
passed
1 year ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_issues_server.py
+17
-1
17 additions, 1 deletion
tests/test_issues_server.py
with
17 additions
and
1 deletion
tests/test_issues_server.py
+
17
−
1
View file @
b6f7d470
...
...
@@ -30,7 +30,7 @@ import caosdb as db
import
pytest
from
caosdb
import
administration
as
admin
from
caosdb.exceptions
import
(
TransactionError
,
HTTPClientError
)
from
caosdb.exceptions
import
(
TransactionError
,
HTTPClientError
,
HTTPURITooLongError
)
CURATOR_ROLE
=
"
curator
"
...
...
@@ -1405,6 +1405,22 @@ See https://gitlab.com/caosdb/caosdb-server/-/issues/220"""
assert
query
.
cached
is
False
,
"
Query after name change of parent should not be cached.
"
@pytest.mark.xfail
(
reason
=
"
Needs fix for intermediate length strings,
"
"
see https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/101.
"
)
def
test_indiscale_101
():
"""
Unexpected server errors in case of intermediate length strings,
https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/101
"""
# This is ok
very_long_string
=
"
Long string
"
*
10000
with
pytest
.
raises
(
HTTPURITooLongError
):
db
.
execute_query
(
f
"
FIND RECORD WITH test=
\"
{
very_long_string
}
\"
"
)
# This is not
long_string
=
"
Long string
"
*
100
assert
len
(
db
.
execute_query
(
f
"
FIND RECORD WITH test=
\"
{
long_string
}
\"
"
))
==
0
@pytest.mark.xfail
(
reason
=
"
Needs fix for keeping datatype,
"
"
see https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/106
"
)
def
test_indiscale_106
():
...
...
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