Remove Use of mox/mox3 for Testing

Registered by Matt Riedemann on 2018-02-15

This is just for nova tracking of the community wide goal for Rocky:

https://governance.openstack.org/tc/goals/rocky/mox_removal.html

Note that nova has done individual mox removal blueprints in the past:

https://blueprints.launchpad.net/nova/+spec/remove-mox-pike

****************************************************************************
NOTE: anyone working on this should avoid converting any tests
that deal with cells v1 or nova-network code since those are going
to all be removed.
****************************************************************************

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Medium
Drafter:
Matt Riedemann
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
Accepted for rocky
Implementation:
Implemented
Milestone target:
milestone icon rocky-rc1
Started by
Matt Riedemann on 2018-02-28
Completed by
melanie witt on 2018-08-08

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/remove-mox-ocata,n,z

Addressed by: https://review.openstack.org/325759
    Stop using mox in api/openstack/fakes.py

Gerrit topic: https://review.openstack.org/#q,topic:bp/mox-removal,n,z

Gerrit topic: https://review.openstack.org/#q,topic:bp/remove-mox-rocky,n,z

Addressed by: https://review.openstack.org/342682
    Stop using mox in virt/xenapi/image/test_vdi_through_dev.py

Gerrit topic: https://review.openstack.org/#q,topic:bug/1760017,n,z

Addressed by: https://review.openstack.org/557883
    Remove mox in tests/unit/test_utils.py

Addressed by: https://review.openstack.org/558685
    Replace mox stubs with stub_out

Addressed by: https://review.openstack.org/558704
    Remove mox in unit/virt/xenapi/test_vm_utils.py (1)

Addressed by: https://review.openstack.org/558993
    Remove mox in unit/virt/xenapi/test_vm_utils.py (2)

Addressed by: https://review.openstack.org/559258
    Remove mox in unit/virt/xenapi/test_vm_utils.py (3)

Addressed by: https://review.openstack.org/559264
    Remove mox in test_user_data.py

Addressed by: https://review.openstack.org/559266
    Remove mox in unit/api/openstack/compute/test_hosts.py

Addressed by: https://review.openstack.org/559269
    Remove mox in unit/api/*/test_instance_actions.py

Addressed by: https://review.openstack.org/559649
    Remove mox in unit/api/*/test_server_password.py

Addressed by: https://review.openstack.org/559673
    Remove mox in unit/api/*/test_server_metadata.py

Addressed by: https://review.openstack.org/559878
    Remove mox in test_virt_drivers.py

Addressed by: https://review.openstack.org/560267
    Remove mox in test_neutron_security_groups.py

Addressed by: https://review.openstack.org/560821
    Remove mox in test_serversV21.py (1)

Addressed by: https://review.openstack.org/560829
    Remove mox in test_serversV21.py (2)

Gerrit topic: https://review.openstack.org/#q,topic:bug/1763535,n,z

Addressed by: https://review.openstack.org/561121
    Partially revert "Remove mox in unit/virt/xenapi/test_vm_utils.py (3)"

Addressed by: https://review.openstack.org/561846
    Remove mox in unit/virt/xenapi/test_vmops.py

Addressed by: https://review.openstack.org/564415
    Remove mox in test_compute_api.py

Addressed by: https://review.openstack.org/564639
    Remove mox in test_xenapi.py (1)

Addressed by: https://review.openstack.org/564643
    Remove mox in test_xenapi.py (2)

Addressed by: https://review.openstack.org/564645
    Remove mox in test_xenapi.py (3)

Addressed by: https://review.openstack.org/564655
    Remove mox in tests/unit/api/*/test_volumes.py

Addressed by: https://review.openstack.org/564656
    Remove mox in test_live_migrate.py

Addressed by: https://review.openstack.org/564658
    Remove mox in test_conductor.py (1)

Addressed by: https://review.openstack.org/564659
    Remove mox in test_conductor.py (2)

Addressed by: https://review.openstack.org/566153
    Remove mox in virt/test_block_device.py

Addressed by: https://review.openstack.org/566528
    Remove mox in tests/unit/api/openstack/compute

