Skip to content

Commit

Permalink
Support Ubuntu 22.04 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisongthb committed Apr 12, 2023
1 parent 9d013ae commit 233ce87
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions spec/classes/openldap_client_spec.rb
Expand Up @@ -15,13 +15,24 @@

case facts[:osfamily]
when 'Debian'
it {
is_expected.to contain_class('openldap::client').with(package: 'libldap-2.4-2',
file: '/etc/ldap/ldap.conf',
base: nil,
uri: nil,
tls_cacert: nil)
}
case facts[:os]['release']['major']
when '22.04'
it {
is_expected.to contain_class('openldap::client').with(package: 'libldap-2.5-0',
file: '/etc/ldap/ldap.conf',
base: nil,
uri: nil,
tls_cacert: nil)
}
else
it {
is_expected.to contain_class('openldap::client').with(package: 'libldap-2.4-2',
file: '/etc/ldap/ldap.conf',
base: nil,
uri: nil,
tls_cacert: nil)
}
end
when 'RedHat'
it {
is_expected.to contain_class('openldap::client').with(package: 'openldap',
Expand Down

0 comments on commit 233ce87

Please sign in to comment.