Browse Source

Merge "Debian api_uwsgi_config: Switch to :ini_setting"

master
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
205995b2ff
3 changed files with 5 additions and 14 deletions
  1. +2
    -2
      lib/puppet/provider/aodh_api_uwsgi_config/ini_setting.rb
  2. +2
    -0
      spec/spec_helper.rb
  3. +1
    -12
      spec/unit/provider/aodh_api_uwsgi_config/ini_setting_spec.rb

+ 2
- 2
lib/puppet/provider/aodh_api_uwsgi_config/ini_setting.rb View File

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


+ 2
- 0
spec/spec_helper.rb View File

@ -1,3 +1,5 @@
# Load libraries from openstacklib here to simulate how they live together in a real puppet run (for provider unit tests)
$LOAD_PATH.push(File.join(File.dirname(__FILE__), 'fixtures', 'modules', 'openstacklib', 'lib'))
require 'puppetlabs_spec_helper/module_spec_helper'
require 'shared_examples'
require 'puppet-openstack_spec_helper/facts'


spec/unit/provider/aodh_api_uwsgi_config/openstackconfig_spec.rb → spec/unit/provider/aodh_api_uwsgi_config/ini_setting_spec.rb View File


Loading…
Cancel
Save