|
|
|
@ -29,6 +29,7 @@ describe 'tripleo::profile::base::horizon' 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') |
|
|
|
|
is_expected.to_not contain_class('horizon::dashboards::octavia') |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
@ -40,6 +41,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('horizon::dashboards::octavia') |
|
|
|
|
is_expected.to_not contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to_not contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
@ -54,6 +56,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_not contain_class('horizon::dashboards::octavia') |
|
|
|
|
is_expected.to contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
@ -68,6 +71,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_not contain_class('horizon::dashboards::octavia') |
|
|
|
|
is_expected.to contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
@ -83,6 +87,23 @@ describe 'tripleo::profile::base::horizon' do
|
|
|
|
|
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_not contain_class('horizon::dashboards::octavia') |
|
|
|
|
is_expected.to contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context 'with step 4 and octavia enabled' do |
|
|
|
|
let(:params) { { |
|
|
|
|
:step => 4, |
|
|
|
|
:bootstrap_node => 'node.example.com', |
|
|
|
|
:octavia_api_enabled => true, |
|
|
|
|
} } |
|
|
|
|
|
|
|
|
|
it 'should trigger complete configuration with heat dashboard' do |
|
|
|
|
is_expected.to contain_class('horizon') |
|
|
|
|
is_expected.to_not contain_class('horizon::dashboards::heat') |
|
|
|
|
is_expected.to contain_class('horizon::dashboards::octavia') |
|
|
|
|
is_expected.to contain_class('apache::mod::remoteip') |
|
|
|
|
is_expected.to contain_class('apache::mod::status') |
|
|
|
|
end |
|
|
|
|