Add ceilometer profile rspec testing
authorAlex Schultz <aschultz@redhat.com>
Fri, 30 Sep 2016 15:49:35 +0000 (09:49 -0600)
committerAlex Schultz <aschultz@redhat.com>
Fri, 30 Sep 2016 21:12:24 +0000 (21:12 +0000)
commitdaebf929822aa6849e4e8c6f2e61efe1759e4f80
tree01c1690cfd5a252fb8b45175d023c51e640b22ca
parent1c725dd46f37e2b21d5e1dece467e4f5567bd761
Add ceilometer profile rspec testing

This change adds rspec testing for the ceilometer profiles. While
writing these tests, the tripleo::profile::base::ceilometer::collector
class needed to have the hiera lookups moved to class parameters to
allow for testing the possible options around the database backend.
These tests add coverage for ipv4 and ipv6 configurations for the
collector profile as well as excluding mongodb on the backend.

Change-Id: I1abae040104e8492a9fe266de74080e1e7701731
manifests/profile/base/ceilometer/collector.pp
spec/classes/tripleo_profile_base_ceilometer_api_spec.rb [new file with mode: 0644]
spec/classes/tripleo_profile_base_ceilometer_collector_spec.rb [new file with mode: 0644]
spec/classes/tripleo_profile_base_ceilometer_expirer_spec.rb [new file with mode: 0644]
spec/classes/tripleo_profile_base_ceilometer_spec.rb [new file with mode: 0644]
spec/fixtures/hieradata/default.yaml