summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorMichael Gundlach <michael.gundlach@rackspace.com>2010-09-02 14:32:14 -0400
committerMichael Gundlach <michael.gundlach@rackspace.com>2010-09-02 14:32:14 -0400
commit09fd65ed400f8584f3289953eb54332283926b69 (patch)
treeed62e34a440a565f3970992997f0c081eb1b04c7 /nova/api
parent8169a2a26c5b646a4d6c63c77f15f6aaa6898cb4 (diff)
parentd0a353e4c46773f23a25ff372ed204d17e89e049 (diff)
Merge from trunk in an attempt to figure out why signer is generating the wrong signature
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py1
-rw-r--r--nova/api/test.py61
2 files changed, 0 insertions, 62 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index fc0eb2711..e3122bbfc 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -42,7 +42,6 @@ from nova.volume import service
FLAGS = flags.FLAGS
-flags.DEFINE_string('cloud_topic', 'cloud', 'the topic clouds listen on')
def _gen_key(user_id, key_name):
diff --git a/nova/api/test.py b/nova/api/test.py
deleted file mode 100644
index 51b114b8e..000000000
--- a/nova/api/test.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-
-# Copyright 2010 OpenStack LLC.
-# All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-"""
-Test for the root WSGI middleware for all API controllers.
-"""
-
-import unittest
-
-import stubout
-import webob
-import webob.dec
-
-from nova import api
-
-
-class Test(unittest.TestCase):
-
- def setUp(self): # pylint: disable-msg=C0103
- self.stubs = stubout.StubOutForTesting()
-
- def tearDown(self): # pylint: disable-msg=C0103
- self.stubs.UnsetAll()
-
- def test_rackspace(self):
- self.stubs.Set(api.rackspace, 'API', APIStub)
- result = webob.Request.blank('/v1.0/cloud').get_response(api.API())
- self.assertEqual(result.body, "/cloud")
-
- def test_ec2(self):
- self.stubs.Set(api.ec2, 'API', APIStub)
- result = webob.Request.blank('/ec2/cloud').get_response(api.API())
- self.assertEqual(result.body, "/cloud")
-
- def test_not_found(self):
- self.stubs.Set(api.ec2, 'API', APIStub)
- self.stubs.Set(api.rackspace, 'API', APIStub)
- result = webob.Request.blank('/test/cloud').get_response(api.API())
- self.assertNotEqual(result.body, "/cloud")
-
-
-class APIStub(object):
- """Class to verify request and mark it was called."""
-
- @webob.dec.wsgify
- def __call__(self, req):
- return req.path_info