From f03f2a2e6e8745681c4336d91b070a9a338cdc62 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Wed, 30 May 2012 11:10:01 -0700 Subject: Align ApiEc2TestCase to closer match api-paste.ini Change-Id: I02f5d6bc66fd372132d4d01e2027c1d3d8467b91 --- nova/tests/test_api.py | 7 +++---- 1 file 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""" -- cgit