Add Heat tests

Enable Heat tests.
Create heat stack owner role.

Change-Id: Ic3f142772aae40eaa1fd1b78ae0d6921e9cf6e57
This commit is contained in:
Mark Vanderwiel 2016-05-09 16:40:56 -05:00
parent 5a86f23c2a
commit 0a5e2d64ab
4 changed files with 21 additions and 1 deletions

View File

@ -26,6 +26,7 @@ default['openstack']['integration-test'] = {
'alt_ssh_user' => 'cirros',
'ssh_user' => 'cirros',
'fixed_network' => 'local_net',
'heat_stack_user_role' => 'heat_stack_owner',
'user1' => {
'user_name' => 'tempest_user1',
'password' => 'tempest_user1_pass',

View File

@ -89,6 +89,15 @@ admin_pass = get_password 'user', node['openstack']['identity']['ad
end
end
# Create role for heat template defined users
heat_stack_user_role = node['openstack']['integration-test']['heat_stack_user_role']
openstack_identity_register "Create '#{heat_stack_user_role}' Role for template defined users" do
auth_uri auth_uri
bootstrap_token bootstrap_token
role_name heat_stack_user_role
action :create_role
end
git '/opt/tempest' do
repository 'https://github.com/openstack/tempest'
reference 'master'

View File

@ -116,6 +116,16 @@ describe 'openstack-integration-test::setup' do
)
end
it 'creats heat stack owner role' do
expect(chef_run).to create_role_openstack_identity_register(
"Create 'heat_stack_owner' Role for template defined users"
).with(
auth_uri: 'http://127.0.0.1:35357/v2.0',
bootstrap_token: 'bootstrap-token',
role_name: 'heat_stack_owner'
)
end
it 'syncs /opt/tempest from github' do
expect(chef_run).to sync_git(
'/opt/tempest'

View File

@ -167,7 +167,7 @@ savanna = False
ironic = False
ceilometer = False
horizon = True
heat = False
heat = True
swift = False
neutron = False
glance = True