Project

General

Profile

Actions

Bug #7601

closed

Tests do not create events table in some cases

Added by Rajmund Hruška over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Testing
Target version:
Start date:
07/27/2022
Due date:
% Done:

100%

Estimated time:
To be discussed:
No

Description

ERROR: test_02_as_user (hawat.blueprints.timeline.test.__init__.SearchTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/workers/worker-mentat-py3/mentat-check/build/lib/hawat/events.py", line 49, in _get_values
    return _get_cached_values(cache_file)
  File "/home/buildbot/workers/worker-mentat-py3/mentat-check/build/lib/hawat/events.py", line 42, in _get_cached_values
    cache_file
  File "/home/buildbot/workers/worker-mentat-py3/venv/lib/python3.7/site-packages/pyzenkit/jsonconf.py", line 153, in json_load
    with open(json_file, "r") as jsf:
FileNotFoundError: [Errno 2] No such file or directory: '/home/buildbot/workers/worker-mentat-py3/mentat-check/build/chroot/var/mentat/cache/itemset-stat-sourcetypes.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/buildbot/workers/worker-mentat-py3/mentat-check/build/lib/mentat/services/eventstorage.py", line 983, in exc_handle_wrapper
    return func(self, *args, **kwargs)
  File "/home/buildbot/workers/worker-mentat-py3/mentat-check/build/lib/mentat/services/eventstorage.py", line 1451, in distinct_values
    self.cursor.execute(enum_query)
  File "/home/buildbot/workers/worker-mentat-py3/venv/lib/python3.7/site-packages/psycopg2/extras.py", line 319, in execute
    return super(NamedTupleCursor, self).execute(query, vars)
psycopg2.errors.UndefinedTable: relation "enum_source_type" does not exist
LINE 1: INSERT INTO "enum_source_type" (SELECT * FROM (SELECT unnest...
Actions

Also available in: Atom PDF