diff --git a/vmware_nsx_tempest_plugin/tests/api/test_v2_fwaas.py b/vmware_nsx_tempest_plugin/tests/api/test_v2_fwaas.py index 762d64a..ecf1203 100644 --- a/vmware_nsx_tempest_plugin/tests/api/test_v2_fwaas.py +++ b/vmware_nsx_tempest_plugin/tests/api/test_v2_fwaas.py @@ -12,6 +12,8 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. +import time + from oslo_log import log as logging from tempest import config @@ -21,6 +23,7 @@ from tempest.lib import decorators from tempest.lib import exceptions from tempest import test +from vmware_nsx_tempest_plugin.common import constants from vmware_nsx_tempest_plugin.lib import feature_manager from vmware_nsx_tempest_plugin.services import nsx_client @@ -180,10 +183,12 @@ class TestFwaasV2Ops(feature_manager.FeatureManager): self._wait_firewall_ready(fw_group["firewall_group"]["id"]) show_group = self.show_firewall_group(fw_group["firewall_group"]["id"]) self.assertEqual(show_group.get('firewall_group')['ports'], ports) + fw_group = show_group if group_delete is True: # Update firewall group self.update_firewall_group(fw_group["firewall_group"]["id"], ports=[]) + time.sleep(constants.NSXP_BACKEND_SMALL_TIME_INTERVAL) # Check updated values of firewall group self.assertEqual( show_group.get('firewall_group')['name'], diff --git a/vmware_nsx_tempest_plugin/tests/nsxv3/api/test_nsx_mac_learning.py b/vmware_nsx_tempest_plugin/tests/nsxv3/api/test_nsx_mac_learning.py index 229c68f..216dee9 100644 --- a/vmware_nsx_tempest_plugin/tests/nsxv3/api/test_nsx_mac_learning.py +++ b/vmware_nsx_tempest_plugin/tests/nsxv3/api/test_nsx_mac_learning.py @@ -160,6 +160,8 @@ class NSXv3MacLearningTest(base.BaseNetworkTest): mac_lrn_port = self._create_mac_learn_enabled_port(self.network) vanilla_name = data_utils.rand_name('vanilla_port-') vanilla_port = self.create_port(self.network, name=vanilla_name) + if CONF.network.backend == 'nsxp': + time.sleep(constants.NSXP_BACKEND_SMALL_TIME_INTERVAL) self.addCleanup(test_utils.call_and_ignore_notfound_exc, self._delete_port, mac_lrn_port) self.addCleanup(test_utils.call_and_ignore_notfound_exc,