From 1717a9bb5b6b9694c891ea1aac9fdcfed16bd7a0 Mon Sep 17 00:00:00 2001 From: Puneet Arora Date: Mon, 17 Apr 2017 17:27:57 +0000 Subject: [PATCH] [Tempest]: Adding of timer in between backend operations Change-Id: I53272fce1d45b92a21258e601c78fd40b8e2bd95 --- .../tests/nsxv/scenario/test_spoofguard_policy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmware_nsx_tempest/tests/nsxv/scenario/test_spoofguard_policy.py b/vmware_nsx_tempest/tests/nsxv/scenario/test_spoofguard_policy.py index bb9cdf6fe9..4ca8572778 100644 --- a/vmware_nsx_tempest/tests/nsxv/scenario/test_spoofguard_policy.py +++ b/vmware_nsx_tempest/tests/nsxv/scenario/test_spoofguard_policy.py @@ -15,6 +15,7 @@ # under the License. import re +import time from tempest.common.utils.linux import remote_client from tempest import config @@ -23,6 +24,7 @@ from tempest.lib.common.utils import test_utils from tempest.lib import decorators from tempest import test +from vmware_nsx_tempest.common import constants from vmware_nsx_tempest.services import nsxv_client from vmware_nsx_tempest.tests.nsxv.scenario import ( manager_topo_deployment as dmgr) @@ -254,8 +256,10 @@ class TestSpoofGuardFeature(TestSpoofGuardBasicOps): port_client.update_port( port_id=port1_id, port_security_enabled='false') + time.sleep(constants.NSX_BACKEND_TIME_INTERVAL) self.compute_security_group_rules_client.\ delete_security_group_rule(self.green['rule_id']) + time.sleep(constants.NSX_BACKEND_TIME_INTERVAL) self.assertEqual(False, dmgr.is_reachable(client1, private_ip_vm_2), "Destination is not reachable") self.assertEqual(True, dmgr.is_reachable(client2, private_ip_vm_1),