
The latest version of puppet now reports these as catalog failures so this change removes the unnecessary references and the references should be updated. Change-Id: I2001f8bb91ff70cf100140c7861606db459c2ad9 Closes-Bug: #1702964 Co-Authored-By: Alex Schultz <aschultz@redhat.com>
41 lines
918 B
Ruby
41 lines
918 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'swift::keystone::dispersion' do
|
|
|
|
describe 'with default class parameters' do
|
|
|
|
it { is_expected.to contain_keystone_user('dispersion').with(
|
|
:ensure => 'present',
|
|
:password => 'dispersion_password',
|
|
:email => 'swift@localhost',
|
|
) }
|
|
|
|
it { is_expected.to contain_keystone_user_role('dispersion@services').with(
|
|
:ensure => 'present',
|
|
:roles => 'admin',
|
|
) }
|
|
end
|
|
|
|
describe 'when overriding parameters' do
|
|
|
|
let :params do
|
|
{
|
|
:auth_user => 'bar',
|
|
:auth_pass => 'foo',
|
|
:email => 'bar@example.com',
|
|
:tenant => 'dummyTenant'
|
|
}
|
|
end
|
|
|
|
it { is_expected.to contain_keystone_user('bar').with(
|
|
:ensure => 'present',
|
|
:password => 'foo',
|
|
:email => 'bar@example.com',
|
|
) }
|
|
|
|
it { is_expected.to contain_keystone_user_role('bar@dummyTenant') }
|
|
|
|
end
|
|
|
|
end
|