Skip to content

Commit 8208f9a

Browse files
Make the rspec test pass on 4.0
1 parent f2622e8 commit 8208f9a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.fixtures.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ fixtures:
33
stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
44
apache:
55
repo: "git://github.com/puppetlabs/puppetlabs-apache.git"
6-
ref: '1.0.1'
76
puppetdb: "git://github.com/puppetlabs/puppetlabs-puppetdb.git"
87
inifile: "git://github.com/puppetlabs/puppetlabs-inifile.git"
98
concat: "git://github.com/ripienaar/puppet-concat.git"
10-
'file_concat':
9+
file_concat:
1110
repo: 'git://github.com/electrical/puppet-lib-file_concat.git'
12-
ref: '1.0.1'
13-
apt: "git://github.com/puppetlabs/puppetlabs-apt.git"
11+
apt:
12+
repo: "git://github.com/puppetlabs/puppetlabs-apt"
13+
ref: "1.8.0"
1414
symlinks:
1515
puppet: "#{source_dir}"

spec/classes/puppet_master_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
:notify => 'Service[httpd]'
7373
)
7474
should contain_class('puppet::storeconfigs').with(
75-
:before => 'Anchor[puppet::master::end]'
75+
:before => ['Anchor[puppet::master::end]']
7676
)
7777
should contain_class('puppet::passenger').with(
78-
:before => 'Anchor[puppet::master::end]'
78+
:before => ['Anchor[puppet::master::end]']
7979
)
8080
should contain_ini_setting('puppetmasterenvironmentpath').with(
8181
:ensure => 'absent',
@@ -240,10 +240,10 @@
240240
:notify => 'Service[httpd]'
241241
)
242242
should contain_class('puppet::storeconfigs').with(
243-
:before => 'Anchor[puppet::master::end]'
243+
:before => ['Anchor[puppet::master::end]']
244244
)
245245
should contain_class('puppet::passenger').with(
246-
:before => 'Anchor[puppet::master::end]'
246+
:before => ['Anchor[puppet::master::end]']
247247
)
248248
should contain_ini_setting('puppetmasterenvironmentpath').with(
249249
:ensure => 'absent'

spec/classes/puppet_passenger_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:puppet_ssldir => '/var/lib/puppet/ssl',
1111
:certname => 'test.test.com',
1212
:conf_dir => '/etc/puppet',
13-
:dns_alt_names => ['puppet'],
13+
:dns_alt_names => 'puppet',
1414
}
1515
end
1616
context 'on Debian' do
@@ -30,7 +30,7 @@
3030
should contain_exec('Certificate_Check').with(
3131
:command =>
3232
"puppet cert clean #{params[:certname]} ; " +
33-
"puppet certificate --ca-location=local --dns_alt_names=#{params[:dns_alt_names].join(',')} generate #{params[:certname]}" +
33+
"puppet certificate --ca-location=local --dns_alt_names=#{params[:dns_alt_names]} generate #{params[:certname]}" +
3434
" && puppet cert sign --allow-dns-alt-names #{params[:certname]}" +
3535
" && puppet certificate --ca-location=local find #{params[:certname]}",
3636
:unless => "/bin/ls #{params[:puppet_ssldir]}/certs/#{params[:certname]}.pem",

0 commit comments

Comments
 (0)