fix unit tests

With the introduction of [1] into neutron, the revision number of a
created router is now 1 and not 0. The dragonflow code is expecting 0
today and thus 3 unit tests fail due to this.

This patch updates to the tests to expect the revision number to be 1
rather than 0 as per [1].

[1] https://review.openstack.org/#/c/635671/

Change-Id: I8d16fada6972854719d9023dd79915820a73ff3b
This commit is contained in:
Boden R 2019-02-27 09:16:26 -07:00
parent 5bb32a58ae
commit 980b4a79f1
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class TestDFL3RouterPlugin(test_mech_driver.DFMechanismDriverTestCase,
r = {'router': {'name': 'router', 'tenant_id': 'tenant',
'admin_state_up': True}}
router = self.l3p.create_router(self.context, r)
self.assertEqual(router['revision_number'], 0)
self.assertEqual(1, router['revision_number'])
lrouter = neutron_l3.logical_router_from_neutron_router(router)
self.nb_api.create.assert_called_once_with(lrouter)