From 980b4a79f1d4251d662a7d30b0878def018487d5 Mon Sep 17 00:00:00 2001 From: Boden R Date: Wed, 27 Feb 2019 09:16:26 -0700 Subject: [PATCH] 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 --- dragonflow/tests/unit/test_l3_router_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dragonflow/tests/unit/test_l3_router_plugin.py b/dragonflow/tests/unit/test_l3_router_plugin.py index 2e4a02f68..449332479 100644 --- a/dragonflow/tests/unit/test_l3_router_plugin.py +++ b/dragonflow/tests/unit/test_l3_router_plugin.py @@ -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)