From 2a629b279f2bbef44ae1dc730de825b3b93f72fd Mon Sep 17 00:00:00 2001 From: Deepthi Kandavara Jayarama Date: Wed, 28 Mar 2018 18:39:15 +0000 Subject: [PATCH] [Bug:2088241] VIO 5.0 requies api_v2=False With earlier code tests were failing with AttributeError: 'Manager' object has no attribute 'volumes_client' Tested the change with some tests root@prome-mdt-dhcp412:/opt/stack/tempest# ostestr --pdb vmware_nsx_tempest.tests.nsxv3.scenario.test_allowed_address_pair.TestAllowedAddressPair {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_allowed_address_pair.TestAllowedAddressPair.test_allowed_adddress_pair_on_vms_with_single_ip [95.735889s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_allowed_address_pair.TestAllowedAddressPair.test_allowed_adddress_pair_ports_attach_as_interface_on_vms [114.847243s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_allowed_address_pair.TestAllowedAddressPair.test_allowed_adddress_with_ip_mac_attach_as_interface_on_vms [181.927796s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_allowed_address_pair.TestAllowedAddressPair.test_allowed_address_pair_on_vms_with_multiple_ips [97.630669s] ... ok {0} vmware_nsx_tempest.tests.nsxv3.scenario.test_allowed_address_pair.TestAllowedAddressPair.test_vm_accessible_using_allowed_adddress_pair_port_fip [60.466328s] ... ok ====== Totals ====== Ran: 5 tests in 555.0000 sec. - Passed: 5 - Skipped: 0 - Expected Fail: 0 - Unexpected Success: 0 - Failed: 0 Sum of execute time for each test: 550.6079 sec. Change-Id: I4d58cd136496306755f105719ebc5c634bd5d3d9 --- vmware_nsx_tempest/tests/scenario/manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vmware_nsx_tempest/tests/scenario/manager.py b/vmware_nsx_tempest/tests/scenario/manager.py index 9fcc005..49eb8e6 100644 --- a/vmware_nsx_tempest/tests/scenario/manager.py +++ b/vmware_nsx_tempest/tests/scenario/manager.py @@ -83,6 +83,9 @@ class ScenarioTest(tempest.test.BaseTestCase): if CONF.volume_feature_enabled.api_v2: cls.volumes_client = cls.os_primary.volumes_v2_client cls.snapshots_client = cls.os_primary.snapshots_v2_client + elif CONF.volume_feature_enabled.api_v3: + cls.volumes_client = cls.os_primary.volumes_v3_client + cls.snapshots_client = cls.os_primary.snapshots_v3_client else: cls.volumes_client = cls.os_primary.volumes_client cls.snapshots_client = cls.os_primary.snapshots_client