Allow the elements built into the heat functional test image to
be overridden via the localrc, allows easier testing of local
images with different/additional elements.
Change-Id: Ibaf2322e0572d25461579bbb2dc8a18858f4e09c
| ... | ... |
@@ -47,6 +47,11 @@ HEAT_TEMPLATES_DIR=$HEAT_CONF_DIR/templates |
| 47 | 47 |
HEAT_STACK_DOMAIN=$(trueorfalse True HEAT_STACK_DOMAIN) |
| 48 | 48 |
HEAT_API_HOST=${HEAT_API_HOST:-$HOST_IP}
|
| 49 | 49 |
HEAT_API_PORT=${HEAT_API_PORT:-8004}
|
| 50 |
+HEAT_FUNCTIONAL_IMAGE_ELEMENTS=${HEAT_FUNCTIONAL_IMAGE_ELEMENTS:-\
|
|
| 51 |
+vm fedora selinux-permissive pypi os-collect-config os-refresh-config \ |
|
| 52 |
+os-apply-config heat-cfntools heat-config heat-config-cfn-init \ |
|
| 53 |
+heat-config-puppet heat-config-script} |
|
| 54 |
+ |
|
| 50 | 55 |
|
| 51 | 56 |
# other default options |
| 52 | 57 |
HEAT_DEFERRED_AUTH=${HEAT_DEFERRED_AUTH:-trusts}
|
| ... | ... |
@@ -295,15 +300,10 @@ function build_heat_functional_test_image {
|
| 295 | 295 |
build_dib_pip_repo "$OCC_DIR $OAC_DIR $ORC_DIR $HEAT_CFNTOOLS_DIR" |
| 296 | 296 |
local image_name=heat-functional-tests-image |
| 297 | 297 |
|
| 298 |
- # The elements to invoke disk-image-create with |
|
| 299 |
- local image_elements="vm fedora selinux-permissive pypi \ |
|
| 300 |
- os-collect-config os-refresh-config os-apply-config heat-cfntools \ |
|
| 301 |
- heat-config heat-config-cfn-init heat-config-puppet heat-config-script" |
|
| 302 |
- |
|
| 303 | 298 |
# Elements path for tripleo-image-elements and heat-templates software-config |
| 304 | 299 |
local elements_path=$TIE_DIR/elements:$HEAT_TEMPLATES_REPO_DIR/hot/software-config/elements |
| 305 | 300 |
|
| 306 |
- disk_image_create_upload "$image_name" "$image_elements" "$elements_path" |
|
| 301 |
+ disk_image_create_upload "$image_name" "$HEAT_FUNCTIONAL_IMAGE_ELEMENTS" "$elements_path" |
|
| 307 | 302 |
iniset $TEMPEST_CONFIG orchestration image_ref $image_name |
| 308 | 303 |
else |
| 309 | 304 |
echo "Error, HEAT_CREATE_TEST_IMAGE=True requires dib" >&2 |