include policy class in api.pp
Like we do in other modules, include barbican::policy class in barbican::api so users can define policies without taking care of the class. Change-Id: I5eb4fb17c3ba4a644efdc67ef4b60615c8e6831e
This commit is contained in:
parent
5a2ee335c2
commit
7da4ea0784
|
@ -316,6 +316,7 @@ class barbican::api (
|
|||
include ::barbican::db
|
||||
include ::barbican::api::logging
|
||||
include ::barbican::client
|
||||
include ::barbican::policy
|
||||
|
||||
if !is_service_default($rabbit_host) or
|
||||
!is_service_default($rabbit_hosts) or
|
||||
|
|
|
@ -136,6 +136,7 @@ describe 'barbican::api' do
|
|||
it { is_expected.to contain_class('barbican::deps') }
|
||||
it { is_expected.to contain_class('barbican::api::logging') }
|
||||
it { is_expected.to contain_class('barbican::db') }
|
||||
it { is_expected.to contain_class('barbican::policy') }
|
||||
|
||||
it { is_expected.to contain_package('barbican-api').with(
|
||||
:tag => ['openstack', 'barbican-package'],
|
||||
|
|
Loading…
Reference in New Issue