Project

General

Profile

Actions

Bug #7552

closed

Tests fail in Vagrant box

Added by Rajmund Hruška almost 3 years ago. Updated over 2 years ago.

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

100%

Estimated time:
To be discussed:
No

Description

Running make test in vagrant results in 36 failed tests. Here is a couple of them. The other tests fail with the same error: No such file or directory: '/vagrant/chroot/etc/mentat/core

======================================================================
ERROR: Basic tests of various pluggable modules.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/vagrant/lib/vial/test/__init__.py", line 87, in setUp
    self.app = self.setup_app()
  File "/vagrant/lib/hawat/test/runner.py", line 64, in setup_app
    config_func = _config_testapp_hawat
  File "/vagrant/lib/hawat/app.py", line 76, in create_app_full
    config_func   = config_func or _config_app
  File "/vagrant/lib/vial/__init__.py", line 59, in create_app_full
    config_func(app.config)
  File "/vagrant/lib/hawat/test/runner.py", line 30, in _config_testapp_hawat
    _config_app(app_config)
  File "/vagrant/lib/hawat/app.py", line 101, in _config_app
    hawat.config.get_app_root_relative_config()
  File "/vagrant/lib/hawat/config.py", line 290, in get_app_root_relative_config
    pyzenkit.utils.get_resource_path(mentat.const.PATH_CFG_CORE)
  File "/var/mentat/venv/lib/python3.7/site-packages/pyzenkit/jsonconf.py", line 315, in config_load_dir
    all_files = os.listdir(config_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/vagrant/chroot/etc/mentat/core'

======================================================================
ERROR: Test the test environment.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/vagrant/lib/vial/test/__init__.py", line 87, in setUp
    self.app = self.setup_app()
  File "/vagrant/lib/hawat/test/runner.py", line 64, in setup_app
    config_func = _config_testapp_hawat
  File "/vagrant/lib/hawat/app.py", line 76, in create_app_full
    config_func   = config_func or _config_app
  File "/vagrant/lib/vial/__init__.py", line 59, in create_app_full
    config_func(app.config)
  File "/vagrant/lib/hawat/test/runner.py", line 30, in _config_testapp_hawat
    _config_app(app_config)
  File "/vagrant/lib/hawat/app.py", line 101, in _config_app
    hawat.config.get_app_root_relative_config()
  File "/vagrant/lib/hawat/config.py", line 290, in get_app_root_relative_config
    pyzenkit.utils.get_resource_path(mentat.const.PATH_CFG_CORE)
  File "/var/mentat/venv/lib/python3.7/site-packages/pyzenkit/jsonconf.py", line 315, in config_load_dir
    all_files = os.listdir(config_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/vagrant/chroot/etc/mentat/core'

======================================================================
ERROR: Perform the basic operativity tests.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/vagrant/lib/mentat/script/test_fetcher.py", line 131, in setUp
    os.mkdir(directory)
FileNotFoundError: [Errno 2] No such file or directory: '/vagrant/chroot/tmp'

======================================================================
FAIL: Perform tests of parsing network records.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/vagrant/lib/mentat/datatype/test_internal.py", line 260, in test_01_conversions
    self.assertEqual(mentat.datatype.internal.t_datetime('2017-06-13T10:55:52+00:00'), datetime.datetime.fromtimestamp(1497344152))
AssertionError: datetime.datetime(2017, 6, 13, 10, 55, 52) != datetime.datetime(2017, 6, 13, 8, 55, 52)


Related issues

Related to Mentat - Task #7041: Use Vagrant as alternative tool for local developmentClosedJan Mach02/12/2021

Actions
Actions

Also available in: Atom PDF