From ff6c357349c5763d82b75d6b4b4e3a6a463fa954 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Mon, 8 Jun 2015 11:10:13 +0000 Subject: WIP: clean set openstack_to_run_tempest Change-Id: Ia06331f3cd2c95f7e339e1ed557f495c9b895cc0 --- .../etc/tempest/set_openstack_to_run_tempest.sh | 51 ++++++++++++++-------- 1 file changed, 34 insertions(+), 17 deletions(-) (limited to 'openstack/etc/tempest') diff --git a/openstack/etc/tempest/set_openstack_to_run_tempest.sh b/openstack/etc/tempest/set_openstack_to_run_tempest.sh index 5270424f..aa568cb3 100755 --- a/openstack/etc/tempest/set_openstack_to_run_tempest.sh +++ b/openstack/etc/tempest/set_openstack_to_run_tempest.sh @@ -13,29 +13,45 @@ # # You should have received a copy of the GNU General Public License along # with this program. If not, see . +# +# This script creates an public image in the admin tenant and +# sets tempest.conf variables for running tests with images involved. +# This is the minimal configuration to run tests for compute (api and services +# tests). +# +# NOTE: the test image will be the following cirros image: +# http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img +# -set -ex +set -e +# Global variables admin_filename="admin_env" +admin_test_image="cirros64_img_ref" +image_ref="" + +# Openstack admin credentials +admin_username="admin" +admin_password="veryinsecure" +admin_tenant="admin" -create_admin_user_env(){ # Create a file with the environment variables # required for setting a Openstack admin user in the # admin tenant. +create_admin_user_env(){ cat > "$admin_filename" <