Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] Fix OpenStack volume tests #10044

Merged
merged 1 commit into from
Apr 9, 2020
Merged

[1LP][RFR] Fix OpenStack volume tests #10044

merged 1 commit into from
Apr 9, 2020

Conversation

jarovo
Copy link
Contributor

@jarovo jarovo commented Apr 8, 2020

Purpose or Intent

Fixing volume tests. It seems the storage_manager attribute was removed without changing the tests. Also the size attribute was changed to volume_size.

As can be currently seen on trackerbot, all tests executed in this PR were failing like this:

>                                         provider=provider)
E       TypeError: create() got an unexpected keyword argument 'storage_manager'

cfme/tests/openstack/cloud/test_volume_backup.py:31: TypeError
TypeError
b"create() got an unexpected keyword argument 'storage_manager'"

Many of them started working with these changes.

{{pytest: cfme/tests/openstack/cloud/test_instances.py::test_instance_attach_detach_volume_with_type[openstack-13] cfme/tests/openstack/cloud/test_instances.py::test_instance_attach_volume[openstack-13] cfme/tests/openstack/cloud/test_volume_backup.py::test_create_backup_of_volume_with_type[openstack-13] cfme/tests/openstack/cloud/test_volume_backup.py::test_create_volume_backup[openstack-13] cfme/tests/openstack/cloud/test_volume_backup.py::test_create_volume_incremental_backup[openstack-13] cfme/tests/openstack/cloud/test_volume_backup.py::test_incr_backup_of_attached_volume_crud[openstack-13] cfme/tests/openstack/cloud/test_volume_backup.py::test_restore_incremental_backup[openstack-13] cfme/tests/openstack/cloud/test_volume_backup.py::test_restore_volume_backup[openstack-13] cfme/tests/openstack/cloud/test_volumes.py::test_create_volume[openstack-13] cfme/tests/openstack/cloud/test_volumes.py::test_create_volume_with_type[openstack-13] cfme/tests/openstack/cloud/test_volumes.py::test_delete_volume[openstack-13] cfme/tests/openstack/cloud/test_volumes.py::test_delete_volume_with_type[openstack-13] cfme/tests/openstack/cloud/test_volumes.py::test_edit_volume[openstack-13] cfme/tests/openstack/cloud/test_volumes.py::test_edit_volume_with_type[openstack-13] cfme/tests/openstack/cloud/test_volumes.py::test_volume_attach_detach_instance[openstack-13]
--long-running -v --use-provider complete }}

@jarovo jarovo changed the title Fix OpenStack volume tests [WIPTEST] Fix OpenStack volume tests Apr 8, 2020
@jarovo jarovo changed the title [WIPTEST] Fix OpenStack volume tests [RFR] Fix OpenStack volume tests Apr 8, 2020
@dajoRH dajoRH removed the WIP-testing label Apr 8, 2020
@dajoRH
Copy link
Contributor

dajoRH commented Apr 8, 2020

I detected some fixture changes in commit 830ff0e

The local fixture volume is used in the following files:

  • cfme/tests/openstack/cloud/test_volumes.py
    • test_create_volume
    • test_edit_volume
    • test_delete_volume
    • test_volume_attach_detach_instance

The local fixture volume_with_type is used in the following files:

  • cfme/tests/openstack/cloud/test_volumes.py
    • test_create_volume_with_type
    • test_edit_volume_with_type
    • test_delete_volume_with_type

The local fixture volume_backup is used in the following files:

  • cfme/tests/openstack/cloud/test_volume_backup.py
    • incremental_backup
    • attached_volume
    • test_create_volume_backup
    • test_restore_volume_backup

Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃

@john-dupuy
Copy link
Contributor

john-dupuy commented Apr 9, 2020

@JaryN There are still several failures in PRT, though the initial TypeError is gone now. Do you want to fix them in this PR or with follow-up PRs?

@jarovo
Copy link
Contributor Author

jarovo commented Apr 9, 2020

@JaryN There are still several failures in PRT, though the initial TypeError is gone now. Do you want to fix them in this PR or with follow-up PRs?

I would like to merge this and fix the others some other day.

@john-dupuy
Copy link
Contributor

Ack, that's fine by me, what do you think @mshriver?

@john-dupuy john-dupuy changed the title [RFR] Fix OpenStack volume tests [1LP][RFR] Fix OpenStack volume tests Apr 9, 2020
@mshriver mshriver self-assigned this Apr 9, 2020
@mshriver mshriver merged commit 8ed9056 into ManageIQ:master Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants