From 682a935e1e3435429cd4c9c852dd20a1e7de1b82 Mon Sep 17 00:00:00 2001 From: Puneet Arora Date: Sun, 16 Apr 2017 16:24:00 +0000 Subject: [PATCH] [tempest]: Adding of missing function in vmware_nsx_tempest Change-Id: I130dbbc62d72fdf8d42874f99cfbad67f6313463 --- .../tests/nsxv/scenario/test_network_basic_ops.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vmware_nsx_tempest/tests/nsxv/scenario/test_network_basic_ops.py b/vmware_nsx_tempest/tests/nsxv/scenario/test_network_basic_ops.py index b2d66391cc..b66694cf18 100644 --- a/vmware_nsx_tempest/tests/nsxv/scenario/test_network_basic_ops.py +++ b/vmware_nsx_tempest/tests/nsxv/scenario/test_network_basic_ops.py @@ -20,6 +20,12 @@ class TestNetworkBasicOps(network_ops.TestNetworkBasicOps): # NSX-v does not allow tenants to access dhcp service. # Overwirte parent class to skip dhcp service testing. + def _list_ports(self, *args, **kwargs): + """List ports using admin creds """ + ports_list = self.admin_manager.ports_client.list_ports( + *args, **kwargs) + return ports_list['ports'] + def _check_network_internal_connectivity(self, network, should_connect=True): floating_ip, server = self.floating_ip_tuple