Skip to content
Snippets Groups Projects
Commit b6f7d470 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

TST: Add xfailing test for caosdb-server#101

parent 56fdc7f8
Branches
Tags
1 merge request!73Confirm https://gitlab.com/linkahead/linkahead-server/-/issues/101
Pipeline #46016 passed
......@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment