def setUp(self): super(ApiEc2TestCase, self).setUp() self.manager = manager.AuthManager() self.host = '127.0.0.1' self.app = ec2.Authenticate( ec2.Requestify(ec2.Executor(), 'nova.api.ec2.cloud.CloudController'))
def setUp(self): super(ApiEc2TestCase, self).setUp() self.host = '127.0.0.1' # 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'))
def setUp(self): super(ExecutorTestCase, self).setUp() self.executor = ec2.Executor()