I have a module that I'm refactoring that manages NTP servers and clients. The client portion of the module performs a puppetdb (Forge Module dalen-puppetdbquery) lookup to find the local NTP stratum 2 servers to populate into the client's /etc/ntp.conf file. Works great in real life but the module fails spec testing with an error:
Failure/Error: require 'puppet/util/puppetdb'
I am using the bundler to load necessary gem files locally. Here is my Gemfile:
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 3.3']
gem 'puppet', puppetversion
gem 'puppetlabs_spec_helper', '>= 0.1.0'
gem 'puppet-lint', '>= 0.3.2'
gem 'facter', '>= 1.7.0'
gem 'rspec', '>= 0.0.0'
gem 'puppetdb-ruby'
gem 'puppetdb-terminus'
gem 'puppetdb_query'
gem 'ruby-puppetdb'
gem "simplecov-rcov"
gem "ci_reporter"
So, what am I missing?