02a085b60a
This runs the existing functional tests using the images built in http://tarballs.openstack.org/heat-test-image/ This image should be a suitable alternative to Fedora-x86_64-20-20140618-sda, with the extra benefit that it is prepared to install the heat config agent projects during boot so that test_server_software_config can be enabled. This will also allow devstack to no longer load Fedora-x86_64-20-20140618-sda onto the nodepool images which will reduce gate resource consumption. Change-Id: I6041b8d6e7e9422f6e220d7aef0ca38857085e4b
37 lines
1.5 KiB
Bash
Executable File
37 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
# This script creates required cloud resources and sets test options
|
|
# in heat_integrationtests.conf.
|
|
# Credentials are required for creating nova flavors and glance images.
|
|
|
|
set -x
|
|
|
|
DEST=${DEST:-/opt/stack/new}
|
|
|
|
source $DEST/devstack/inc/ini-config
|
|
|
|
cd $DEST/heat/heat_integrationtests
|
|
|
|
# Register the flavor for booting test servers
|
|
iniset heat_integrationtests.conf DEFAULT instance_type m1.heat_int
|
|
nova flavor-create m1.heat_int 452 512 0 1
|
|
|
|
# Register the glance image for testing
|
|
glance image-create --name fedora-heat-test-image --disk-format qcow2 --container-format bare --is-public True --location http://tarballs.openstack.org/heat-test-image/fedora-heat-test-image.qcow2
|
|
iniset heat_integrationtests.conf DEFAULT image_ref fedora-heat-test-image
|
|
iniset heat_integrationtests.conf DEFAULT boot_config_env $DEST/heat-templates/hot/software-config/boot-config/test_image_env.yaml
|
|
iniset heat_integrationtests.conf DEFAULT minimal_image_ref cirros-0.3.2-x86_64-uec
|
|
|
|
cat heat_integrationtests.conf |