nova/nova/tests/unit/compute
Matt Riedemann 215f403ad3 DriverBlockDevice must receive a BDM object, not a dict
Commit 7a54543a81
made it such that a BlockDeviceMapping object has to be
constructed with a request context in order to call the
remotable save() method on it.

We must be already passing BDM objects when constructing
DriverBlockDevices otherwise calling self._bdm_obj.save()
would fail with an OrphanedObjectError.  So the only places
that were still using bdm dicts were unit tests, and those
worked because objects.BlockDeviceMapping.save() is being
mocked out.

This removes the false sense of ability to construct a
DriverBlocKDevice without a BDM object and cleans up the
unit tests to reflect that reality.

Closes-Bug: #1524035

Change-Id: Ie745fc4d36ceb3e0aae1b14d5d56b2b83bbb192c
2015-12-28 06:35:21 -08:00
..
monitors Ensure Nova metrics derived from a set of metrics 2015-10-04 21:28:13 -05:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
eventlet_utils.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_resource_tracker.py Avoid querying for Service in resource tracker 2015-08-13 10:24:05 +02:00
test_arch.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_claims.py Claims: Make sure move claims create a migration context records 2015-09-15 12:29:49 +01:00
test_compute.py DriverBlockDevice must receive a BDM object, not a dict 2015-12-28 06:35:21 -08:00
test_compute_api.py Merge "Add a compute API to trigger crash dump in instance." 2015-12-22 06:19:03 +00:00
test_compute_cells.py Merge "Remove lazy-loading property compute_task_api from compute api" 2015-10-08 05:08:27 +00:00
test_compute_mgr.py Merge "Add a compute API to trigger crash dump in instance." 2015-12-22 06:19:03 +00:00
test_compute_utils.py Remove Instance object flavor helper methods only used in tests 2015-12-03 19:27:21 +01:00
test_compute_xen.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Replaces contextlib.nested with test.nested 2015-10-08 23:13:30 +03:00
test_hvtype.py Add 'lxd' to the list of recognized hypervisors 2015-11-17 08:56:20 +00:00
test_keypairs.py Fixes X509 keypair creation failure 2015-04-28 12:21:53 +03:00
test_multiple_nodes.py Add cpu_allocation_ratio and ram_allocation_ratio to ComputeNode 2015-08-31 15:21:21 +02:00
test_resource_tracker.py Merge "Drop JSON for stats in virt API" 2015-12-18 16:25:18 +00:00
test_resources.py Remove vcpu resource from extensible resource tracker 2015-11-05 14:19:51 +00:00
test_rpcapi.py Add a compute API to trigger crash dump in instance. 2015-12-19 09:30:08 +08:00
test_shelve.py Use TimeFixture from oslo_utils to override time in tests 2015-12-18 12:15:00 -05:00
test_stats.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00
test_tracker.py Fix resource tracker VCPU counting 2015-11-23 14:50:14 +00:00
test_virtapi.py Switch to moxstubout and mockpatch from oslotest 2014-12-02 08:03:42 -05:00
test_vmmode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00