summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider
AgeCommit message (Collapse)Author
2012-10-02Make value a propertyDan Bode
This commit converts value to a property so that it can be managed and modified when a file already has a value set. It was previously treating the line creation state the same as the update case, which is not in alignment with Puppet's model.
2012-09-20Add validation for key_val_separatorChris Price
For now, the key_val_separator is required to contain exactly one '=' character. This commit simply validates that that is the case.
2012-09-19Allow overriding separator string between key/val pairsChris Price
This introduces a new parameter, 'key_val_separator', which can be set in order to override the string that is used as a separator between the key/value pair of a setting line. The default is ' = ', but you could set the param to '=' if you don't want to include whitespace in your settings file.
2012-09-04Added tests for sections with colonsJoe Topjian
2012-08-17Add support for "global" section at beginning of fileChris Price
This commit does the following: * Fixes a bug in ExternalIterator * Adds support for a "global" section before the first named section at the beginning of the INI file * Improves test coverage
2012-08-14Fixed regex to match sections and settings with non alphanumericStephen
characters. Fixed writing to file without any sections at all. Fixed exists checking for variable type by always casting to string and added all the tests for the above items.
2012-07-28First (basic) working version of ini_setting providerChris Price
2012-06-14Started writing some tests, work has been puntedChris Price