Skip to content

Commit

Permalink
Additional tests - multiple ini settings creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Helen Campbell committed Jul 18, 2016
1 parent 752aa8e commit fff4597
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions .fixtures.yml
@@ -1,3 +1,4 @@
fixtures:
symlinks:
inifile: "#{source_dir}"
create_multiple_ini_settings: "#{source_dir}/spec/fixtures/create_multiple_ini_settings"
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -2,7 +2,8 @@
pkg/
Gemfile.lock
vendor/
spec/fixtures/
spec/fixtures/manifests/
spec/fixtures/modules/
.vagrant/
.bundle/
coverage/
Expand Down
2 changes: 2 additions & 0 deletions README.markdown
Expand Up @@ -449,6 +449,8 @@ Default value: '{}'.

This module has been tested on [all PE-supported platforms](https://forge.puppetlabs.com/supported#compat-matrix), and no issues have been identified. Additionally, it is tested (but not supported) on Windows 7, Mac OS X 10.9, and Solaris 12.

Due to (PUP-4709) the create_ini_settings function will cause errors when attempting to create multiple ini_settings in one go when using Puppet 4.0.x or 4.1.x. If needed, the temporary fix for this can be found here: https://github.com/puppetlabs/puppetlabs-inifile/pull/196.

##Development

Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can't access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.
Expand Down
5 changes: 5 additions & 0 deletions spec/classes/create_multiple_ini_settings_spec.rb
@@ -0,0 +1,5 @@
require 'spec_helper'

describe 'create_multiple_ini_settings' do
it { is_expected.to compile }
end
15 changes: 15 additions & 0 deletions spec/fixtures/create_multiple_ini_settings/manifests/init.pp
@@ -0,0 +1,15 @@
class create_multiple_ini_settings {

$defaults = { 'path' => '/tmp/foo.ini' }
$example = {
'section1' => {
'setting1' => 'value1',
'settings2' => {
'ensure' => 'absent'
}
}
}
create_ini_settings($example, $defaults)

}

0 comments on commit fff4597

Please sign in to comment.