Fix floatingip tests that were broken by neutron

Floating IP tests were broken by https://review.openstack.org/#/c/521707/
as the notation of attribute access was modified from 'get' notation to
'[]' notation, so if we do not set the attributes, an exception is
thrown and fails the test.
Just added the relevant attributes with 'None' value.

Change-Id: Ifda93cf8a4c5ebd49e4d9da2be0974d83564f5dd
This commit is contained in:
Shachar Snapiri 2017-12-14 08:37:53 +02:00
parent 4c02642f4d
commit 4d9f18dd04
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ class TestDFL3RouterPlugin(test_mech_driver.DFMechanismDriverTestCase,
floatingip = self.l3p.create_floatingip(
self.context,
{'floatingip': {'floating_network_id': n['network']['id'],
'subnet_id': None,
'floating_ip_address': None,
'tenant_id': n['network']['tenant_id']}})
self.assertEqual(floatingip['revision_number'], 0)
nb_fip = self.nb_api.create.call_args_list[-1][0][0]