summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gundlach <michael.gundlach@rackspace.com>2010-09-02 15:07:24 -0400
committerMichael Gundlach <michael.gundlach@rackspace.com>2010-09-02 15:07:24 -0400
commit9fc2bb60f1b280e9bf28d68c20f04de2130bd398 (patch)
tree74213fe61fd96a53223980eb8e7269f20af56f43
parent09fd65ed400f8584f3289953eb54332283926b69 (diff)
downloadnova-9fc2bb60f1b280e9bf28d68c20f04de2130bd398.tar.gz
nova-9fc2bb60f1b280e9bf28d68c20f04de2130bd398.tar.xz
nova-9fc2bb60f1b280e9bf28d68c20f04de2130bd398.zip
Use port that boto expects
-rw-r--r--nova/tests/api_unittest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/api_unittest.py b/nova/tests/api_unittest.py
index 534833fba..8087a2e3b 100644
--- a/nova/tests/api_unittest.py
+++ b/nova/tests/api_unittest.py
@@ -93,7 +93,7 @@ class ApiEc2TestCase(test.BaseTestCase):
aws_secret_access_key='fake',
is_secure=False,
region=regioninfo.RegionInfo(None, 'test', self.host),
- port=0,
+ port=8773,
path='/services/Cloud')
self.mox.StubOutWithMock(self.ec2, 'new_http_connection')
@@ -101,7 +101,7 @@ class ApiEc2TestCase(test.BaseTestCase):
def expect_http(self, host=None, is_secure=False):
"""Returns a new EC2 connection"""
http = FakeHttplibConnection(
- self.app, '%s:0' % (self.host), False)
+ self.app, '%s:8773' % (self.host), False)
# pylint: disable-msg=E1103
self.ec2.new_http_connection(host, is_secure).AndReturn(http)
return http