Merge "Debian api_uwsgi_config: Switch to :ini_setting"

This commit is contained in:
Zuul 2021-04-26 16:27:21 +00:00 committed by Gerrit Code Review
commit c9234bcaed
4 changed files with 6 additions and 28 deletions

View File

@ -1,6 +1,6 @@
Puppet::Type.type(:nova_api_metadata_uwsgi_config).provide( Puppet::Type.type(:nova_api_metadata_uwsgi_config).provide(
:openstackconfig, :ini_setting,
:parent => Puppet::Type.type(:openstack_config).provider(:ruby) :parent => Puppet::Type.type(:openstack_config).provider(:ini_setting)
) do ) do
def self.file_path def self.file_path

View File

@ -1,6 +1,6 @@
Puppet::Type.type(:nova_api_uwsgi_config).provide( Puppet::Type.type(:nova_api_uwsgi_config).provide(
:openstackconfig, :ini_setting,
:parent => Puppet::Type.type(:openstack_config).provider(:ruby) :parent => Puppet::Type.type(:openstack_config).provider(:ini_setting)
) do ) do
def self.file_path def self.file_path

View File

@ -14,19 +14,8 @@ $LOAD_PATH.push(
'inifile', 'inifile',
'lib') 'lib')
) )
$LOAD_PATH.push(
File.join(
File.dirname(__FILE__),
'..',
'..',
'..',
'fixtures',
'modules',
'openstacklib',
'lib')
)
require 'spec_helper' require 'spec_helper'
provider_class = Puppet::Type.type(:nova_api_metadata_uwsgi_config).provider(:openstackconfig) provider_class = Puppet::Type.type(:nova_api_metadata_uwsgi_config).provider(:ini_setting)
describe provider_class do describe provider_class do
it 'should default to the default setting when no other one is specified' do it 'should default to the default setting when no other one is specified' do

View File

@ -14,19 +14,8 @@ $LOAD_PATH.push(
'inifile', 'inifile',
'lib') 'lib')
) )
$LOAD_PATH.push(
File.join(
File.dirname(__FILE__),
'..',
'..',
'..',
'fixtures',
'modules',
'openstacklib',
'lib')
)
require 'spec_helper' require 'spec_helper'
provider_class = Puppet::Type.type(:nova_api_uwsgi_config).provider(:openstackconfig) provider_class = Puppet::Type.type(:nova_api_uwsgi_config).provider(:ini_setting)
describe provider_class do describe provider_class do
it 'should default to the default setting when no other one is specified' do it 'should default to the default setting when no other one is specified' do