summaryrefslogtreecommitdiff
path: root/install-files/openstack/etc/tempest/set_openstack_to_run_tempest.sh
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-06-19 17:07:38 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-06-22 13:32:27 +0000
commitdde310007c20d2df36dbebe4bdb10f44529e74ac (patch)
treed45a00d5d41172215d08ea1b1807e9624e9a2130 /install-files/openstack/etc/tempest/set_openstack_to_run_tempest.sh
parent3477dfeef30ed965173b62b40d19eb470c8e175b (diff)
downloaddefinitions-dde310007c20d2df36dbebe4bdb10f44529e74ac.tar.gz
OpenStack: add configuration for scenario tests
Change-Id: Ifaaced5256ce7aeca786118a2075c991b3fa103f
Diffstat (limited to 'install-files/openstack/etc/tempest/set_openstack_to_run_tempest.sh')
-rwxr-xr-xinstall-files/openstack/etc/tempest/set_openstack_to_run_tempest.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/install-files/openstack/etc/tempest/set_openstack_to_run_tempest.sh b/install-files/openstack/etc/tempest/set_openstack_to_run_tempest.sh
index 30539488..8c0b8da3 100755
--- a/install-files/openstack/etc/tempest/set_openstack_to_run_tempest.sh
+++ b/install-files/openstack/etc/tempest/set_openstack_to_run_tempest.sh
@@ -107,7 +107,16 @@ create_tempest_custom_flavor(){
sed -r -i "s/[#]?flavor_ref_alt =.*/flavor_ref_alt = 6/" tempest.conf
}
+prepare_scenario_tests(){
+ local imgdir=/opt/openstack/images/
+ mkdir -p "$imgdir"
+ wget -c http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz \
+ -O "$imgdir"/cirros-0.3.1-x86_64-uec.tar.gz
+ cd "$imgdir" && tar xvf cirros-0.3.1-x86_64-uec.tar.gz
+}
+
# Configure Openstack for running tempest tests.
create_admin_user_env
create_image_for_user "$admin_username" "$admin_test_image"
create_tempest_custom_flavor
+prepare_scenario_tests