|
|
|
@ -28,6 +28,7 @@ describe 'tripleo::profile::base::horizon' do
|
|
|
|
|
it 'should do nothing' do |
|
|
|
|
is_expected.to contain_class('tripleo::profile::base::horizon') |
|
|
|
|
is_expected.to_not contain_class('horizon') |
|
|
|
|
is_expected.to_not contain_class('horizon::dashboards::heat') |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
@ -38,6 +39,7 @@ describe 'tripleo::profile::base::horizon' do
|
|
|
|
|
|
|
|
|
|
it 'should not configure anything' do |
|
|
|
|
is_expected.to_not contain_class('horizon') |
|
|
|
|
is_expected.to_not contain_class('horizon::dashboards::heat') |
|
|
|
|
is_expected.to_not contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to_not contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
@ -51,6 +53,7 @@ describe 'tripleo::profile::base::horizon' do
|
|
|
|
|
|
|
|
|
|
it 'should trigger complete configuration' do |
|
|
|
|
is_expected.to contain_class('horizon') |
|
|
|
|
is_expected.to_not contain_class('horizon::dashboards::heat') |
|
|
|
|
is_expected.to contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
@ -64,6 +67,22 @@ describe 'tripleo::profile::base::horizon' do
|
|
|
|
|
|
|
|
|
|
it 'should trigger complete configuration' do |
|
|
|
|
is_expected.to contain_class('horizon') |
|
|
|
|
is_expected.to_not contain_class('horizon::dashboards::heat') |
|
|
|
|
is_expected.to contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context 'with step 4 and heat enabled' do |
|
|
|
|
let(:params) { { |
|
|
|
|
:step => 4, |
|
|
|
|
:bootstrap_node => 'node.example.com', |
|
|
|
|
:heat_api_enabled => true, |
|
|
|
|
} } |
|
|
|
|
|
|
|
|
|
it 'should trigger complete configuration with heat dashboard' do |
|
|
|
|
is_expected.to contain_class('horizon') |
|
|
|
|
is_expected.to contain_class('horizon::dashboards::heat') |
|
|
|
|
is_expected.to contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
|