Test fix for RHEL with alternatives
Alternatives support was added in #89, but the test wasn't updated to expect failures when invalid alternatives are passed to RHEL systems.
This commit is contained in:
@@ -195,7 +195,7 @@ describe 'failure cases' do
|
|||||||
# C14717
|
# C14717
|
||||||
# C14719
|
# C14719
|
||||||
# C14725
|
# C14725
|
||||||
it 'should fail on debian when passed fake java_alternative and path' do
|
it 'should fail on debian or RHEL when passed fake java_alternative and path' do
|
||||||
pp = <<-EOS
|
pp = <<-EOS
|
||||||
class { 'java':
|
class { 'java':
|
||||||
java_alternative => 'whatever',
|
java_alternative => 'whatever',
|
||||||
@@ -203,7 +203,7 @@ describe 'failure cases' do
|
|||||||
}
|
}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
if fact('osfamily') == 'Debian'
|
if fact('osfamily') == 'Debian' or fact('osfamily') == 'RedHat'
|
||||||
apply_manifest(pp, :expect_failures => true)
|
apply_manifest(pp, :expect_failures => true)
|
||||||
else
|
else
|
||||||
apply_manifest(pp, :catch_failures => true)
|
apply_manifest(pp, :catch_failures => true)
|
||||||
|
|||||||
Reference in New Issue
Block a user