Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-06-02 | Merge pull request #462 from elyscape/fix/fqdn_rotate_seeds_with_argument | David Schmitt | |
fqdn_rotate: Don't use the value itself as part of the random seed | |||
2015-06-01 | fqdn_rotate: Add tests for custom seeds | Eli Young | |
2015-06-01 | fqdn_rotate: Improve documentation | 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 | Merge pull request #464 from DavidS/modules-1882-convert-to-rspec | Hunter Haugen | |
(MODULES-1882) convert function tests to rspec-puppet | |||
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 | root all the gitignore patterns to avoid unintentional matches | David Schmitt | |
2015-06-01 | Remove duplicate rake task and enable metadata.json linting | David Schmitt | |
The :validate task is already provided by puppetlabs_spec_helper/rake_tasks and would check files twice. The metadata.json linting is just good form. | |||
2015-06-01 | Workaround the broken rspec-mocks support in rspec-puppet | David Schmitt | |
2015-06-01 | Enable bundler caching on travis | David Schmitt | |
2015-05-30 | Merge pull request #465 from igalic/patch-1 | David Schmitt | |
simplify mac address regex | |||
2015-05-29 | simplify mac address regex | Igor Galić | |
let the computer do the counting and repetition and case | |||
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-28 | Merge pull request #461 from DavidS/validate-hashes | TP Honey | |
validate_integer, validate_numeric: explicitely reject hashes in arrays | |||
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-27 | Add ability to unittest puppet 4 | Hunter Haugen | |
2015-05-26 | Merge pull request #460 from DavidS/fix-fqdn_rotate-seed | TP Honey | |
fqdn_rotate: reset srand seed correctly on old ruby versions | |||
2015-05-26 | fqdn_rotate: reset srand seed correctly on old ruby versions | David Schmitt | |
Without this, the global seed is reseeded on every use of fqdn_rotate, which is a waste. Older rubies might even use a time-base seed which adversly impacts the quality of the RNG. | |||
2015-05-21 | Merge pull request #454 from elyscape/document_facts.d_cache | Bryan Jen | |
(FM-2130) Document new location of facts.d cache | |||
2015-05-21 | Merge pull request #455 from hunner/change_type_of_test | Morgan Haskel | |
Remove all the pops stuff | |||
2015-05-21 | Merge pull request #458 from ghoneycutt/patch-1 | Morgan Haskel | |
Update CHANGELOG.md | |||
2015-05-20 | Update CHANGELOG.md | Garrett Honeycutt | |
2015-05-14 | Merge pull request #456 from jtappa/readme-edits | Bryan Jen | |
DOC-1504: Readme edits | |||
2015-05-14 | DOC-1504: README edits | Jorie Tappa | |
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-11 | (FM-2130) Document new location of facts.d cache | Eli Young | |
2015-05-07 | Merge pull request #449 from puppetlabs/modulesync_updates | David Schmitt | |
sync via modulesync | |||
2015-05-06 | sync via modulesync | Morgan Haskel | |
2015-05-06 | Merge pull request #448 from DavidS/fix_range | TP Honey | |
range(): fix TypeError(can't convert nil into Integer) when using range ... | |||
2015-05-06 | range(): fix TypeError(can't convert nil into Integer) when using range syntax | David Schmitt | |
2015-05-06 | Merge pull request #447 from elyscape/fix_range | David Schmitt | |
Restore removed functionality to range() | |||
2015-05-06 | Merge pull request #446 from elyscape/fix_pw_hash | David Schmitt | |
Fix pw_hash() on JRuby < 1.7.17 | |||
2015-05-05 | range: Clean up and clarify function contents | Eli Young | |
2015-05-05 | Revert "range: remove dead code" | Eli Young | |
This reverts commit 063c58a992c1b5441b7e7b2a2e4886531035bb25, which actually removed non-dead code. Specifically, it removed the ability to make calls such as `range('2..3')`, `range('2...3')`, and `range('2-3')`. cf. https://github.com/puppetlabs/puppetlabs-stdlib/pull/443#commitcomment-11055565 | |||
2015-05-05 | pw_hash: Fix functionality on JRuby < 1.7.17 | Eli Young | |
The previous change to this function broke it on JRuby before 1.7.17 by attempting to use a variable that wasn't defined (`salt`). To fix this, define `salt` ahead of time and use that instead of building the salt later. cf. https://github.com/puppetlabs/puppetlabs-stdlib/pull/443#discussion_r29718588 | |||
2015-05-05 | Merge pull request #443 from DavidS/prep-work-for-new-specs | TP Honey | |
Prep work for new specs | |||
2015-05-05 | validate_augeas: fix URL to docs | David Schmitt | |
2015-05-05 | range: remove dead code | David Schmitt | |
Since a ParseError is always thrown for zero arguments, the if and all dependent code can be removed. | |||
2015-05-05 | pw_hash: avoid ruby magic when running on java | 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-20 | Merge pull request #441 from mrzarquon/change_stdlib_to_include | Hunter Haugen | |
uses include type class declaration |