summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Dague <sdague@linux.vnet.ibm.com>2013-01-18 20:34:25 -0500
committerSean Dague <sdague@linux.vnet.ibm.com>2013-01-20 20:41:56 -0500
commitbedaf1caefa7310e595c76fb12f60368ad90b718 (patch)
treec87ef170602d22c447bda604ee54ec8f97eff385
parentfa03b1c6ca1fcb45269fe8a6e869ed92dafae602 (diff)
downloadnova-bedaf1caefa7310e595c76fb12f60368ad90b718.tar.gz
nova-bedaf1caefa7310e595c76fb12f60368ad90b718.tar.xz
nova-bedaf1caefa7310e595c76fb12f60368ad90b718.zip
fix floating ip test that wasn't running
the associate_floating_ip negative test wasn't running because the indent was wrong. This was uncovered when looking for unknown names with pyflakes. This makes the test run, and fixes the mispelling of floating to make it actually pass. Change-Id: I74397b8592d51a7fed249c96f17d3e71cdf82a7e
-rw-r--r--nova/tests/api/openstack/compute/contrib/test_floating_ips.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/nova/tests/api/openstack/compute/contrib/test_floating_ips.py b/nova/tests/api/openstack/compute/contrib/test_floating_ips.py
index a72430fd9..efc9b36cc 100644
--- a/nova/tests/api/openstack/compute/contrib/test_floating_ips.py
+++ b/nova/tests/api/openstack/compute/contrib/test_floating_ips.py
@@ -380,16 +380,16 @@ class FloatingIpTest(test.TestCase):
floating_ips = ["10.10.10.10", "10.10.10.11"]
if floating_address not in floating_ips:
raise exception.FloatingIpNotFoundForAddress(
- address=flaoting_address)
+ address=floating_address)
- self.stubs.Set(network.api.API, "associate_floating_ip",
- fake_network_api_associate)
+ self.stubs.Set(network.api.API, "associate_floating_ip",
+ fake_network_api_associate)
- body = dict(addFloatingIp=dict(address='1.1.1.1'))
- req = fakes.HTTPRequest.blank('/v2/fake/servers/test_inst/action')
- self.assertRaises(webob.exc.HTTPNotFound,
- self.manager._add_floating_ip,
- req, 'test_inst', body)
+ body = dict(addFloatingIp=dict(address='1.1.1.1'))
+ req = fakes.HTTPRequest.blank('/v2/fake/servers/test_inst/action')
+ self.assertRaises(webob.exc.HTTPNotFound,
+ self.manager._add_floating_ip,
+ req, 'test_inst', body)
def test_floating_ip_disassociate_non_existent_ip(self):
def network_api_get_floating_ip_by_address(self, context,
@@ -400,7 +400,7 @@ class FloatingIpTest(test.TestCase):
address=floating_address)
self.stubs.Set(network.api.API, "get_floating_ip_by_address",
- network_api_get_floating_ip_by_address)
+ network_api_get_floating_ip_by_address)
body = dict(removeFloatingIp=dict(address='1.1.1.1'))
req = fakes.HTTPRequest.blank('/v2/fake/servers/test_inst/action')