Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-08-14 | (MODULES-2410) Add new functions dos2unix and unix2dos | Nigel Gibbs | |
2015-08-13 | Merge pull request #499 from jearls/2370-use-match-for-ensure-absent | Bryan Jen | |
[MODULES-2370] allow `match` parameter to influence `ensure => absent` behavior. | |||
2015-08-11 | Add puppet_version back to spec_helper | Hunter Haugen | |
2015-08-11 | Sometimes this exits 1 | Hunter Haugen | |
2015-08-11 | Fix extraneous end | Hunter Haugen | |
2015-08-10 | Prep 4.8.0 | Hunter Haugen | |
2015-08-06 | allow `match` parameter to influence `ensure => absent` behavior. | Johnson Earls | |
Split the `destroy` method of the file_type::ruby provider into two private methods: `handle_destroy_line` which is the same as the previous `destroy` method, and `handle_destroy_with_match` which will destroy any line which matches the `match` parameter, raising an error if multiple lines match and the `multiple` parameter is not `true`. This new behavior is only used if the new boolean parameter `match_for_absence` is `true` (it defaults to `false`). | |||
2015-08-04 | (MODULES-2316) Change file_type boolean parameter to symbols | Dominic Cleal | |
Puppet's boolean parameter type is only available in Puppet 3.3 and higher, so change file_type's new "replace" parameter to a regular parameter with true and false as possible values. This matches the existing "multiple" parameter. | |||
2015-07-31 | Merge pull request #483 from nibalizer/load_metadata_json | Hunter Haugen | |
Add load_metadata_json function | |||
2015-07-30 | Add load_metadata_json function | Spencer Krum | |
This function loads the metadata.json into a puppet variable. This enables a number of neat things such as: * Which version of the module am I using? 2.x? 3.x? * Which author of the module am I using? puppetlabs? example42? | |||
2015-07-30 | Merge pull request #494 from CENGN/fix/master/file_line_replace | Bryan Jen | |
[#puppethack] Adding replace attribute to file_line | |||
2015-07-30 | Merge pull request #495 from puppetlabs/4.7.x | Bryan Jen | |
4.7.x | |||
2015-07-30 | (MODULES-2024) Adding replace attribute to file_line | Raymond Maika | |
2015-07-30 | (maint) use puppet's utility function instead of API that's not available on ↵ | David Schmitt | |
all rubies | |||
2015-07-22 | (main) clean up fqdn_rand acceptance tests to work on windows | David Schmitt | |
2015-07-22 | (maint) Remove failing acceptance test for ensure_packages | David Schmitt | |
This only duplicates what's already being tested in ensure_packages_spec.rb but doesn't work on all our supported platforms. | |||
2015-07-22 | adding support for hash in the size function | gcmalloc | |
2015-07-21 | disable pw_hash test on sles, as it only supports md5 | Hunter Haugen | |
2015-07-20 | (maint) Fix test to not assume is_pe fact on > 4.0.0 puppet | Travis Fields | |
2015-07-09 | Use puppet_install_helper | Morgan Haskel | |
2015-07-09 | Add validate_slength's optional 3rd arg to README | Alexander Fisher | |
2015-06-19 | AIO uses puppet 4 so should return true for is_future_parser_enabled | Morgan Haskel | |
2015-06-12 | (maint) getvar: update spec to match implementation | David Schmitt | |
2015-06-08 | (maint) update PUPPET_VERSION default to be 3.8.1 | Justin Stoller | |
2015-06-04 | Merge pull request #469 from hunner/fix_time | Morgan Haskel | |
Fix time() on 1.8.7 | |||
2015-06-04 | Fix time() on 1.8.7 | Hunter Haugen | |
The time() function takes an argument of a timezone, and always returns time in epoch format. The epoch format is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. This means that it is universally the same regardless of timezones. I don't know what the timezone argument is supposed to do, and it is not documented. So lets just make 1.8.7 work like > 1.8.7 | |||
2015-06-02 | fqdn_rand_string: Add acceptance tests for custom charsets | Eli Young | |
2015-06-02 | fqdn_rotate: Add acceptance tests for custom seeds | Eli Young | |
2015-06-01 | fqdn_rotate: Add tests for custom seeds | Eli Young | |
2015-06-01 | fqdn_rotate: Don't use the value itself as part of the random seed | Eli Young | |
Previously, the random number generator was seeded with the array or string to be rotated in addition to any values specifically provided for seeding. This behavior is potentially insecure in that it allows an attacker who can modify the source data to choose the post-shuffle order. | |||
2015-06-01 | Remove unused puppet_spec code | David Schmitt | |
This is copied and changed code from an older version of puppet's internal test setup code. It does not work with puppet4. | |||
2015-06-01 | Convert tests to use plain rspec-puppet | David Schmitt | |
Tests in the new style produces the following documentation output: abs should not eq nil should run abs() and raise an Puppet::ParseError should run abs(-34) and return 34 should run abs("-34") and return 34 should run abs(34) and return 34 should run abs("34") and return 34 | |||
2015-06-01 | spec_helper: implement an easy way for specs to confine to puppet version | David Schmitt | |
Usage: describe 'puppet3 behaviour', :unless => RSpec.configuration.puppet_future do describe 'puppet4 behaviour', :if => RSpec.configuration.puppet_future do | |||
2015-06-01 | Add the missing symlinks to get puppet 4 pickup the functions from the ↵ | David Schmitt | |
environmentpath | |||
2015-06-01 | Workaround the broken rspec-mocks support in rspec-puppet | David Schmitt | |
2015-05-29 | Merge pull request #463 from CENGN/fix/master/file_line_multiple_after | David Schmitt | |
(MODULES-2071) Patch file_line provider to use multiple with after | |||
2015-05-29 | (MODULES-2071) Refactor file_line provider to contain logic to handle ↵ | Raymond Maika | |
parameter multiple in function handle_create_with_after Without this, file_line resource without the `match` parameter but with the `after` param will throw an error if there are multiple matches for the after expression. This patch creates the handling for the `multiple` parameter in handle_create_with_after. This allows you to add a line after the `after` expression if it appears at multiple points in a file. Updated reference to `file_line` in the README to reflect that the multiple parameter can be set when using `after` and/or `match` as the matching regex. | |||
2015-05-27 | validate_integer, validate_numeric: explicitely reject hashes in arrays | David Schmitt | |
Without this patch, Ruby 1.8's Hash#to_s behaviour causes [{1=>2}] to be treated as "12" when validating values. | |||
2015-05-12 | Remove all the pops stuff | Hunter Haugen | |
The rspec-puppet matchers don't allow to check the return types, but this is a pretty rare thing to need to do anyway, so probably not worth patching rspec-puppet | |||
2015-05-06 | range(): fix TypeError(can't convert nil into Integer) when using range syntax | David Schmitt | |
2015-05-05 | spec_helper: Remove unneccesary stubbing | David Schmitt | |
This only roots all Facter instances into memory, while something already creates a new Facter instance each run. | |||
2015-05-05 | spec_helper: use proper mocha import to avoid warning | David Schmitt | |
2015-05-05 | spec_helper: set parser config if requested | David Schmitt | |
2015-05-05 | spec_helper_acceptance: fix FUTURE_PARSER usage | David Schmitt | |
Use the more common "yes", instead of "true" to detect FUTURE_PARSER. | |||
2015-05-05 | specs: move function specs to where rspec-puppet expects them | David Schmitt | |
2015-04-23 | specs: loosen certain error expectations to make tests pass on future parser | David Schmitt | |
2015-04-16 | Merge pull request #314 from amateo/feature/loadyaml_check_file | Morgan Haskel | |
Check if file exists before loading with loadyaml. If not, return nil | |||
2015-04-13 | test case for when the file does not exist | Angel L. Mateo | |
2015-04-10 | Modules-2474: Only runs enhanced salts functional test on systems that ↵ | Bryan Jen | |
support it. | |||
2015-04-10 | Merge pull request #433 from cmurphy/fix_acceptance | Bryan Jen | |
Fix acceptance tests for #405 |