2015-07-28 19:41:43 -07:00
|
|
|
require 'spec_helper_acceptance'
|
|
|
|
|
|
|
|
describe 'openstack_extras::auth_file' do
|
|
|
|
|
|
|
|
context 'default parameters' do
|
|
|
|
|
|
|
|
it 'should work with no errors' do
|
|
|
|
pp= <<-EOS
|
2019-12-08 23:16:30 +01:00
|
|
|
class { 'openstack_extras::auth_file':
|
2015-07-28 19:41:43 -07:00
|
|
|
password => 'secret',
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
|
|
|
|
|
|
|
|
# Run it twice and test for idempotency
|
|
|
|
apply_manifest(pp, :catch_failures => true)
|
|
|
|
apply_manifest(pp, :catch_changes => true)
|
|
|
|
end
|
|
|
|
|
|
|
|
describe file('/root/openrc') do
|
|
|
|
it { is_expected.to be_file }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|