From f198a0db8e22f8cf0cc775fca6ba59262554ca72 Mon Sep 17 00:00:00 2001 From: Rodion Promyshlennikov Date: Fri, 21 Oct 2016 16:57:43 +0300 Subject: [PATCH] Fix default deployment timeout value Default deploy timeout value should be provided by default settings not constant. Add description into docstring for timeout parameter to deployment method. Change-Id: Ib388e51949e59e24bda79f62cb264ea8da21c512 --- stacklight_tests/helpers/helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stacklight_tests/helpers/helpers.py b/stacklight_tests/helpers/helpers.py index 01b83f3..9b68d9e 100644 --- a/stacklight_tests/helpers/helpers.py +++ b/stacklight_tests/helpers/helpers.py @@ -240,7 +240,7 @@ class PluginHelper(object): def deploy_cluster(self, nodes_roles, verify_network=False, update_interfaces=True, check_services=True, - timeout=7800): + timeout=settings.DEPLOYMENT_TIMEOUT): """Assign roles to nodes and deploy the cluster. :param nodes_roles: nodes to roles mapping. @@ -254,6 +254,9 @@ class PluginHelper(object): :param check_services: whether or not OSTF tests should run after the deployment (default: True). :type check_services: boolean + :param timeout: deployment timeout: after run out of it + deployment process will be stopped with exception. + :type timeout: int :returns: None """ self.fuel_web.update_nodes(self.cluster_id, nodes_roles,