puppet-neutron/spec/unit/provider
Yanis Guenane e956eba829 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in neutron_config has been centralized in
openstack_config.

The same logic applies for all the neutron resources that edit a
ini-like configuration file.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

neutron_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

neutron_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  neutron_config { 'DEFAULT/foo' : value => $myvar }
} else {
  neutron_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

neutron_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

neutron_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: I3f972ecbde3719fe71a82a64f894d41f6ea7e842
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-09-09 09:36:27 +02:00
..
neutron_agent_linuxbridge Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_agent_ovs Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_api_config Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_dhcp_agent_config Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_fwaas_service_config Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_l3_agent_config Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_l3_ovs_bridge spec: updates for rspec-puppet 2.x and rspec 3.x 2015-03-19 16:57:59 +01:00
neutron_lbaas_agent_config Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_metadata_agent_config Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_metering_agent_config Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_network Fix 'shared' parameter check in neutron_network provider 2015-08-29 23:01:42 +03:00
neutron_plugin_cisco Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plugin_cisco_credentials Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plugin_cisco_db_conn Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plugin_cisco_l2network Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plugin_midonet Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plugin_ml2 Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plugin_nvp Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plugin_opencontrail Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plugin_plumgrid Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_plumlib_plumgrid Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_port Include tests that test the use of create. 2015-06-30 22:57:42 +00:00
neutron_router Merge "Fix parsing of network gateway id for router" 2015-07-08 15:22:23 +00:00
neutron_router_interface Include tests that test the use of create. 2015-06-30 22:57:42 +00:00
neutron_subnet Include tests that test the use of create. 2015-06-30 22:57:42 +00:00
neutron_vpnaas_agent_config Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
nova_admin_tenant_id_setter Reflect provider change in puppet-openstacklib 2015-09-09 09:36:27 +02:00
neutron_spec.rb Fix avalaible/available typo 2015-05-15 15:23:00 -04:00