diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2017-02-02 17:33:44 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2017-02-02 17:35:33 +0100 |
commit | a5b01479cdf77603e16398c25b7903b71745b55d (patch) | |
tree | 9b93caca77deca304e3ce725a41e92e15dbd1391 | |
parent | 65865e43dc9754ae8bbb54dda37514ab8164d2d2 (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>
-rwxr-xr-x | functest/ci/prepare_env.py | 9 |
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") |