Merge "Add Heat tests"
This commit is contained in:
commit
38c9252c98
@ -25,6 +25,7 @@ default['openstack']['integration-test'] = {
|
|||||||
'alt_ssh_user' => 'cirros',
|
'alt_ssh_user' => 'cirros',
|
||||||
'ssh_user' => 'cirros',
|
'ssh_user' => 'cirros',
|
||||||
'fixed_network' => 'local_net',
|
'fixed_network' => 'local_net',
|
||||||
|
'heat_stack_user_role' => 'heat_stack_owner',
|
||||||
'user1' => {
|
'user1' => {
|
||||||
'user_name' => 'tempest_user1',
|
'user_name' => 'tempest_user1',
|
||||||
'password' => 'tempest_user1_pass',
|
'password' => 'tempest_user1_pass',
|
||||||
|
@ -89,6 +89,15 @@ admin_pass = get_password 'user', node['openstack']['identity']['ad
|
|||||||
end
|
end
|
||||||
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
|
git '/opt/tempest' do
|
||||||
repository 'https://github.com/openstack/tempest'
|
repository 'https://github.com/openstack/tempest'
|
||||||
reference 'master'
|
reference 'master'
|
||||||
|
@ -116,6 +116,16 @@ describe 'openstack-integration-test::setup' do
|
|||||||
)
|
)
|
||||||
end
|
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
|
it 'syncs /opt/tempest from github' do
|
||||||
expect(chef_run).to sync_git(
|
expect(chef_run).to sync_git(
|
||||||
'/opt/tempest'
|
'/opt/tempest'
|
||||||
|
@ -162,7 +162,7 @@ savanna = False
|
|||||||
ironic = False
|
ironic = False
|
||||||
ceilometer = False
|
ceilometer = False
|
||||||
horizon = True
|
horizon = True
|
||||||
heat = False
|
heat = True
|
||||||
swift = False
|
swift = False
|
||||||
neutron = False
|
neutron = False
|
||||||
glance = True
|
glance = True
|
||||||
|
Loading…
Reference in New Issue
Block a user