Skip to content

[0.5.0] Several mimetype-related tests are failing #634

@conorsch

Description

@conorsch

Last tested on PR #632 (which will likely become 0.5.0-rc3).

failing tests output
======================================================================
ERROR: test_open_in_dvm_desktop (test_sd_devices.SD_Devices_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/securedrop-workstation/tests/test_sd_devices.py", line 40, in test_open_in_dvm_desktop
    contents = self._get_file_contents("/usr/share/applications/open-in-dvm.desktop")
  File "/home/user/securedrop-workstation/tests/base.py", line 62, in _get_file_contents
    contents = subprocess.check_output(cmd).decode("utf-8")
  File "/usr/lib64/python3.5/subprocess.py", line 316, in check_output
    **kwargs).stdout
  File "/usr/lib64/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['qvm-run', '-p', 'sd-devices-dvm', 'sudo /bin/cat /usr/share/applications/open-in-dvm.desktop']' returned non-zero exit status 1

======================================================================
FAIL: test_mime_types (test_sd_devices.SD_Devices_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/securedrop-workstation/tests/test_sd_devices.py", line 37, in test_mime_types
    self.assertEqual(actual_app, expected_app)
AssertionError: '' != 'open-in-dvm.desktop'
+ open-in-dvm.desktop

======================================================================
FAIL: test_mime_types (test_viewer.SD_Viewer_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/securedrop-workstation/tests/test_viewer.py", line 45, in test_mime_types
    self.assertEqual(actual_app, expected_app)
AssertionError: 'libreoffice-calc.desktop' != 'libreoffice-base.desktop'
- libreoffice-calc.desktop
?             ^ ^^
+ libreoffice-base.desktop
?             ^ ^^


======================================================================
FAIL: test_all_sd_vms_uptodate (test_vms_platform.SD_VM_Platform_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/securedrop-workstation/tests/test_vms_platform.py", line 169, in test_all_sd_vms_uptodate
    self._ensure_packages_up_to_date(vm)
  File "/home/user/securedrop-workstation/tests/test_vms_platform.py", line 95, in _ensure_packages_up_to_date
    self.assertEqual(results, "Listing...", fail_msg)
AssertionError: 'Listing...\nsecuredrop-workstation-config/unknown 0[43 chars]ter]' != 'Listing...'
- Listing...
?           -
+ Listing...- securedrop-workstation-config/unknown 0.1.5+buster all [upgradable from: 0.1.3+buster] : Unapplied updates for VM 'sd-log'

----------------------------------------------------------------------
Ran 79 tests in 354.716s

FAILED (failures=3, errors=1)
Makefile:109: recipe for target 'test' failed
make: *** [test] Error 1

Let's make sure to get these down to zero prior to releasing 0.5.0 final.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions