summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Price <chris@pupppetlabs.com>2012-08-16 19:30:58 -0700
committerChris Price <chris@pupppetlabs.com>2012-08-16 21:50:20 -0700
commit4f0e7264e3c3089e489d05bbb4371c449b0ed78d (patch)
treefea109b142afa7bc9233dd651d849cd61cc1d327 /tests
parentbf06644b4a38a40a36c629e7dc619fba4c35c730 (diff)
downloadpuppet-inifile-4f0e7264e3c3089e489d05bbb4371c449b0ed78d.tar.gz
puppet-inifile-4f0e7264e3c3089e489d05bbb4371c449b0ed78d.tar.bz2
final commit for 0.0.1 release
* Updated README * Fixed a small bug that would be triggered if the file specified by `path` didn't exist. * Added a smoke test manifest
Diffstat (limited to 'tests')
-rw-r--r--tests/ini_setting.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ini_setting.pp b/tests/ini_setting.pp
new file mode 100644
index 0000000..598bedf
--- /dev/null
+++ b/tests/ini_setting.pp
@@ -0,0 +1,16 @@
+ini_setting { "sample setting":
+ path => '/tmp/foo.ini',
+ section => 'foo',
+ setting => 'foosetting',
+ value => 'FOO!',
+ ensure => present,
+}
+
+ini_setting { "sample setting2":
+ path => '/tmp/foo.ini',
+ section => 'bar',
+ setting => 'barsetting',
+ value => 'BAR!',
+ ensure => present,
+ require => Ini_setting["sample setting"],
+}