Merge pull request #60 from puppetlabs/empty_package

Remove empty package test and validation
This commit is contained in:
Hunter Haugen
2014-08-13 13:12:29 -07:00
2 changed files with 0 additions and 27 deletions

View File

@@ -47,9 +47,6 @@ class java(
include java::params include java::params
validate_re($version, 'present|installed|latest|^[.+_0-9a-zA-Z:-]+$') validate_re($version, 'present|installed|latest|^[.+_0-9a-zA-Z:-]+$')
if $package != undef {
validate_slength($package,255,1)
}
if has_key($java::params::java, $distribution) { if has_key($java::params::java, $distribution) {
$default_package_name = $java::params::java[$distribution]['package'] $default_package_name = $java::params::java[$distribution]['package']

View File

@@ -173,28 +173,4 @@ describe 'failure cases' do
apply_manifest(pp, :expect_failures => true) apply_manifest(pp, :expect_failures => true)
end end
# C14716
it 'should fail to install java with a blank package' do
pp = <<-EOS
class { 'java':
package => '',
}
EOS
apply_manifest(pp, :expect_failures => true)
end
context 'non-debian systems', :if => fact('osfamily') != 'Debian' do
# C14717
it 'should fail to install java with a blank package' do
pp = <<-EOS
class { 'java':
package => '',
}
EOS
apply_manifest(pp, :expect_failures => true)
end
end
end end