Skip to content

Commit

Permalink
Fix for Suse osfamily
Browse files Browse the repository at this point in the history
Capitalization was wrong which was causing test failures
  • Loading branch information
Morgan Haskel committed Sep 16, 2014
1 parent 21d12d9 commit 2d81a2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
'2.centos.pool.ntp.org',
]
}
'SuSE': {
'Suse': {
$config = $default_config
$keys_file = $default_keys_file
$driftfile = '/var/lib/ntp/drift/ntp.drift'
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/ntp_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
line = '0.debian.pool.ntp.org iburst'
when 'RedHat'
line = '0.centos.pool.ntp.org'
when 'SuSE'
when 'Suse'
line = '0.opensuse.pool.ntp.org'
when 'Gentoo'
line = '0.gentoo.pool.ntp.org'
Expand Down
6 changes: 3 additions & 3 deletions spec/classes/ntp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe 'ntp' do
let(:facts) {{ :is_virtual => 'false' }}

['Debian', 'RedHat','SuSE', 'FreeBSD', 'Archlinux', 'Gentoo', 'Gentoo (Facter < 1.7)'].each do |system|
['Debian', 'RedHat','Suse', 'FreeBSD', 'Archlinux', 'Gentoo', 'Gentoo (Facter < 1.7)'].each do |system|
context "when on system #{system}" do
if system == 'Gentoo (Facter < 1.7)'
let :facts do
Expand Down Expand Up @@ -287,9 +287,9 @@
end
end

describe "on osfamily SuSE" do
describe "on osfamily Suse" do
let :facts do
super().merge({ :osfamily => 'SuSE' })
super().merge({ :osfamily => 'Suse' })
end

it 'uses the opensuse ntp servers by default' do
Expand Down

0 comments on commit 2d81a2c

Please sign in to comment.