diff options
author | Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com> | 2016-05-26 20:45:13 +0900 |
---|---|---|
committer | Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com> | 2016-06-01 10:41:33 -0700 |
commit | 84d03e963783b59816fc6be12a588a2700e8f946 (patch) | |
tree | 3fb214c4bb196997bb72641389f0ddc95ea8d367 | |
parent | de6b96b78293d1be4191f7e55d5e9d498263affb (diff) | |
download | nova-84d03e963783b59816fc6be12a588a2700e8f946.tar.gz |
Remove InstanceUsageAuditLogTest for legacy API
InstanceUsageAuditLogTest is a test class for legacy v2 API code.
That should be removed before removing the code.
Partially implements blueprint remove-legacy-v2-api-code
Change-Id: Idef621374a4876feff38651b980626cfd6c7bc72
-rw-r--r-- | nova/tests/unit/api/openstack/compute/test_instance_usage_audit_log.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/nova/tests/unit/api/openstack/compute/test_instance_usage_audit_log.py b/nova/tests/unit/api/openstack/compute/test_instance_usage_audit_log.py index 4ecdb553c5..9b1ae9a759 100644 --- a/nova/tests/unit/api/openstack/compute/test_instance_usage_audit_log.py +++ b/nova/tests/unit/api/openstack/compute/test_instance_usage_audit_log.py @@ -18,8 +18,6 @@ import datetime from oslo_utils import fixture as utils_fixture from nova.api.openstack.compute import instance_usage_audit_log as v21_ial -from nova.api.openstack.compute.legacy_v2.contrib \ - import instance_usage_audit_log as ial from nova import context from nova import exception from nova import test @@ -188,25 +186,6 @@ class InstanceUsageAuditLogTestV21(test.NoDBTestCase): logs['overall_status']) -class InstanceUsageAuditLogTest(InstanceUsageAuditLogTestV21): - def setUp(self): - super(InstanceUsageAuditLogTest, self).setUp() - self.req = fakes.HTTPRequest.blank('', use_admin_context=True) - self.non_admin_req = fakes.HTTPRequest.blank('') - - def _set_up_controller(self): - self.controller = ial.InstanceUsageAuditLogController() - - def test_index_non_admin(self): - self.assertRaises(exception.PolicyNotAuthorized, - self.controller.index, self.non_admin_req) - - def test_show_non_admin(self): - self.assertRaises(exception.PolicyNotAuthorized, - self.controller.show, self.non_admin_req, - '2012-07-05 10:00:00') - - class InstanceUsageAuditPolicyEnforcementV21(test.NoDBTestCase): def setUp(self): |