summaryrefslogtreecommitdiff
path: root/heat_integrationtests
diff options
context:
space:
mode:
authorRabi Mishra <ramishra@redhat.com>2018-12-18 19:02:24 +0530
committerRabi Mishra <ramishra@redhat.com>2018-12-19 15:39:36 +0530
commit8cbc8ccf6bcb2bbeec114cceabce5ca6896adf54 (patch)
treeec533d2b9575c3fa25376962e6f7cb9c75b492c5 /heat_integrationtests
parent7cdadf1155f4d94cf8f967635b98e4012a7acfb7 (diff)
downloadheat-8cbc8ccf6bcb2bbeec114cceabce5ca6896adf54.tar.gz
Bump minimal_image_ref
Devstack bumped[1] the cirros image version. Changes to source the old openrc file for grenade before configuring tempest. [1] https://review.openstack.org/#/c/624716/ Change-Id: I9481bbcb03609db6d2224998a4f83d3a8790e96c
Diffstat (limited to 'heat_integrationtests')
-rwxr-xr-xheat_integrationtests/cleanup_test_env.sh4
-rwxr-xr-xheat_integrationtests/post_test_hook.sh1
-rwxr-xr-xheat_integrationtests/prepare_test_env.sh23
-rwxr-xr-xheat_integrationtests/prepare_test_network.sh2
4 files changed, 17 insertions, 13 deletions
diff --git a/heat_integrationtests/cleanup_test_env.sh b/heat_integrationtests/cleanup_test_env.sh
index f30189e62..ee32d17a3 100755
--- a/heat_integrationtests/cleanup_test_env.sh
+++ b/heat_integrationtests/cleanup_test_env.sh
@@ -16,14 +16,14 @@
set -ex
-source $DEST/devstack/openrc demo demo
+source $TOP_DIR/openrc demo demo
# delete the network created
openstack router remove subnet router1 heat-subnet
openstack subnet delete heat-subnet
openstack network delete heat-net
-source $DEST/devstack/openrc admin admin
+source $TOP_DIR/openrc admin admin
# delete the flavors created
openstack flavor delete m1.heat_int
diff --git a/heat_integrationtests/post_test_hook.sh b/heat_integrationtests/post_test_hook.sh
index 80e017937..3d975c657 100755
--- a/heat_integrationtests/post_test_hook.sh
+++ b/heat_integrationtests/post_test_hook.sh
@@ -17,6 +17,7 @@
set -ex
export DEST=${DEST:-/opt/stack/new}
+export TOP_DIR=${TOP_DIR:-/opt/stack/new/devstack}
sudo -E $DEST/heat/heat_integrationtests/prepare_test_env.sh
sudo -E $DEST/heat/heat_integrationtests/prepare_test_network.sh
diff --git a/heat_integrationtests/prepare_test_env.sh b/heat_integrationtests/prepare_test_env.sh
index ce22b36fd..7f74e05f5 100755
--- a/heat_integrationtests/prepare_test_env.sh
+++ b/heat_integrationtests/prepare_test_env.sh
@@ -18,7 +18,7 @@
set -e
-DEST=${DEST:-/opt/stack/new}
+CONF_DEST=${DEST:-/opt/stack/new}
source $DEST/devstack/inc/ini-config
@@ -27,7 +27,7 @@ set -x
function _config_iniset {
local conf_file=$1
- source $DEST/devstack/openrc demo demo
+ source $TOP_DIR/openrc demo demo
# user creds
iniset $conf_file heat_plugin username $OS_USERNAME
iniset $conf_file heat_plugin password $OS_PASSWORD
@@ -40,18 +40,21 @@ function _config_iniset {
iniset $conf_file heat_plugin region $OS_REGION_NAME
iniset $conf_file heat_plugin auth_version $OS_IDENTITY_API_VERSION
- source $DEST/devstack/openrc admin admin
- iniset $conf_file heat_plugin admin_username $OS_USERNAME
- iniset $conf_file heat_plugin admin_password $OS_PASSWORD
+ local default_image_name=${DEFAULT_IMAGE_NAME:-cirros-0.3.6-x86_64-disk}
# Register the flavors for booting test servers
iniset $conf_file heat_plugin instance_type m1.heat_int
iniset $conf_file heat_plugin minimal_instance_type m1.heat_micro
iniset $conf_file heat_plugin image_ref Fedora-Cloud-Base-29-1.2.x86_64
- iniset $conf_file heat_plugin minimal_image_ref cirros-0.3.5-x86_64-disk
+ iniset $conf_file heat_plugin minimal_image_ref $default_image_name
iniset $conf_file heat_plugin hidden_stack_tag hidden
+ source $TOP_DIR/openrc admin admin
+ iniset $conf_file heat_plugin admin_username $OS_USERNAME
+ iniset $conf_file heat_plugin admin_password $OS_PASSWORD
+
+
if [ "$DISABLE_CONVERGENCE" == "true" ]; then
iniset $conf_file heat_plugin convergence_engine_enabled false
fi
@@ -60,7 +63,7 @@ function _config_iniset {
function _config_functionaltests
{
- local conf_file=$DEST/heat/heat_integrationtests/heat_integrationtests.conf
+ local conf_file=$CONF_DEST/heat/heat_integrationtests/heat_integrationtests.conf
_config_iniset $conf_file
# Skip NotificationTest till bug #1721202 is fixed
@@ -71,11 +74,11 @@ function _config_functionaltests
function _config_tempest_plugin
{
- local conf_file=$DEST/tempest/etc/tempest.conf
+ local conf_file=$CONF_DEST/tempest/etc/tempest.conf
iniset_multiline $conf_file service_available heat_plugin True
_config_iniset $conf_file
- iniset $conf_file heat_plugin heat_config_notify_script $DEST/heat-templates/hot/software-config/elements/heat-config/bin/heat-config-notify
- iniset $conf_file heat_plugin boot_config_env $DEST/heat-templates/hot/software-config/boot-config/test_image_env.yaml
+ iniset $conf_file heat_plugin heat_config_notify_script $CONF_DEST/heat-templates/hot/software-config/elements/heat-config/bin/heat-config-notify
+ iniset $conf_file heat_plugin boot_config_env $CONF_DEST/heat-templates/hot/software-config/boot-config/test_image_env.yaml
# Skip SoftwareConfigIntegrationTest because it requires a custom image
# Skip VolumeBackupRestoreIntegrationTest skipped until failure rate can be reduced ref bug #1382300
diff --git a/heat_integrationtests/prepare_test_network.sh b/heat_integrationtests/prepare_test_network.sh
index 01125a89c..490026382 100755
--- a/heat_integrationtests/prepare_test_network.sh
+++ b/heat_integrationtests/prepare_test_network.sh
@@ -19,7 +19,7 @@ set -ex
HEAT_PRIVATE_SUBNET_CIDR=10.0.5.0/24
# create a heat specific private network (default 'private' network has ipv6 subnet)
-source $DEST/devstack/openrc demo demo
+source $TOP_DIR/openrc demo demo
openstack network show heat-net || openstack network create heat-net
openstack subnet show heat-subnet || openstack subnet create heat-subnet --network heat-net --subnet-range $HEAT_PRIVATE_SUBNET_CIDR