Merge "Remove the deprecated properties in horizon."
This commit is contained in:
commit
b3d97d1ee3
|
@ -206,10 +206,7 @@ default['openstack']['dashboard']['log_level']['django'] = 'INFO'
|
|||
|
||||
default['openstack']['dashboard']['password_autocomplete'] = 'off'
|
||||
default['openstack']['dashboard']['simple_ip_management'] = false
|
||||
default['openstack']['dashboard']['neutron']['enable_lb'] = false
|
||||
default['openstack']['dashboard']['neutron']['enable_quotas'] = true
|
||||
default['openstack']['dashboard']['neutron']['enable_firewall'] = false
|
||||
default['openstack']['dashboard']['neutron']['enable_vpn'] = false
|
||||
|
||||
# Allow for misc sections to be added to the local_settings template
|
||||
# For example: {
|
||||
|
|
|
@ -403,16 +403,14 @@ describe 'openstack-dashboard::horizon' do
|
|||
end
|
||||
|
||||
context 'neutron settings' do
|
||||
%w(enable_lb enable_quotas enable_firewall enable_vpn).each do |neutron_setting|
|
||||
it "enables the #{neutron_setting} setting when the attributes is True" do
|
||||
node.set['openstack']['dashboard']['neutron'][neutron_setting] = true
|
||||
expect(chef_run).to render_file(file.name).with_content(/^\s*\'#{neutron_setting}\': True,$/)
|
||||
end
|
||||
it 'enables the enable_quotas setting when the attributes is True' do
|
||||
node.set['openstack']['dashboard']['neutron']['enable_quotas'] = true
|
||||
expect(chef_run).to render_file(file.name).with_content(/^\s*'enable_quotas': True,$/)
|
||||
end
|
||||
|
||||
it "disables the #{neutron_setting} setting when the attributes is False" do
|
||||
node.set['openstack']['dashboard']['neutron'][neutron_setting] = false
|
||||
expect(chef_run).to render_file(file.name).with_content(/^\s*\'#{neutron_setting}\': False,$/)
|
||||
end
|
||||
it 'disables the enable_quotas setting when the attributes is False' do
|
||||
node.set['openstack']['dashboard']['neutron']['enable_quotas'] = false
|
||||
expect(chef_run).to render_file(file.name).with_content(/^\s*'enable_quotas': False,$/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -210,10 +210,7 @@ OPENSTACK_CINDER_FEATURES = {
|
|||
# services provided by neutron. Options currently available are load
|
||||
# balancer service, security groups, quotas, VPN service.
|
||||
OPENSTACK_NEUTRON_NETWORK = {
|
||||
'enable_lb': <%= node['openstack']['dashboard']['neutron']['enable_lb'] ? 'True' : 'False' %>,
|
||||
'enable_firewall': <%= node['openstack']['dashboard']['neutron']['enable_firewall'] ? 'True' : 'False' %>,
|
||||
'enable_quotas': <%= node['openstack']['dashboard']['neutron']['enable_quotas'] ? 'True' : 'False' %>,
|
||||
'enable_vpn': <%= node['openstack']['dashboard']['neutron']['enable_vpn'] ? 'True' : 'False' %>,
|
||||
# The profile_support option is used to detect if an external router can be
|
||||
# configured via the dashboard. When using specific plugins the
|
||||
# profile_support can be turned on if needed.
|
||||
|
|
Loading…
Reference in New Issue