From 3e3ae8384020ca3c19f51a1aa1d3e384a0c8c6bc Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sat, 27 Aug 2016 00:49:49 -0700 Subject: [PATCH] NSX|V: remove invalid parameter from context Coomit 8ad224d4e6bf40aeb895b526ddcaa5c00011fc46 broke the unit tests. Change-Id: Id0cb6b72f98521463f5f28f1fbc05d94785496f7 --- vmware_nsx/tests/unit/nsx_v/test_plugin.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/vmware_nsx/tests/unit/nsx_v/test_plugin.py b/vmware_nsx/tests/unit/nsx_v/test_plugin.py index 66ffada22e..c7ac2a5be3 100644 --- a/vmware_nsx/tests/unit/nsx_v/test_plugin.py +++ b/vmware_nsx/tests/unit/nsx_v/test_plugin.py @@ -977,8 +977,7 @@ class TestPortsV2(NsxVPluginV2TestCase, # By default user is admin - now test non admin user ctx = context.Context(user_id=None, tenant_id=self._tenant_id, - is_admin=False, - read_deleted="no") + is_admin=False) ports = self._list('ports', neutron_context=ctx)['ports'] self.assertEqual(2, len(ports)) for non_admin_port in ports: @@ -1041,8 +1040,7 @@ class TestPortsV2(NsxVPluginV2TestCase, # By default user is admin - now test non admin user ctx = context.Context(user_id=None, tenant_id=self._tenant_id, - is_admin=False, - read_deleted="no") + is_admin=False) ports = self._list('ports', neutron_context=ctx)['ports'] self.assertEqual(2, len(ports)) for non_admin_port in ports: @@ -2553,8 +2551,7 @@ class TestExclusiveRouterTestCase(L3NatTest, L3NatTestCaseBase, def test_router_create_with_gwinfo_and_l3_ext_net_with_non_admin(self): ctx = context.Context(user_id=None, tenant_id=self._router_tenant_id, - is_admin=False, - read_deleted="no") + is_admin=False) self._test_router_create_with_gwinfo_and_l3_ext_net(router_ctx=ctx) def test_router_create_with_different_sizes(self): @@ -2662,8 +2659,7 @@ class TestExclusiveRouterTestCase(L3NatTest, L3NatTestCaseBase, def test_router_update_gateway_on_l3_ext_net_with_non_admin(self): ctx = context.Context(user_id=None, tenant_id=self._router_tenant_id, - is_admin=False, - read_deleted="no") + is_admin=False) self._test_router_update_gateway_on_l3_ext_net(router_ctx=ctx) def test_router_update_gateway_on_l3_ext_net_with_vlan(self):