Merge "Add Heat tests"
This commit is contained in:
commit
38c9252c98
@ -25,6 +25,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',
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -162,7 +162,7 @@ savanna = False
|
||||
ironic = False
|
||||
ceilometer = False
|
||||
horizon = True
|
||||
heat = False
|
||||
heat = True
|
||||
swift = False
|
||||
neutron = False
|
||||
glance = True
|
||||
|
Loading…
Reference in New Issue
Block a user