Rewrite for testability

Testing the methods inside of the function is a complete pain.  This
moves the code out to use the PuppetX pattern and adds some basic unit
tests that validate the logic.
This commit is contained in:
Zach Leslie
2015-05-19 14:42:18 -07:00
parent f0e5e6e8a0
commit cb15ae8e70
9 changed files with 243 additions and 66 deletions

View File

@@ -4,10 +4,14 @@ group :test do
gem "rake"
gem "puppet", ENV['PUPPET_VERSION'] || '~> 3.7.0'
gem "rspec", '< 3.2.0'
gem 'rspec-core'
gem 'rspec-mocks'
gem 'rspec-expectations'
gem "rspec-puppet", :git => 'https://github.com/rodjek/rspec-puppet.git'
gem "puppetlabs_spec_helper"
gem "metadata-json-lint"
gem "rspec-puppet-facts"
gem "net-ldap"
end
group :development do