Commit graph

1256 commits

Author SHA1 Message Date
Bryan Jen
cf7dbef1e8 Merge pull request #433 from cmurphy/fix_acceptance
Fix acceptance tests for #405
2015-04-10 10:05:02 -07:00
Colleen Murphy
65116dafd5 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
2015-04-10 09:15:15 -07:00
David Schmitt
afec0ab981 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.
2015-04-10 13:28:48 +01:00
Morgan Haskel
5ee6e960f6 Merge pull request #431 from bmjen/file-line-refactor
File_line checks provided after param if no match is found
2015-04-09 16:47:34 -07:00
Morgan Haskel
acf57bbe31 Merge pull request #432 from cmurphy/fix_acceptance_undefined_var
Fix unsupported platforms variable name in tests
2015-04-09 15:53:41 -07:00
Colleen Murphy
e43f058296 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.
2015-04-09 15:53:16 -07:00
Travis Fields
0af0d7e539 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
2015-04-09 15:24:39 -07:00
Bryan Jen
35303ce0f7 file_line honors after if match not found. 2015-04-09 14:44:52 -07:00
Hunter Haugen
f2fa4fbd62 Merge pull request #430 from mhaskel/gjngeldenhuis-docupdate
Clarifying behaviour of attributes and adding an extra example.
2015-04-09 12:13:34 -07:00
Gerrard Geldenhuis
ee2225b63c Clarifying behaviour of attributes and adding an extra example. 2015-04-09 11:13:42 -07:00
Hunter Haugen
8fba5c058b Merge pull request #405 from elyscape/feature/fqdn_rand_strings
(MODULES-1715) Add FQDN-based random string generator
2015-04-09 10:45:38 -07:00
Hunter Haugen
487e8d4cd7 Merge pull request #408 from elyscape/feature/pw_hash
(MODULES-1737) Add pw_hash() function
2015-04-09 10:43:34 -07:00
Morgan Haskel
5ecfe2f676 Merge pull request #429 from DavidS/modulesync-configs-update
Update Travis CI job from current modulesync_configs
2015-04-09 10:07:24 -07:00
David Schmitt
9a1fee6c68 Update Travis CI job from current modulesync_configs 2015-04-08 13:46:56 +01:00
Eli Young
23be4020dd (MODULES-1737) Add pw_hash() function 2015-04-05 17:21:17 -07:00
Eli Young
a82266c256 (MODULES-1715) Add fqdn_rand string generators 2015-03-31 17:33:04 -07:00
TP Honey
14a02ea21e Merge pull request #428 from nibalizer/links_in_readme
Make each function a link in the readme
2015-03-30 10:22:40 +01:00
Spencer Krum
c297bd80e3 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.
2015-03-28 20:34:42 -07:00
Justin Stoller
2762bb6c93 Merge pull request #426 from anodelman/master
(BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...
2015-03-26 16:59:50 -07:00
Alice Nodelman
2381f7cff4 (BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...
puppetdb, etc

- support for BEAKER_VERSION and BEAKER_RSPEC_VERSION in gemfile
2015-03-24 15:07:42 -07:00
Mark Jeffcoat
3fec51ac65 Fix off-by-one error in validate_augeas_spec.rb that was causing rspec failure. 2015-03-10 17:43:51 -05:00
Morgan Haskel
4dab70b305 Merge pull request #404 from roderickm/PUP-3856_isnt_domain_name
(MODULES-1670) Do not match dotted-quad IP address as domain name
2015-03-06 10:07:13 -08:00
TP Honey
40b62071b3 Merge pull request #423 from cyberious/GemfileBeaker
Add ability to pin beaker versions
2015-03-06 17:56:09 +00:00
Rod Montgomery
ee13438d2a If present, top-level domain must be alphabetic
See RFC 1123, Section 2.1
http://tools.ietf.org/html/rfc1123#section-2
2015-03-05 21:51:12 -06:00
Travis Fields
e319b85046 Add ability to pin beaker versions 2015-03-05 14:14:13 -08:00
TP Honey
bf8e5b0573 Merge pull request #422 from cyberious/assert_private
Assert private
2015-03-05 19:15:41 +00:00
Travis Fields
4a68b224c4 Add private function back and forward to assert_private with deprecation warning 2015-03-05 11:12:51 -08:00
Hunter Haugen
668b3c31b5 Merge pull request #369 from rfugina/dirname_typecheck
Dirname typecheck
2015-03-05 11:00:36 -08:00
Franz Pletz
56d815bcfc 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.
2015-03-05 10:59:31 -08:00
Hunter Haugen
41965fd2c9 Merge pull request #375 from poikilotherm/feature/master/validate_integer_and_numeric
(MODULES-560) Add new functions validate_numeric() and validate_integer().
2015-03-05 10:57:43 -08:00
TP Honey
706b9e8205 Merge pull request #420 from mhaskel/improveprefix
Add support for hashes in the prefix function
2015-03-05 15:45:39 +00:00
Morgan Haskel
20d49394fb Merge pull request #410 from robruma/range_documentation_update
Adding markdown for the range() function's 3rd argument
2015-03-04 15:08:23 -08:00
robruma
380cb02a65 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
2015-03-04 18:01:29 -05:00
Stefan Goethals
0236cd51bc Add support for hashes in the prefix function
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2015-03-03 16:20:55 -08:00
Morgan Haskel
b8547b7c29 Merge pull request #310 from kainz/master
URI.escape for the array case was incorrect.
2015-03-03 16:06:46 -08:00
Bryon Roché
41baef8502 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.
2015-03-03 16:05:47 -08:00
Morgan Haskel
055083c117 Merge pull request #407 from adamcrews/ceiling_function
Add a ceiling function to complement the floor function.
2015-03-03 15:59:06 -08:00
Morgan Haskel
6d07a6a809 Merge pull request #419 from cyberious/master
Loosen the restrictions of upcase and allow for recursion of the objects...
2015-03-02 11:09:33 -08:00
Travis Fields
85e81f9bdf Loosen the restrictions of upcase and allow for recursion of the objects and only worry if the object responds to upcase 2015-03-02 10:45:43 -08:00
Morgan Haskel
cd6568039f Merge pull request #418 from cyberious/UpcaseHash
Fix issue with 1.8.7 and upcase
2015-02-26 10:51:10 -08:00
Travis Fields
419f51bdd9 Fix issue with Ruby 1.8.7 which did not allow for the return in an each_pair of the hash 2015-02-26 10:13:28 -08:00
Morgan Haskel
1ccc4f5e0e Merge pull request #417 from cyberious/UpcaseHash
Add Hash to upcase
2015-02-25 16:58:39 -08:00
Travis Fields
7021b1f55c Add Hash to upcase 2015-02-25 11:39:27 -08:00
Morgan Haskel
3da8d17390 Merge pull request #415 from nibalizer/master
Remove travis badge
2015-02-19 13:59:26 -08:00
Spencer Krum
ef539388cb Remove travis badge 2015-02-19 13:58:14 -08:00
Travis Fields
647e9bcbf9 Merge pull request #413 from mhaskel/fix
Check for string before copying
2015-02-19 12:02:15 -08:00
Morgan Haskel
b693c870d2 Check for string before copying 2015-02-19 12:01:26 -08:00
Morgan Haskel
fcd2f53908 Merge pull request #412 from seanmil/MODULES-1771
(MODULES-1771) Don't modify input to is_domain_name()
2015-02-19 11:33:34 -08:00
Sean Millichamp
1321d586a8 (MODULES-1771) Don't modify input to is_domain_name()
Fix is_domain_name() so it dup's its incoming argument
to avoid changing the original with a later chomp!
2015-02-14 10:49:26 -05:00
Colleen Murphy
ad5727266a Merge pull request #406 from elyscape/fix/fqdn_rotate_pollutes_global_seed
(MODULES-1738) Don't modify the global seed in fqdn_rotate()
2015-02-12 15:45:23 -08:00