Fix find available floating IP test

The test assumed that you were going to get back the IP that
you just created, but there may be another available IP on
that network, so just assert that the IP returned is available.

Change-Id: Ie47406c1e9839d4f82d789a6a39d9e970de72ee6
This commit is contained in:
TerryHowe
2015-08-19 13:47:20 -06:00
parent 36e5af74e6
commit bbbc50baf7

View File

@@ -123,7 +123,8 @@ class TestFloatingIP(base.BaseFunctionalTest):
def test_find_available_ip(self):
sot = self.conn.network.find_available_ip()
self.assertEqual(self.FIP_ID, sot.id)
self.assertIsNotNone(sot.id)
self.assertIsNone(sot.port_id)
def test_get(self):
sot = self.conn.network.get_ip(self.FIP_ID)