File tree 2 files changed +5
-23
lines changed
2 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 41
41
{
42
42
"operatingsystem" : " Scientific" ,
43
43
"operatingsystemrelease" : [
44
- " 5" ,
45
44
" 6" ,
46
45
" 7"
47
46
]
48
47
},
49
- {
50
- "operatingsystem" : " Fedora" ,
51
- "operatingsystemrelease" : [
52
- " 24" ,
53
- " 25"
54
- ]
55
- },
56
48
{
57
49
"operatingsystem" : " SLES" ,
58
50
"operatingsystemrelease" : [
63
55
{
64
56
"operatingsystem" : " Debian" ,
65
57
"operatingsystemrelease" : [
66
- " 7" ,
67
58
" 8"
68
59
]
69
60
},
Original file line number Diff line number Diff line change 398
398
context 'when choosing the default pool servers' do
399
399
case f [ :os ] [ 'family' ]
400
400
when 'RedHat'
401
- if f [ :os ] [ 'name' ] == 'Fedora'
402
- it 'uses the fedora ntp servers' do
403
- is_expected . to contain_file ( '/etc/ntp.conf' ) . with ( 'content' => %r{server \d .fedora.pool.ntp.org} )
404
- end
405
- it do
406
- is_expected . to contain_file ( '/etc/ntp/step-tickers' ) . with ( 'content' => %r{\d .fedora.pool.ntp.org} )
407
- end
408
- else
409
- it 'uses the centos ntp servers' do
410
- is_expected . to contain_file ( '/etc/ntp.conf' ) . with ( 'content' => %r{server \d .centos.pool.ntp.org} )
411
- end
412
- it do
413
- is_expected . to contain_file ( '/etc/ntp/step-tickers' ) . with ( 'content' => %r{\d .centos.pool.ntp.org} )
414
- end
401
+ it 'uses the centos ntp servers' do
402
+ is_expected . to contain_file ( '/etc/ntp.conf' ) . with ( 'content' => %r{server \d .centos.pool.ntp.org} )
403
+ end
404
+ it do
405
+ is_expected . to contain_file ( '/etc/ntp/step-tickers' ) . with ( 'content' => %r{\d .centos.pool.ntp.org} )
415
406
end
416
407
when 'Debian'
417
408
it 'uses the debian ntp servers' do
You can’t perform that action at this time.
0 commit comments