summaryrefslogtreecommitdiffstats
path: root/testcases/config_functest.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-03-04 14:23:31 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2016-03-04 15:21:16 +0000
commit271ff49d29ebf4dbbfba1311beb9c9d46542dcc0 (patch)
tree494485e8ceec69bd5eab799b5e698b9b5c12d3ff /testcases/config_functest.py
parent4d23c1afb0257596cf05c7aa8e25242759c55d07 (diff)
Rally and Tempest pre-installed in the Docker image.
Also, upgrade Rally to version 0.3.1 JIRA: FUNCTEST-147 Change-Id: I6aa15a7c282462058b7786c7dc7174d48c905d3a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit def1634a5b8a2c8ca794fa878394234a8ebb3468)
Diffstat (limited to 'testcases/config_functest.py')
-rwxr-xr-xtestcases/config_functest.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/testcases/config_functest.py b/testcases/config_functest.py
index 21c569cb0..fa58a5639 100755
--- a/testcases/config_functest.py
+++ b/testcases/config_functest.py
@@ -55,6 +55,7 @@ RALLY_DIR = FUNCTEST_REPO + functest_yaml.get("general").get("directories").get(
RALLY_REPO_DIR = functest_yaml.get("general").get("directories").get("dir_repo_rally")
RALLY_INSTALLATION_DIR = functest_yaml.get("general").get("directories").get("dir_rally_inst")
RALLY_RESULT_DIR = functest_yaml.get("general").get("directories").get("dir_rally_res")
+TEMPEST_REPO_DIR = functest_yaml.get("general").get("directories").get("dir_repo_tempest")
VPING_DIR = FUNCTEST_REPO + functest_yaml.get("general").get("directories").get("dir_vping")
VIMS_TEST_DIR = functest_yaml.get("general").get("directories").get("dir_repo_vims_test")
ODL_DIR = FUNCTEST_REPO + functest_yaml.get("general").get("directories").get("dir_odl")
@@ -209,20 +210,12 @@ def install_rally():
if check_rally():
logger.info("Rally is already installed.")
else:
- logger.debug("Executing %s/install_rally.sh..." %RALLY_REPO_DIR)
- install_script = RALLY_REPO_DIR + "/install_rally.sh --yes"
- cmd = 'sudo ' + install_script
- if os.environ.get("CI_DEBUG") == "false":
- functest_utils.execute_command(cmd)
- else:
- functest_utils.execute_command(cmd,logger)
-
logger.debug("Creating Rally environment...")
cmd = "rally deployment create --fromenv --name="+DEPLOYMENT_MAME
functest_utils.execute_command(cmd,logger)
- logger.debug("Installing tempest...")
- cmd = "rally verify install"
+ logger.debug("Installing tempest from existing repo...")
+ cmd = "rally verify install --source " + TEMPEST_REPO_DIR + " --system-wide"
functest_utils.execute_command(cmd,logger)
cmd = "rally deployment check"