summaryrefslogtreecommitdiffstats
path: root/test/functest/utils.py
diff options
context:
space:
mode:
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-11-08 10:15:01 +0200
committerGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-11-10 16:43:48 +0200
commit602428717a0ae71d875e0325e699c7cb26084a89 (patch)
treea426a3e4a0559d981060b36b81dd2137deb920c3 /test/functest/utils.py
parent4db8c4108dcedae322ba6a3fde812e63f746d0f9 (diff)
Encapsulate sleeps in function
We have some sleeps into the testcase code. We can encapsulate them in a utility function to refactor them out of the code until we figure out the best way to remove them completely Change-Id: I44c32d8329c2e319660518a8a46debc22f02c753 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
Diffstat (limited to 'test/functest/utils.py')
-rw-r--r--test/functest/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functest/utils.py b/test/functest/utils.py
index d416765..b75cb3b 100644
--- a/test/functest/utils.py
+++ b/test/functest/utils.py
@@ -271,6 +271,12 @@ def wait_for_bgp_router_assocs(neutron_client, bgpvpn_id, *args):
return all(check)
+def wait_before_subtest(*args, **kwargs):
+ ''' This is a placeholder.
+ TODO: Replace delay with polling logic. '''
+ time.sleep(30)
+
+
def assert_and_get_compute_nodes(nova_client, required_node_number=2):
"""Get the compute nodes in the deployment