Func tests use fedora-heat-test-image
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
This commit is contained in:
parent
5a1c30e4c3
commit
02a085b60a
@ -66,8 +66,8 @@ IntegrationTestGroup = [
|
|||||||
default='private',
|
default='private',
|
||||||
help="Visible fixed network name "),
|
help="Visible fixed network name "),
|
||||||
cfg.StrOpt('boot_config_env',
|
cfg.StrOpt('boot_config_env',
|
||||||
default='heat_integrationtests/scenario/templates'
|
default=('heat_integrationtests/scenario/templates'
|
||||||
'/boot_config_none_env.yaml',
|
'/boot_config_none_env.yaml'),
|
||||||
help="Path to environment file which defines the "
|
help="Path to environment file which defines the "
|
||||||
"resource type Heat::InstallConfigAgent. Needs to "
|
"resource type Heat::InstallConfigAgent. Needs to "
|
||||||
"be appropriate for the image_ref."),
|
"be appropriate for the image_ref."),
|
||||||
|
@ -28,7 +28,10 @@ cd $DEST/heat/heat_integrationtests
|
|||||||
iniset heat_integrationtests.conf DEFAULT instance_type m1.heat_int
|
iniset heat_integrationtests.conf DEFAULT instance_type m1.heat_int
|
||||||
nova flavor-create m1.heat_int 452 512 0 1
|
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
|
iniset heat_integrationtests.conf DEFAULT minimal_image_ref cirros-0.3.2-x86_64-uec
|
||||||
|
|
||||||
cat heat_integrationtests.conf
|
cat heat_integrationtests.conf
|
@ -77,8 +77,12 @@ class SoftwareConfigIntegrationTest(scenario_base.ScenarioTestsBase):
|
|||||||
sid, res, 'CREATE_COMPLETE')
|
sid, res, 'CREATE_COMPLETE')
|
||||||
except (exceptions.StackResourceBuildErrorException,
|
except (exceptions.StackResourceBuildErrorException,
|
||||||
exceptions.TimeoutException) as e:
|
exceptions.TimeoutException) as e:
|
||||||
self._log_console_output(servers=[server])
|
|
||||||
raise e
|
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
|
# Check that stack was fully created
|
||||||
self._wait_for_stack_status(sid, 'CREATE_COMPLETE')
|
self._wait_for_stack_status(sid, 'CREATE_COMPLETE')
|
||||||
|
Loading…
Reference in New Issue
Block a user