aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorAlex Schultz <aschultz@redhat.com>2016-09-21 15:21:49 -0600
committerAlex Schultz <aschultz@redhat.com>2016-09-30 15:12:05 -0600
commit1c725dd46f37e2b21d5e1dece467e4f5567bd761 (patch)
tree2bc17f542e82be8c8eb1cc1d24c6f84d11346e59 /spec/spec_helper.rb
parent1e26963bef085c7ec16b342594da6286235fe7da (diff)
Add aodh profile rspec testing
This change adds rspec testing for the aodh profile and serves as an example as to how to add in spec testing using hieradata to provide some required parameters. This testing adds improved coverage for expectations around computed configuration items as well as for conditions around the steps within the tripleo deployment Change-Id: Ic763a544289a222fea97020a98821c1e375651a3
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b06b436..4fa8cc3 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -19,6 +19,8 @@ RSpec.configure do |c|
# custom global facts for all rspec tests
add_custom_fact :concat_basedir, '/var/lib/puppet/concat'
+ # needed for testing Puppet Openstack modules
+ add_custom_fact :os_service_default, '<SERVICE DEFAULT>'
end
at_exit { RSpec::Puppet::Coverage.report! }