aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-02-03 07:49:46 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-03 07:49:46 +0000
commit03d4b5ba821059c778d40484f190f2358b24a2a8 (patch)
tree785dd59fc72ddc326bfaa3467d10cd9ca8b1f55f
parent84ad068f86b0c1d6fe40b33702777e460c7f9fe7 (diff)
parenta5b01479cdf77603e16398c25b7903b71745b55d (diff)
Merge "Add flavor creation in functest env prepare"
-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 8bbdf18bc..b3e590209 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")