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 #1

Updated by Rajmund Hruška almost 3 years ago

  • Related to Task #7041: Use Vagrant as alternative tool for local development added
Actions #2

Updated by Jan Mach almost 3 years ago

  • Target version changed from Backlog to 2.10
Actions #3

Updated by Rajmund Hruška over 2 years ago

  • Status changed from New to In Progress
  • Assignee changed from Jan Mach to Rajmund Hruška
  • % Done changed from 0 to 50

I think this was partly done in 5327e701. I can look at those skipped tests, I think I know how to solve them.

Actions #4

Updated by Rajmund Hruška over 2 years ago

The 99398720 is also related.

Actions #5

Updated by Rajmund Hruška over 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100

Actually, the skipped tests are being handled in #7494.

The only test which is failing is test_fetcher.py and that should be solved now in 370454a3.

Actions #6

Updated by Rajmund Hruška over 2 years ago

  • Status changed from Resolved to Closed

Merged into devel.

Actions

Also available in: Atom PDF