-
- Downloads
Fix params validation + specs
* Move params validation to corresponding class: We only need to valide the params when they need to be set / are actually used. Since Puppet 4.6 or 4.7, stdlib's validate_string function doesn't accept undef anymore, so this has to be changed. * Remove specific error checking in specs: types checking validate_* functions have different error messages depending on the version the stdlib module, the version of puppet, maybe the version of ruby, the phase of the Moon... who knows.
Showing
- manifests/conffile.pp 0 additions, 1 deletionmanifests/conffile.pp
- manifests/config.pp 0 additions, 2 deletionsmanifests/config.pp
- manifests/files.pp 9 additions, 3 deletionsmanifests/files.pp
- manifests/hash.pp 0 additions, 3 deletionsmanifests/hash.pp
- manifests/init.pp 0 additions, 7 deletionsmanifests/init.pp
- manifests/ldap.pp 5 additions, 0 deletionsmanifests/ldap.pp
- manifests/map.pp 0 additions, 3 deletionsmanifests/map.pp
- spec/defines/postfix_conffile_spec.rb 1 addition, 1 deletionspec/defines/postfix_conffile_spec.rb
- spec/defines/postfix_config_spec.rb 3 additions, 3 deletionsspec/defines/postfix_config_spec.rb
- spec/defines/postfix_hash_spec.rb 1 addition, 1 deletionspec/defines/postfix_hash_spec.rb
- spec/defines/postfix_map_spec.rb 1 addition, 1 deletionspec/defines/postfix_map_spec.rb
- spec/defines/postfix_transport_spec.rb 4 additions, 4 deletionsspec/defines/postfix_transport_spec.rb
- spec/defines/postfix_virtual_spec.rb 3 additions, 3 deletionsspec/defines/postfix_virtual_spec.rb
- spec/spec_helper.rb 2 additions, 0 deletionsspec/spec_helper.rb
Please register or sign in to comment