iniset heat_integrationtests.conf
This change adds a prepare_test_env.sh script which builds a
heat_integrationtests.conf using the iniset function from devstack.
prepare_test_env.sh can be run locally with appropriate credentials
and a valid $DEST. In the gate post_test_hook.sh runs prepare_test_env.sh
with sudo so it has the required permissions to write
heat_integrationtests.conf.
Instead of adding more environment variables which are used as default
config options, replace those by actually writing out a
heat_integrationtests.conf file with the required values. This was always
the original intention - it just hadn't been done yet.
The exception to this is the sourced auth environment variables which
are very convenient to not have to state explicitly in the config file.
Change-Id: Ibdba20172964cb5c9e33071cf346d7e0315aea6c
diff --git a/common/config.py b/common/config.py
index 158d087..7fc6a40 100644
--- a/common/config.py
+++ b/common/config.py
@@ -36,17 +36,14 @@
default=os.environ.get('OS_REGION_NAME'),
help="The region name to us"),
cfg.StrOpt('instance_type',
- default=os.environ.get('HEAT_TEST_INSTANCE_TYPE'),
help="Instance type for tests. Needs to be big enough for a "
"full OS plus the test workload"),
cfg.StrOpt('image_ref',
- default=os.environ.get('HEAT_TEST_IMAGE_REF'),
help="Name of image to use for tests which boot servers."),
cfg.StrOpt('keypair_name',
default=None,
help="Name of existing keypair to launch servers with."),
cfg.StrOpt('minimal_image_ref',
- default=os.environ.get('HEAT_TEST_MINIMAL_IMAGE_REF'),
help="Name of minimal (e.g cirros) image to use when "
"launching test instances."),
cfg.StrOpt('auth_version',