summaryrefslogtreecommitdiffstats
path: root/functest/ci
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-02-02 17:33:44 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2017-02-02 17:35:33 +0100
commita5b01479cdf77603e16398c25b7903b71745b55d (patch)
tree9b93caca77deca304e3ce725a41e92e15dbd1391 /functest/ci
parent65865e43dc9754ae8bbb54dda37514ab8164d2d2 (diff)
Add flavor creation in functest env prepare
So far, healthcheck.sh was creating m1.tiny flavor. We are planning to remove that script and replace it by SNAPS api and connection check. Althought, a better approach to this would be that all the tests create the flavor if needed, but these are the tests that rely on this flavor: - vping ssh - vping userdata - rally - tempest - onos_sfc Change-Id: I537f68a55d733b24b6b15f5cf3710bca40fbc622 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'functest/ci')
-rwxr-xr-xfunctest/ci/prepare_env.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/functest/ci/prepare_env.py b/functest/ci/prepare_env.py
index 8bbdf18b..b3e59020 100755
--- a/functest/ci/prepare_env.py
+++ b/functest/ci/prepare_env.py
@@ -261,6 +261,14 @@ def install_tempest():
error_msg="Problem while installing Tempest.")
+def create_flavor():
+ os_utils.get_or_create_flavor('m1.tiny',
+ '512',
+ '1',
+ '1',
+ public=True)
+
+
def check_environment():
msg_not_active = "The Functest environment is not installed."
if not os.path.isfile(CONST.env_active):
@@ -290,6 +298,7 @@ def main(**kwargs):
verify_deployment()
install_rally()
install_tempest()
+ create_flavor()
with open(CONST.env_active, "w") as env_file:
env_file.write("1")