change path for python ci files 87/24187/5
authorMorgan Richomme <morgan.richomme@orange.com>
Thu, 10 Nov 2016 13:31:07 +0000 (14:31 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Thu, 10 Nov 2016 15:47:02 +0000 (16:47 +0100)
JIRA: FUNCTEST-525

Change-Id: I6b09eaec55e42a3ee1474b21bc7ed87a71118e60
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
15 files changed:
docker/Dockerfile
functest/ci/__init__.py [moved from ci/__init__.py with 100% similarity]
functest/ci/check_os.sh [moved from ci/check_os.sh with 100% similarity, mode: 0644]
functest/ci/config_functest.yaml [moved from ci/config_functest.yaml with 100% similarity]
functest/ci/config_patch.yaml [moved from ci/config_patch.yaml with 100% similarity]
functest/ci/exec_test.sh [moved from ci/exec_test.sh with 100% similarity, mode: 0644]
functest/ci/generate_report.py [moved from ci/generate_report.py with 99% similarity, mode: 0644]
functest/ci/prepare_env.py [moved from ci/prepare_env.py with 98% similarity, mode: 0644]
functest/ci/run_tests.py [moved from ci/run_tests.py with 100% similarity, mode: 0644]
functest/ci/testcases.yaml [moved from ci/testcases.yaml with 100% similarity]
functest/ci/tier_builder.py [moved from ci/tier_builder.py with 100% similarity]
functest/ci/tier_handler.py [moved from ci/tier_handler.py with 100% similarity]
functest/cli/commands/cli_env.py
functest/cli/commands/cli_os.py
functest/utils/functest_utils.py

index 42c24ec..cb8e4c0 100644 (file)
@@ -41,7 +41,8 @@ ENV creds /home/opnfv/functest/conf/openstack.creds
 ENV TERM xterm
 ENV COLORTERM gnome-terminal
 ENV PYTHONPATH $PYTHONPATH:/home/opnfv/repos/
-ENV CONFIG_FUNCTEST_YAML /home/opnfv/repos/functest/ci/config_functest.yaml
+ENV CONFIG_FUNCTEST_YAML /home/opnfv/repos/functest/functest/ci/config_functest.yaml
+ENV PYTHONPATH $PYTHONPATH:/home/opnfv/repos/:/home/opnfv/repos/functest
 WORKDIR /home/opnfv
 
 # Packaged dependencies
similarity index 100%
rename from ci/__init__.py
rename to functest/ci/__init__.py
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from ci/check_os.sh
rename to functest/ci/check_os.sh
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from ci/exec_test.sh
rename to functest/ci/exec_test.sh
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from ci/generate_report.py
rename to functest/ci/generate_report.py
index d2e09eb..c934372
@@ -2,6 +2,7 @@ import json
 import os
 import re
 import urllib2
+
 import functest.utils.functest_logger as ft_logger
 import functest.utils.functest_utils as ft_utils
 
old mode 100755 (executable)
new mode 100644 (file)
similarity index 98%
rename from ci/prepare_env.py
rename to functest/ci/prepare_env.py
index e110aa5..e5c24cc
@@ -109,7 +109,7 @@ def check_env_variables():
 
     if CI_SCENARIO is None:
         logger.warning("The env variable 'DEPLOY_SCENARIO' is not defined. "
-                       "Setting CE_SCENARIO=undefined.")
+                       "Setting CI_SCENARIO=undefined.")
         CI_SCENARIO = "undefined"
     else:
         logger.info("    DEPLOY_SCENARIO=%s" % CI_SCENARIO)
@@ -205,7 +205,7 @@ def patch_config_file():
 def verify_deployment():
     print_separator()
     logger.info("Verifying OpenStack services...")
-    cmd = ("%s/ci/check_os.sh" % ft_utils.FUNCTEST_REPO)
+    cmd = ("%s/functest/ci/check_os.sh" % ft_utils.FUNCTEST_REPO)
 
     logger.debug("Executing command: %s" % cmd)
     p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from ci/run_tests.py
rename to functest/ci/run_tests.py
similarity index 100%
rename from ci/testcases.yaml
rename to functest/ci/testcases.yaml
index 5720126..d331cc1 100644 (file)
@@ -19,6 +19,7 @@ FUNCTEST_REPO = ft_utils.FUNCTEST_REPO
 
 
 class CliEnv:
+
     def __init__(self):
         pass
 
@@ -36,7 +37,7 @@ class CliEnv:
                 else:
                     answer = raw_input("Invalid answer. Please type [y|n]\n")
 
-        cmd = ("python %s/ci/prepare_env.py start" % FUNCTEST_REPO)
+        cmd = ("python %s/functest/ci/prepare_env.py start" % FUNCTEST_REPO)
         ft_utils.execute_command(cmd)
 
     def show(self):
index 2f3f329..2530b5f 100644 (file)
@@ -79,7 +79,7 @@ class CliOpenStack:
 
     def check(self):
         self.ping_endpoint()
-        cmd = ft_utils.FUNCTEST_REPO + "/ci/check_os.sh"
+        cmd = ft_utils.FUNCTEST_REPO + "/functest/ci/check_os.sh"
         ft_utils.execute_command(cmd, verbose=False)
 
     def snapshot_create(self):
index 41b6485..2d4a652 100644 (file)
@@ -439,7 +439,7 @@ def check_test_result(test_name, ret, start_time, stop_time):
 
 
 def get_testcases_file():
-    return FUNCTEST_REPO + "/ci/testcases.yaml"
+    return FUNCTEST_REPO + "/functest/ci/testcases.yaml"
 
 
 def get_functest_yaml():