Skip to content

Commit ee9d955

Browse files
author
Morgan Haskel
committed
Test fix for RHEL with alternatives
Alternatives support was added in puppetlabs#89, but the test wasn't updated to expect failures when invalid alternatives are passed to RHEL systems.
1 parent 16ec5a4 commit ee9d955

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎spec/acceptance/install_spec.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,15 @@ class { 'java':
195195
# C14717
196196
# C14719
197197
# C14725
198-
it 'should fail on debian when passed fake java_alternative and path' do
198+
it 'should fail on debian or RHEL when passed fake java_alternative and path' do
199199
pp = <<-EOS
200200
class { 'java':
201201
java_alternative => 'whatever',
202202
java_alternative_path => '/whatever',
203203
}
204204
EOS
205205

206-
if fact('osfamily') == 'Debian'
206+
if fact('osfamily') == 'Debian' or fact('osfamily') == 'RedHat'
207207
apply_manifest(pp, :expect_failures => true)
208208
else
209209
apply_manifest(pp, :catch_failures => true)

0 commit comments

Comments
 (0)