added new exception more descriptive of not having available floating addresses avail for allocation
This commit is contained in:
@@ -123,7 +123,7 @@ class CloudTestCase(test.TestCase):
|
|||||||
'host': self.network.host})
|
'host': self.network.host})
|
||||||
self.assertEqual(allocate(self.context)['publicIp'], address)
|
self.assertEqual(allocate(self.context)['publicIp'], address)
|
||||||
db.floating_ip_destroy(self.context, address)
|
db.floating_ip_destroy(self.context, address)
|
||||||
self.assertRaises(exception.NoFloatingIpsDefined,
|
self.assertRaises(exception.NoMoreFloatingIps,
|
||||||
allocate,
|
allocate,
|
||||||
self.context)
|
self.context)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user