diff options
author | Dimitrios Markou <mardim@intracom-telecom.com> | 2018-06-01 16:09:47 +0300 |
---|---|---|
committer | Dimitrios Markou <mardim@intracom-telecom.com> | 2018-06-05 06:51:43 +0000 |
commit | e0a0bccf7172b8cdd3e0ac2af7c2736b89ef5f75 (patch) | |
tree | f73aeb4e48faab614d7c9fbcb1132da083b96ed9 /sdnvpn/test/functest/testcase_13.py | |
parent | 24106af0bc806b68c2f7b2901638127d9249b8d0 (diff) |
[Bug Fix] Use correct image for the Quagga instance
In testcase_3 the Quagga image is downloaded from the
opnfv.artifacts repository to the /home/opnfv/functest/data
directory.
But the testcase_3 after that tries to find the image in the
/home/opnfv/functest/images directory.
This results in using a wrong image
Jira: SDNVPN-213
Change-Id: I99539fc9a7a2d016a97ed51fca0cde81f82b3911
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
Diffstat (limited to 'sdnvpn/test/functest/testcase_13.py')
-rw-r--r-- | sdnvpn/test/functest/testcase_13.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sdnvpn/test/functest/testcase_13.py b/sdnvpn/test/functest/testcase_13.py index 35a1a31..8beb1db 100644 --- a/sdnvpn/test/functest/testcase_13.py +++ b/sdnvpn/test/functest/testcase_13.py @@ -9,6 +9,7 @@ # import logging +import os import sys from random import randint @@ -31,6 +32,17 @@ def main(): results.add_to_summary(2, "STATUS", "SUBTEST") results.add_to_summary(0, "=") + if not os.path.isfile(COMMON_CONFIG.ubuntu_image_path): + logger.info("Downloading image") + image_dest_path = '/'.join( + COMMON_CONFIG.ubuntu_image_path.split('/')[:-1]) + os_utils.download_url( + "http://artifacts.opnfv.org/sdnvpn/" + "ubuntu-16.04-server-cloudimg-amd64-disk1.img", + image_dest_path) + else: + logger.info("Using old image") + nova_client = os_utils.get_nova_client() neutron_client = os_utils.get_neutron_client() glance_client = os_utils.get_glance_client() |