Add spec test for creation of stack domain admin

Change-Id: I05179189cc71fb2d09ad67291e61fae1708ae4b5
This commit is contained in:
Roger Luethi 2017-11-13 09:38:42 +01:00
parent 48fdd181f9
commit b3983a8bd6
1 changed files with 9 additions and 0 deletions

View File

@ -116,6 +116,15 @@ describe 'openstack-orchestration::identity_registration' do
)
end
it 'registers stack domain admin user' do
expect(chef_run).to create_openstack_user(
stack_domain_admin
).with(
password: password,
connection_params: connection_params
)
end
it do
expect(chef_run).to grant_role_openstack_user(
stack_domain_admin