Addressed by: https://review.openstack.org/566555
    Remove mox in libvirt/test_driver.py (1)

Addressed by: https://review.openstack.org/567557
    Remove mox in test_compute_api.py (2)

Addressed by: https://review.openstack.org/568184
    Remove mox in test_compute_api.py (3)

Addressed by: https://review.openstack.org/568412
    Remove mox in nova/tests/unit/virt/xenapi/stubs.py

Addressed by: https://review.openstack.org/568462
    Remove mox in test_compute_api.py (4)

Addressed by: https://review.openstack.org/568757
    Remove mox in libvirt/test_driver.py (2)

Addressed by: https://review.openstack.org/569320
    Remove mox in libvirt/test_driver.py (3)

Addressed by: https://review.openstack.org/570750
    Remove mox in libvirt/test_driver.py (4)

Addressed by: https://review.openstack.org/570842
    Remove mox in libvirt/test_driver.py (5)

Addressed by: https://review.openstack.org/571330
    Remove mox in libvirt/test_driver.py (6)

Addressed by: https://review.openstack.org/571992
    Remove mox in libvirt/test_driver.py (7)

Addressed by: https://review.openstack.org/571993
    Remove mox in libvirt/test_driver.py (8)

Addressed by: https://review.openstack.org/572018
    Remove mox in unit/network/test_neutronv2.py (1)

Addressed by: https://review.openstack.org/573481
    Remove mox in unit/network/test_neutronv2.py (2)

Addressed by: https://review.openstack.org/574104
    Remove mox in unit/network/test_neutronv2.py (3)

Addressed by: https://review.openstack.org/574106
    Remove mox in unit/network/test_neutronv2.py (4)

Addressed by: https://review.openstack.org/574110
    Remove mox in unit/network/test_neutronv2.py (5)

Addressed by: https://review.openstack.org/574113
    Remove mox in unit/network/test_neutronv2.py (6)

Addressed by: https://review.openstack.org/574974
    Remove mox in unit/network/test_neutronv2.py (7)

Addressed by: https://review.openstack.org/575311
    Subject: Remove mox in unit/network/test_neutronv2.py (8)

Addressed by: https://review.openstack.org/575581
    Remove mox in unit/network/test_neutronv2.py (9)

Addressed by: https://review.openstack.org/576017
    Remove mox in unit/network/test_neutronv2.py (10)

Addressed by: https://review.openstack.org/576018
    Remove mox in unit/network/test_neutronv2.py (11)

Addressed by: https://review.openstack.org/576019
    Remove mox in unit/network/test_neutronv2.py (12)

Addressed by: https://review.openstack.org/576020
    Remove mox in unit/network/test_neutronv2.py (13)

Addressed by: https://review.openstack.org/576027
    Remove mox in unit/network/test_neutronv2.py (14)

Addressed by: https://review.openstack.org/576031
    Remove mox in unit/network/test_neutronv2.py (15)

Addressed by: https://review.openstack.org/576299
    Remove mox in unit/network/test_neutronv2.py (16)

Addressed by: https://review.openstack.org/576344
    Remove mox in unit/network/test_neutronv2.py (17)

Addressed by: https://review.openstack.org/576673
    Remove mox in unit/network/test_neutronv2.py (18)

Addressed by: https://review.openstack.org/576676
    Remove mox in unit/network/test_neutronv2.py (19)

Addressed by: https://review.openstack.org/576689
    Remove mox in unit/network/test_neutronv2.py (20)

Addressed by: https://review.openstack.org/576709
    Remove mox in unit/network/test_neutronv2.py (21)

Addressed by: https://review.openstack.org/576712
    Remove mox in unit/network/test_neutronv2.py (22)

Addressed by: https://review.openstack.org/576751
    Remove mox in sec group test and functional tests

Addressed by: https://review.openstack.org/576758
    Add TODO note for mox removal

Closing this out for Rocky, apparently these are supposed to be closed on FF day. Next time. We'll open a new blueprint for this work for Stein. -- melwitt 20180808

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.