Skip to content
Snippets Groups Projects

Confirm https://gitlab.com/linkahead/linkahead-server/-/issues/101

Merged Florian Spreckelsen requested to merge f-test-intermediate-length into dev
1 unresolved thread
1 file
+ 17
1
Compare changes
  • Side-by-side
  • Inline
+ 17
1
@@ -30,7 +30,7 @@ import caosdb as db
@@ -30,7 +30,7 @@ import caosdb as db
import pytest
import pytest
from caosdb import administration as admin
from caosdb import administration as admin
from caosdb.exceptions import (TransactionError, HTTPClientError)
from caosdb.exceptions import (TransactionError, HTTPClientError, HTTPURITooLongError)
CURATOR_ROLE = "curator"
CURATOR_ROLE = "curator"
@@ -1405,6 +1405,22 @@ See https://gitlab.com/caosdb/caosdb-server/-/issues/220"""
@@ -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."
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.com/linkahead/linkahead-server/-/issues/101")
 
def test_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
Please register or sign in to reply
 
 
@pytest.mark.xfail(reason="Needs fix for keeping datatype, "
@pytest.mark.xfail(reason="Needs fix for keeping datatype, "
"see https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/106")
"see https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/106")
def test_indiscale_106():
def test_indiscale_106():
Loading