diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2012-05-30 11:10:01 -0700 |
|---|---|---|
| committer | Joe Gordon <jogo@cloudscaling.com> | 2012-05-30 11:11:39 -0700 |
| commit | f03f2a2e6e8745681c4336d91b070a9a338cdc62 (patch) | |
| tree | 5cb1f800eac558320692e0529b58eec2a0814d20 | |
| parent | c71f0e3165c42d0b9e9d31b28a8db0dedf6f63f8 (diff) | |
Align ApiEc2TestCase to closer match api-paste.ini
Change-Id: I02f5d6bc66fd372132d4d01e2027c1d3d8467b91
| -rw-r--r-- | nova/tests/test_api.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/tests/test_api.py b/nova/tests/test_api.py index b0367dd8f..37fdec74a 100644 --- a/nova/tests/test_api.py +++ b/nova/tests/test_api.py @@ -32,7 +32,6 @@ from nova.api import ec2 from nova.api.ec2 import apirequest from nova.api.ec2 import ec2utils from nova import block_device -from nova.compute import api as compute_api from nova import context from nova import exception from nova import test @@ -214,9 +213,9 @@ class ApiEc2TestCase(test.TestCase): # NOTE(vish): skipping the Authorizer roles = ['sysadmin', 'netadmin'] ctxt = context.RequestContext('fake', 'fake', roles=roles) - self.app = auth.InjectContext(ctxt, - ec2.Requestify(ec2.Authorizer(ec2.Executor()), - 'nova.api.ec2.cloud.CloudController')) + self.app = auth.InjectContext(ctxt, ec2.FaultWrapper( + ec2.RequestLogging(ec2.Requestify(ec2.Authorizer(ec2.Executor() + ), 'nova.api.ec2.cloud.CloudController')))) def expect_http(self, host=None, is_secure=False, api_version=None): """Returns a new EC2 connection""" |
