12345678910111213141516171819202122232425 |
- require 'spec_helper'
- describe 'openldap::server' do
- on_supported_os.each do |os, os_facts|
- context "on #{os}" do
- let(:facts) { os_facts }
- it { is_expected.to compile.with_all_deps }
- case os_facts[:osfamily]
- when 'Debian'
- it do
- is_expected.to contain_package('slapd').with_ensure('installed')
- is_expected.to contain_package('ldap-utils').with_ensure('installed')
- is_expected.to contain_file('/var/cache/debconf/slapd.preseed').with(
- 'ensure' => 'file',
- 'owner' => 'root',
- 'group' => 'root',
- 'mode' => '0644',
- )
- end
- end
- end
- end
- end
|