Add timeout for cloudify-manager deployment
authorboucherv <valentin.boucher@orange.com>
Tue, 12 Jan 2016 09:51:42 +0000 (10:51 +0100)
committerboucherv <valentin.boucher@orange.com>
Tue, 12 Jan 2016 09:51:42 +0000 (10:51 +0100)
FUNCTEST-122

Change-Id: I837b286fa83eb0b6d18749d1070198ed6b653ba1
Signed-off-by: boucherv <valentin.boucher@orange.com>
testcases/vIMS/CI/orchestrator.py
testcases/vIMS/CI/vIMS.py

index c62cba4..ab0b448 100644 (file)
@@ -91,14 +91,14 @@ class orchestrator:
 
             if self.logger:
                 self.logger.info("Launching the cloudify-manager deployment")
-
-            script = "source " + self.testcase_dir + "venv_cloudify/bin/activate; "
+            script =  "set -e; "
+            script += "source " + self.testcase_dir + "venv_cloudify/bin/activate; "
             script += "cd " + self.testcase_dir + "; "
             script += "cfy init -r; "
             script += "cd cloudify-manager-blueprint; "
             script += "cfy local create-requirements -o requirements.txt -p openstack-manager-blueprint.yaml; "
             script += "pip install -r requirements.txt; "
-            script += "cfy bootstrap --install-plugins -p openstack-manager-blueprint.yaml -i inputs.yaml; "
+            script += "timeout 1800 cfy bootstrap --install-plugins -p openstack-manager-blueprint.yaml -i inputs.yaml; "
             cmd = "/bin/bash -c '" + script + "'"
             execute_command(cmd, self.logger)
 
index 94679f0..98cc009 100644 (file)
@@ -148,7 +148,6 @@ def test_clearwater():
             CW_INPUTS["public_domain"] + '] SIGNUP_CODE="secret"'
 
         cmd = "/bin/bash -c '" + script + "'"
-        print cmd
         output_file = "output.txt"
         f = open(output_file, 'w+')
         p = subprocess.call(cmd, shell=True, stdout=f,