diff --git a/tests/repository/functional_test.py b/tests/repository/functional_test.py index 6f6580e..b9b0f82 100644 --- a/tests/repository/functional_test.py +++ b/tests/repository/functional_test.py @@ -6,7 +6,7 @@ import unittest from rich.console import Console -from owilix.cmd import RemoteCommands, LocalCommands +from owilix.cmd import RemoteCommands, LocalCommands, QueryCommands from owilix.core.manager import OWIlixConfig, OWIlixManager @@ -106,6 +106,13 @@ class OriginalConfigTests(unittest.TestCase): self.assertTrue(_remote.metadata.get(a) ==_local.metadata.get(a), f"Attribute {a}have different values in local / remote: {_local.metadata.get(a)}!={_remote.metadata.get(a)}") + _q = QueryCommands(self.ctx['OWI'], **self.ctx).do("less", "all/id=a962a1bb-3a65-4c24-954c-a96c99d5e95e", None, + select="url,title", + where="WHERE LOWER(url) like '%impressum%' OR LOWER(url) like '%legal%' OR LOWER(url) like '%imprint%' OR LOWER(url) like '%terms%' OR LOWER(url) like '%privacy%' OR LOWER(url) like '%contact%' OR LOWER(url) like '%agreement%' OR LOWER(title) like '%impressum%' OR LOWER(title) like '%imprint%'", + limit=10, pq_batch_size=1, as_json=True) + + self.assertTrue(_q.success, "query not successufll"+str(_q)) + #_l = LocalCommands(self.ctx['OWI'], **self.ctx).do("stats") # #_l = LocalCommands(self.ctx['OWI'], **self.ctx).do("check")