@@ -189,7 +189,7 @@ describe 'failure cases' do
|
|||||||
end
|
end
|
||||||
# C14717
|
# C14717
|
||||||
# C14719
|
# C14719
|
||||||
it 'should work as normal when passed java_alternative and path' do
|
it 'should fail on debian when passed fake java_alternative and path' do
|
||||||
pp = <<-EOS
|
pp = <<-EOS
|
||||||
class { 'java':
|
class { 'java':
|
||||||
java_alternative => 'whatever',
|
java_alternative => 'whatever',
|
||||||
@@ -197,6 +197,10 @@ describe 'failure cases' do
|
|||||||
}
|
}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
apply_manifest(pp, :catch_failures => true)
|
if fact('osfamily') == 'Debian'
|
||||||
|
apply_manifest(pp, :expect_failures => true)
|
||||||
|
else
|
||||||
|
apply_manifest(pp, :catch_failures => true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user