]>
gitweb.fluxo.info Git - puppet-stdlib.git/log
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
spec_helper: implement an easy way for specs to confine to puppet version
Usage:
describe 'puppet3 behaviour', :unless => RSpec.configuration.puppet_future do
describe 'puppet4 behaviour', :if => RSpec.configuration.puppet_future do
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Add the missing symlinks to get puppet 4 pickup the functions from the environmentpath
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
root all the gitignore patterns to avoid unintentional matches
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Remove duplicate rake task and enable metadata.json linting
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.
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Workaround the broken rspec-mocks support in rspec-puppet
David Schmitt [Mon, 1 Jun 2015 11:21:58 +0000 (12:21 +0100)]
Enable bundler caching on travis
David Schmitt [Sat, 30 May 2015 13:33:27 +0000 (14:33 +0100)]
Merge pull request #465 from igalic/patch-1
simplify mac address regex
Igor Galić [Fri, 29 May 2015 18:13:21 +0000 (20:13 +0200)]
simplify mac address regex
let the computer do the counting and repetition and case
David Schmitt [Fri, 29 May 2015 09:21:41 +0000 (10:21 +0100)]
Merge pull request #463 from CENGN/fix/master/file_line_multiple_after
(MODULES-2071) Patch file_line provider to use multiple with after
Raymond Maika [Fri, 29 May 2015 04:27:08 +0000 (00:27 -0400)]
(MODULES-2071) Refactor file_line provider to contain logic to handle 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.
TP Honey [Thu, 28 May 2015 12:29:43 +0000 (13:29 +0100)]
Merge pull request #461 from DavidS/validate-hashes
validate_integer, validate_numeric: explicitely reject hashes in arrays
David Schmitt [Wed, 27 May 2015 19:05:01 +0000 (20:05 +0100)]
validate_integer, validate_numeric: explicitely reject hashes in arrays
Without this patch, Ruby 1.8's Hash#to_s behaviour causes [{1=>2}] to be
treated as "12" when validating values.
Hunter Haugen [Wed, 27 May 2015 15:14:19 +0000 (08:14 -0700)]
Add ability to unittest puppet 4
TP Honey [Tue, 26 May 2015 14:48:22 +0000 (15:48 +0100)]
Merge pull request #460 from DavidS/fix-fqdn_rotate-seed
fqdn_rotate: reset srand seed correctly on old ruby versions
David Schmitt [Tue, 12 May 2015 14:01:55 +0000 (15:01 +0100)]
fqdn_rotate: reset srand seed correctly on old ruby versions
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.
Bryan Jen [Thu, 21 May 2015 17:42:32 +0000 (10:42 -0700)]
Merge pull request #454 from elyscape/document_facts.d_cache
(FM-2130) Document new location of facts.d cache
Morgan Haskel [Thu, 21 May 2015 17:41:41 +0000 (10:41 -0700)]
Merge pull request #455 from hunner/change_type_of_test
Remove all the pops stuff
Morgan Haskel [Thu, 21 May 2015 17:20:40 +0000 (10:20 -0700)]
Merge pull request #458 from ghoneycutt/patch-1
Update CHANGELOG.md
Garrett Honeycutt [Wed, 20 May 2015 19:16:45 +0000 (15:16 -0400)]
Update CHANGELOG.md
Bryan Jen [Thu, 14 May 2015 22:08:52 +0000 (15:08 -0700)]
Merge pull request #456 from jtappa/readme-edits
DOC-1504: Readme edits
Jorie Tappa [Tue, 5 May 2015 00:23:16 +0000 (17:23 -0700)]
DOC-1504: README edits
Hunter Haugen [Tue, 12 May 2015 22:03:27 +0000 (15:03 -0700)]
Remove all the pops stuff
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
Eli Young [Mon, 11 May 2015 18:12:15 +0000 (11:12 -0700)]
(FM-2130) Document new location of facts.d cache
David Schmitt [Thu, 7 May 2015 10:03:39 +0000 (11:03 +0100)]
Merge pull request #449 from puppetlabs/modulesync_updates
sync via modulesync
Morgan Haskel [Wed, 6 May 2015 21:10:40 +0000 (14:10 -0700)]
sync via modulesync
TP Honey [Wed, 6 May 2015 12:55:22 +0000 (13:55 +0100)]
Merge pull request #448 from DavidS/fix_range
range(): fix TypeError(can't convert nil into Integer) when using range ...
David Schmitt [Wed, 6 May 2015 09:13:27 +0000 (10:13 +0100)]
range(): fix TypeError(can't convert nil into Integer) when using range syntax
David Schmitt [Wed, 6 May 2015 08:48:31 +0000 (09:48 +0100)]
Merge pull request #447 from elyscape/fix_range
Restore removed functionality to range()
David Schmitt [Wed, 6 May 2015 08:11:37 +0000 (09:11 +0100)]
Merge pull request #446 from elyscape/fix_pw_hash
Fix pw_hash() on JRuby < 1.7.17
Eli Young [Tue, 5 May 2015 22:52:31 +0000 (15:52 -0700)]
range: Clean up and clarify function contents
Eli Young [Tue, 5 May 2015 22:44:08 +0000 (15:44 -0700)]
Revert "range: remove dead code"
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
Eli Young [Tue, 5 May 2015 22:16:35 +0000 (15:16 -0700)]
pw_hash: Fix functionality on JRuby < 1.7.17
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
TP Honey [Tue, 5 May 2015 13:35:48 +0000 (14:35 +0100)]
Merge pull request #443 from DavidS/prep-work-for-new-specs
Prep work for new specs
David Schmitt [Wed, 29 Apr 2015 11:13:08 +0000 (12:13 +0100)]
validate_augeas: fix URL to docs
David Schmitt [Wed, 22 Apr 2015 23:21:21 +0000 (16:21 -0700)]
range: remove dead code
Since a ParseError is always thrown for zero arguments, the if and all
dependent code can be removed.
David Schmitt [Wed, 22 Apr 2015 23:04:00 +0000 (16:04 -0700)]
pw_hash: avoid ruby magic when running on java
David Schmitt [Tue, 5 May 2015 09:53:04 +0000 (10:53 +0100)]
spec_helper: Remove unneccesary stubbing
This only roots all Facter instances into memory, while something already
creates a new Facter instance each run.
David Schmitt [Tue, 5 May 2015 12:30:54 +0000 (13:30 +0100)]
spec_helper: use proper mocha import to avoid warning
David Schmitt [Wed, 15 Apr 2015 23:46:09 +0000 (16:46 -0700)]
spec_helper: set parser config if requested
David Schmitt [Thu, 9 Apr 2015 14:56:43 +0000 (15:56 +0100)]
spec_helper_acceptance: fix FUTURE_PARSER usage
Use the more common "yes", instead of "true" to detect FUTURE_PARSER.
David Schmitt [Wed, 15 Apr 2015 23:55:28 +0000 (16:55 -0700)]
specs: move function specs to where rspec-puppet expects them
David Schmitt [Thu, 23 Apr 2015 23:37:01 +0000 (16:37 -0700)]
specs: loosen certain error expectations to make tests pass on future parser
Hunter Haugen [Mon, 20 Apr 2015 17:21:40 +0000 (10:21 -0700)]
Merge pull request #441 from mrzarquon/change_stdlib_to_include
uses include type class declaration
Chris Barker [Mon, 20 Apr 2015 17:06:00 +0000 (10:06 -0700)]
uses include type class declaration
previous behavior used class { 'stdlib::stages':} which isn't singleton and could cause duplication resource declaration on the stages class.
Since many community modules work by calling 'include stdlib' we should make stdlib's include of stages singleton as well.
TP Honey [Sat, 18 Apr 2015 19:51:17 +0000 (20:51 +0100)]
Merge pull request #440 from DavidS/fix-error-message
fqdn_rand_string: fix argument error message
David Schmitt [Fri, 17 Apr 2015 21:24:40 +0000 (14:24 -0700)]
fqdn_rand_string: fix argument error message
Morgan Haskel [Thu, 16 Apr 2015 18:55:42 +0000 (11:55 -0700)]
Merge pull request #439 from puppetlabs/4.6.x
4.6.x
Morgan Haskel [Thu, 16 Apr 2015 17:48:10 +0000 (10:48 -0700)]
Merge pull request #314 from amateo/feature/loadyaml_check_file
Check if file exists before loading with loadyaml. If not, return nil
Bryan Jen [Tue, 14 Apr 2015 22:26:49 +0000 (15:26 -0700)]
Merge pull request #438 from hunner/fix_date
Fix the 4.6.0 release date
Hunter Haugen [Tue, 14 Apr 2015 22:24:50 +0000 (15:24 -0700)]
Fix the 4.6.0 release date
Morgan Haskel [Tue, 14 Apr 2015 18:41:51 +0000 (11:41 -0700)]
Merge pull request #437 from hunner/release_4.6.0
Prep for 4.6.0
Hunter Haugen [Tue, 14 Apr 2015 18:39:22 +0000 (11:39 -0700)]
Prep for 4.6.0
Angel L. Mateo [Mon, 13 Apr 2015 07:27:03 +0000 (09:27 +0200)]
test case for when the file does not exist
Hunter Haugen [Fri, 10 Apr 2015 18:58:09 +0000 (11:58 -0700)]
Merge pull request #434 from bmjen/modules-2474
Modules-2474: Only runs enhanced salts functions test on systems that ...
Bryan Jen [Fri, 10 Apr 2015 18:38:15 +0000 (11:38 -0700)]
Modules-2474: Only runs enhanced salts functional test on systems that support it.
Bryan Jen [Fri, 10 Apr 2015 17:05:02 +0000 (10:05 -0700)]
Merge pull request #433 from cmurphy/fix_acceptance
Fix acceptance tests for #405
Colleen Murphy [Fri, 10 Apr 2015 16:09:46 +0000 (09:09 -0700)]
Fix acceptance tests for #405
This fixes the acceptance tests by:
- Ensuring the fqdn_rand_string spec is passed undef as the second
parameter so that the seed is not used as the charset
- Ensuring the pw_hash spec is passed the key specifying the type of
hash, rather than the value that will be used to generate the
password
- Expecting puppet to report nil instead of empty string for undef
passwords
- Removing the fqdn_rand_base64 test because there is no such function
David Schmitt [Fri, 10 Apr 2015 12:28:48 +0000 (13:28 +0100)]
Merge pull request #425 from jeffcoat/validate_augeas_spec
Fix off-by-one error in validate_augeas_spec.rb that was causing rspec failure
Even without the gem installed always, this is helpful to avoid errors should augeas be enabled/installed due to something else.
Morgan Haskel [Thu, 9 Apr 2015 23:47:34 +0000 (16:47 -0700)]
Merge pull request #431 from bmjen/file-line-refactor
File_line checks provided after param if no match is found
Morgan Haskel [Thu, 9 Apr 2015 22:53:41 +0000 (15:53 -0700)]
Merge pull request #432 from cmurphy/fix_acceptance_undefined_var
Fix unsupported platforms variable name in tests
Colleen Murphy [Thu, 9 Apr 2015 22:47:04 +0000 (15:47 -0700)]
Fix unsupported platforms variable name in tests
unsupported_platforms is not a valid identifier, and trying to use it
causes acceptance tests to error out before running any tests. The
correct identifier for the unsupported platforms constants is
UNSUPPORTED_PLATFORMS.
Travis Fields [Thu, 9 Apr 2015 18:02:29 +0000 (11:02 -0700)]
Add spec tests and pulled in PR #427
Changed append line to open in 'w' mode and have to rewrite lines in order to append new line
Bryan Jen [Thu, 9 Apr 2015 18:30:22 +0000 (11:30 -0700)]
file_line honors after if match not found.
Hunter Haugen [Thu, 9 Apr 2015 19:13:34 +0000 (12:13 -0700)]
Merge pull request #430 from mhaskel/gjngeldenhuis-docupdate
Clarifying behaviour of attributes and adding an extra example.
Gerrard Geldenhuis [Fri, 24 Oct 2014 14:41:58 +0000 (15:41 +0100)]
Clarifying behaviour of attributes and adding an extra example.
Hunter Haugen [Thu, 9 Apr 2015 17:45:38 +0000 (10:45 -0700)]
Merge pull request #405 from elyscape/feature/fqdn_rand_strings
(MODULES-1715) Add FQDN-based random string generator
Hunter Haugen [Thu, 9 Apr 2015 17:43:34 +0000 (10:43 -0700)]
Merge pull request #408 from elyscape/feature/pw_hash
(MODULES-1737) Add pw_hash() function
Morgan Haskel [Thu, 9 Apr 2015 17:07:24 +0000 (10:07 -0700)]
Merge pull request #429 from DavidS/modulesync-configs-update
Update Travis CI job from current modulesync_configs
David Schmitt [Wed, 8 Apr 2015 12:46:56 +0000 (13:46 +0100)]
Update Travis CI job from current modulesync_configs
Eli Young [Tue, 3 Feb 2015 00:41:38 +0000 (16:41 -0800)]
(MODULES-1737) Add pw_hash() function
Eli Young [Tue, 27 Jan 2015 03:17:53 +0000 (19:17 -0800)]
(MODULES-1715) Add fqdn_rand string generators
TP Honey [Mon, 30 Mar 2015 09:22:40 +0000 (10:22 +0100)]
Merge pull request #428 from nibalizer/links_in_readme
Make each function a link in the readme
Spencer Krum [Sun, 29 Mar 2015 03:27:06 +0000 (20:27 -0700)]
Make each function a link in the readme
Using a ####, github will create a link. This makes it so I can link
someone directly to the function I want to show them.
Justin Stoller [Thu, 26 Mar 2015 23:59:50 +0000 (16:59 -0700)]
Merge pull request #426 from anodelman/master
(BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...
Alice Nodelman [Tue, 24 Mar 2015 22:07:42 +0000 (15:07 -0700)]
(BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...
puppetdb, etc
- support for BEAKER_VERSION and BEAKER_RSPEC_VERSION in gemfile
Mark Jeffcoat [Tue, 10 Mar 2015 22:43:51 +0000 (17:43 -0500)]
Fix off-by-one error in validate_augeas_spec.rb that was causing rspec failure.
Morgan Haskel [Fri, 6 Mar 2015 18:07:13 +0000 (10:07 -0800)]
Merge pull request #404 from roderickm/PUP-3856_isnt_domain_name
(MODULES-1670) Do not match dotted-quad IP address as domain name
TP Honey [Fri, 6 Mar 2015 17:56:09 +0000 (17:56 +0000)]
Merge pull request #423 from cyberious/GemfileBeaker
Add ability to pin beaker versions
Rod Montgomery [Thu, 15 Jan 2015 21:10:33 +0000 (15:10 -0600)]
If present, top-level domain must be alphabetic
See RFC 1123, Section 2.1
http://tools.ietf.org/html/rfc1123#section-2
Travis Fields [Thu, 5 Mar 2015 22:12:57 +0000 (14:12 -0800)]
Add ability to pin beaker versions
TP Honey [Thu, 5 Mar 2015 19:15:41 +0000 (19:15 +0000)]
Merge pull request #422 from cyberious/assert_private
Assert private
Travis Fields [Thu, 5 Mar 2015 19:01:31 +0000 (11:01 -0800)]
Add private function back and forward to assert_private with deprecation warning
Hunter Haugen [Thu, 5 Mar 2015 19:00:36 +0000 (11:00 -0800)]
Merge pull request #369 from rfugina/dirname_typecheck
Dirname typecheck
Franz Pletz [Fri, 19 Dec 2014 11:25:21 +0000 (12:25 +0100)]
Rename private() to assert_private()
As mentioned in #270, private is a reserved keyword in the future parser
which is to be released with Puppet 4. As it stands, this function is
not useable with the future parser so it needs to renamed.
This is a breaking change.
Hunter Haugen [Thu, 5 Mar 2015 18:57:43 +0000 (10:57 -0800)]
Merge pull request #375 from poikilotherm/feature/master/validate_integer_and_numeric
(MODULES-560) Add new functions validate_numeric() and validate_integer().
TP Honey [Thu, 5 Mar 2015 15:45:39 +0000 (15:45 +0000)]
Merge pull request #420 from mhaskel/improveprefix
Add support for hashes in the prefix function
Morgan Haskel [Wed, 4 Mar 2015 23:08:23 +0000 (15:08 -0800)]
Merge pull request #410 from robruma/range_documentation_update
Adding markdown for the range() function's 3rd argument
robruma [Thu, 12 Feb 2015 01:27:30 +0000 (20:27 -0500)]
Adding markdown for the range() function's 3rd argument
Adding markdown for the range() function's 3rd argument
Adding markdown for the range() function's 3rd argument
Stefan Goethals [Wed, 4 Jun 2014 13:12:22 +0000 (06:12 -0700)]
Add support for hashes in the prefix function
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
Morgan Haskel [Wed, 4 Mar 2015 00:06:46 +0000 (16:06 -0800)]
Merge pull request #310 from kainz/master
URI.escape for the array case was incorrect.
Bryon Roché [Fri, 8 Aug 2014 23:59:37 +0000 (16:59 -0700)]
URI.escape for the array case was incorrect.
The previous commit to uriescape() changed the implementation to use the ruby default escape list for URI.escape(), but did not change the call triggered when uriescape() was called on an array, triggering ruby errors.
Morgan Haskel [Tue, 3 Mar 2015 23:59:06 +0000 (15:59 -0800)]
Merge pull request #407 from adamcrews/ceiling_function
Add a ceiling function to complement the floor function.
Morgan Haskel [Mon, 2 Mar 2015 19:09:33 +0000 (11:09 -0800)]
Merge pull request #419 from cyberious/master
Loosen the restrictions of upcase and allow for recursion of the objects...
Travis Fields [Sat, 28 Feb 2015 01:40:32 +0000 (17:40 -0800)]
Loosen the restrictions of upcase and allow for recursion of the objects and only worry if the object responds to upcase
Morgan Haskel [Thu, 26 Feb 2015 18:51:10 +0000 (10:51 -0800)]
Merge pull request #418 from cyberious/UpcaseHash
Fix issue with 1.8.7 and upcase
Travis Fields [Thu, 26 Feb 2015 18:13:28 +0000 (10:13 -0800)]
Fix issue with Ruby 1.8.7 which did not allow for the return in an each_pair of the hash
Morgan Haskel [Thu, 26 Feb 2015 00:58:39 +0000 (16:58 -0800)]
Merge pull request #417 from cyberious/UpcaseHash
Add Hash to upcase
Travis Fields [Wed, 25 Feb 2015 19:39:27 +0000 (11:39 -0800)]
Add Hash to upcase
Morgan Haskel [Thu, 19 Feb 2015 21:59:26 +0000 (13:59 -0800)]
Merge pull request #415 from nibalizer/master
Remove travis badge
Spencer Krum [Thu, 19 Feb 2015 21:58:14 +0000 (13:58 -0800)]
Remove travis badge