Skip to content

Unit tests fail #1

Description

@SgtMate

I followed the installation steps as discribed in https://github.com/hpe-storage/hpe_storage_ansible_modules/blob/fcbaa23227274911576ed775b514af50ceb699be/README.md

When running the unit tests i run into multiple erros that state 'Failed to import AnsibleClient from ansible_service.'.
The short summary:

================================================================= short test summary info =================================================================
FAILED test/test_alletramp_cpg.py::TestAlletrampCpg::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_dns.py::TestAlletrampDns::test_flowkit_import_failure - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_host.py::TestAlletrampHost::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_hostset.py::TestAlletrampHostset::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_ntp.py::TestAlletrampNtp::test_flowkit_import_failure - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_offline_clone.py::TestAlletrampOfflineClone::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_online_clone.py::TestAlletrampOnlineClone::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_qos.py::TestAlletrampQos::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_remote_copy.py::TestAlletrampRemoteCopy::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_snapshot.py::TestAlletrampSnapshot::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='the python hpe_storage_flowkit_py module is required')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_vlun.py::TestAlletrampVlun::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_volume.py::TestAlletrampVolume::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
FAILED test/test_alletramp_volumeset.py::TestAlletrampVolumeset::test_missing_flowkit_package - AssertionError: expected call not found.
Expected: fail_json(msg='Python hpe_storage_flowkit_py package is required.')
  Actual: fail_json(msg='Failed to import AnsibleClient from ansible_service.')
==================================================== 13 failed, 352 passed, 6 subtests passed in 1.75s ====================================================

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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