From: Jenkins Date: Wed, 10 Apr 2013 21:38:13 +0000 (+0000) Subject: Merge "Parallelize quantum unit testing:" X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=4eab424be34840e5c2c16027f796c958cf3c35c3;p=openstack-build%2Fneutron-build.git Merge "Parallelize quantum unit testing:" --- 4eab424be34840e5c2c16027f796c958cf3c35c3 diff --cc quantum/tests/unit/test_l3_plugin.py index 819c9418b,497ac9c34..4c7f66e06 --- a/quantum/tests/unit/test_l3_plugin.py +++ b/quantum/tests/unit/test_l3_plugin.py @@@ -664,21 -667,9 +665,21 @@@ class L3NatDBTestCase(L3NatTestCaseBase expected_code=exc.HTTPNotFound.code) self.assertEqual( - set(n['event_type'] for n in test_notifier.NOTIFICATIONS), - set(exp_notifications)) + set(exp_notifications), + set(n['event_type'] for n in test_notifier.NOTIFICATIONS)) + for n in test_notifier.NOTIFICATIONS: + if n['event_type'].startswith('router.interface.'): + payload = n['payload']['router.interface'] + self.assertIn('id', payload) + self.assertEquals(payload['id'], r['router']['id']) + self.assertIn('tenant_id', payload) + stid = s['subnet']['tenant_id'] + # tolerate subnet tenant deliberately to '' in the + # nicira metadata access case + self.assertTrue(payload['tenant_id'] == stid or + payload['tenant_id'] == '') + def test_router_add_interface_subnet_with_bad_tenant_returns_404(self): with mock.patch('quantum.context.Context.to_dict') as tdict: tenant_id = _uuid()