Merge "Func tests use fedora-heat-test-image"

This commit is contained in:
Jenkins 2015-03-23 13:36:39 +00:00 committed by Gerrit Code Review
commit dc5dbd04e4
3 changed files with 11 additions and 4 deletions

View File

@ -66,8 +66,8 @@ IntegrationTestGroup = [
default='private',
help="Visible fixed network name "),
cfg.StrOpt('boot_config_env',
default='heat_integrationtests/scenario/templates'
'/boot_config_none_env.yaml',
default=('heat_integrationtests/scenario/templates'
'/boot_config_none_env.yaml'),
help="Path to environment file which defines the "
"resource type Heat::InstallConfigAgent. Needs to "
"be appropriate for the image_ref."),

View File

@ -28,7 +28,10 @@ cd $DEST/heat/heat_integrationtests
iniset heat_integrationtests.conf DEFAULT instance_type m1.heat_int
nova flavor-create m1.heat_int 452 512 0 1
iniset heat_integrationtests.conf DEFAULT image_ref Fedora-x86_64-20-20140618-sda
# 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

View File

@ -77,8 +77,12 @@ class SoftwareConfigIntegrationTest(scenario_base.ScenarioTestsBase):
sid, res, 'CREATE_COMPLETE')
except (exceptions.StackResourceBuildErrorException,
exceptions.TimeoutException) as e:
self._log_console_output(servers=[server])
raise e
finally:
# attempt to log the server console regardless of deployments
# going to complete. This allows successful and failed boot
# logs to be compared
self._log_console_output(servers=[server])
# Check that stack was fully created
self._wait_for_stack_status(sid, 'CREATE_COMPLETE')