5
0
Fork 0
Commit-Graph

19 Commits

Autor SHA1 Nachricht Datum
Hunter Haugen
f77ab45542 Fix acceptance test for removed section
The 199 PR updated ini_setting to remove empty sections after the last
value is removed. This fixes the acceptance test.
2016-03-01 16:23:06 -08:00
Stepan Stipl
af4b3f287a Acceptance tests for show_diff 2016-01-15 20:47:07 +00:00
Stepan Stipl
4853927093 Implemented show_diff parameter, with similar behaviour as show_diff on
type file

show_diff => true (default) prints diff to logs
show_diff => md5 prints only md5 hashes instead of actual values
show_diff => false redacts any information about values

Global show_diff config takes priotiry over this one.
2016-01-15 20:47:07 +00:00
Gary Larizza
d452e6ca1e Support a space as a key_val_separator
Previously, trying to use a space as a key_val_separator in the ini_setting
type would fail because #strip is being called on the key_val_separator
attribute, which completely kills the space. This commit checks to see
if key_val_separator has been set as a space, and, if so, sets the `k_v_s`
variable in the library to be ' ' instead of ''.  This in turn allows the
provider to check for existing values (instead of inserting the value every
time Puppet is run).
2015-08-06 13:56:16 -07:00
Mike Dorman
c784253096 MODULES-1599 Match only on space and tab whitespace after k/v separator
The previous match for \s would also match on newlines.  This caused
existing settings with blank values to have the newline considered part
of the whitespace surrounding the separator.  When such settings are
set with a value, the value ends up on the next line.

Also adding acceptance test for this particular situation.
2015-06-18 15:06:44 -06:00
Bryan Jen
69bee205c4 Adds acceptance testing for setting names containing white space in the middle 2015-03-31 15:28:42 -07:00
Travis Fields
8e2689bdbb Fixes issues due to serverspec upgrade and usage of obsolete should contain method for files 2015-02-09 13:16:55 -08:00
Morgan Haskel
be5fc47f00 Merge pull request #141 from petems/dry_up_spec_test
Replace code with pre-existing shared_example
2015-01-15 08:49:00 -08:00
Jonathan Tripathy
a21dd813b2 Removed pending unit tests.
This functionality does not exist and thus was cluttering the output.
2015-01-13 17:02:10 -08:00
Peter Souter
9280f81be5 Replace code with pre-existing shared_example
Noticed this when I was testing the module out with a FreeBSD host this code duplicates the shared_example used in the rest of the spec, so I DRY'd it up! 👍
2015-01-11 19:45:27 -08:00
Morgan Haskel
15f972d092 Rebase/fix the flexible k/v separator. 2014-12-18 10:45:30 -08:00
Morgan Haskel
842915d93f OSX doesn't support the -e flag to echo. 2014-06-12 11:04:09 -04:00
Hunter Haugen
6fb89f5850 Remove stderr checks because of deprecations 2014-05-29 09:56:09 -07:00
Ashley Penney
2aceaef207 Convert to using .tmpdir instead of a hardcoded /tmp, so this works
on Windows too.
2014-02-27 23:09:24 +00:00
Hunter Haugen
eda726f09c It is actually all solaris 2014-02-27 14:18:59 -08:00
Hunter Haugen
7de1e3d7a4 Correct syntax 2014-02-27 13:16:23 -08:00
Hunter Haugen
49433d02bf Avoid multi-line grep on Solaris 10 2014-02-27 12:53:46 -08:00
Hunter Haugen
17a59b2b13 AIX exits with 2 on file doesn't exist. 2014-02-26 13:14:19 -08:00
Hunter Haugen
eda78abb6e (FM-161) Add beaker tests for parameter coverage 2014-01-27 10:33:45 -08:00