nova/nova/tests/unit/api
jichenjc 06584dc10f Catch InstanceNotFound exception
during simple_tenant_usage collection, there is possibility that
instance got delete, so we need to catch the exception because
instance.flavor might cause a instance.get_by_uuid call.

commit b52876f912 mentioned
<This follows the previous patch and makes simple-tenant-usage use
the bundled flavor for basic instance resource usage like everything
else. This is an important step to being able to remove those fields
at some point>
so this patch didn't use the flavor object directly

Backport note: since the original fix did not include tests, this
backport squashes 14eeaf1c52 into
itself.

Change-Id: Icbfd1a4b97873d44bafd16754d09fff7a9d2b7af
Closes-Bug: 1643444
Closes-Bug: 1692893
(cherry picked from commit 83e6dbf581)
2017-10-17 14:35:35 -04:00
..
openstack Catch InstanceNotFound exception 2017-10-17 14:35:35 -04:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_auth.py Use from_environ when creating a context 2016-07-14 12:04:21 +10:00
test_compute_req_id.py Make unit tests inherit from test.NoDBTestCase 2015-03-06 09:46:31 +02:00
test_wsgi.py Fix invalid import order 2016-07-04 16:03:42 +05:30