]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commit
Add rspec-puppet-facts to the spec_helper
authorAlex Schultz <aschultz@mirantis.com>
Thu, 7 Jan 2016 04:28:00 +0000 (21:28 -0700)
committerDenis Egorenko <degorenko@mirantis.com>
Thu, 14 Jan 2016 17:32:37 +0000 (20:32 +0300)
commit4e5dc348b44ddaccbba698372ca80678c4c385f6
tree5ee423ab8c42bb70595232451d07f640c43bcf16
parentf6e0e94acf5ca8b578120b1008e0913cd2634968
Add rspec-puppet-facts to the spec_helper

This change adds the rspec-puppet-facts gem to the spec helper so that
we can centralize the management of the base operating systems that we
support. rspec-puppet-facts allows us to simplify our unit tests and
provides a more complete list of Operating Systems and their associated
facts for the unit tests.  With this change we can now loop over and
test CentOS, Debian, Fedora, RedHat, and Ubuntu by simply providing a
list of supported os to rspec-puppet-facts.

Additionally this change includes a central object for managing our
supported os list for rspec-puppet-facts and providing our default facts
like os_service_default. This central object should replace the usage of
@default_facts within the unit tests for each module.

Change-Id: Ie420cd2599fa3e88e6471bf3e9fce20d48f19805
Gemfile
spec/spec_helper.rb