Commit b17f165f authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

burnin: Fix a bug with missing method

Method `_disconnect_from_floating_ips' has been removed but
StaleFloatingIPsTestSuite was using it. Replace this method with
`_delete_floating_ips'.
parent ff5ac50a
......@@ -558,6 +558,10 @@ class CycladesTests(BurninTests):
self._insist_on_port_deletion(port['id'])
# Then delete the floating IPs
self._delete_floating_ips(fips)
def _delete_floating_ips(self, fips):
"""Delete floating ips"""
for fip in fips:
self.info("Destroying floating IP %s with id %s",
fip['floating_ip_address'], fip['id'])
......
......@@ -103,8 +103,8 @@ class StaleFloatingIPsTestSuite(CycladesTests):
elif len_stale == 0:
self.info("No stale floating IPs found")
else:
self.info("Deleteing %s stale floating IPs", len_stale)
self._disconnect_from_floating_ips(self.stale_ips)
self.info("Deleting %s stale floating IPs", len_stale)
self._delete_floating_ips(self.stale_ips)
# Too many public methods. pylint: disable-msg=R0904
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment