David Schmitt
9bae8356fd
pw_hash: avoid ruby magic when running on java
2015-05-05 13:30:57 +01:00
David Schmitt
6a0a6153d5
spec_helper: Remove unneccesary stubbing
...
This only roots all Facter instances into memory, while something already
creates a new Facter instance each run.
2015-05-05 13:30:57 +01:00
David Schmitt
24680aceec
spec_helper: use proper mocha import to avoid warning
2015-05-05 13:30:54 +01:00
David Schmitt
29f09e2181
spec_helper: set parser config if requested
2015-05-05 13:27:46 +01:00
David Schmitt
c0cf14e774
spec_helper_acceptance: fix FUTURE_PARSER usage
...
Use the more common "yes", instead of "true" to detect FUTURE_PARSER.
2015-05-05 13:27:46 +01:00
David Schmitt
a3016c45c5
specs: move function specs to where rspec-puppet expects them
2015-05-05 13:27:46 +01:00
David Schmitt
b664fec30f
specs: loosen certain error expectations to make tests pass on future parser
2015-04-23 16:40:53 -07:00
Hunter Haugen
c7a23b226d
Merge pull request #441 from mrzarquon/change_stdlib_to_include
...
uses include type class declaration
2015-04-20 10:21:40 -07:00
Chris Barker
cf499315c1
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.
2015-04-20 10:06:00 -07:00
TP Honey
2a8d7acd7e
Merge pull request #440 from DavidS/fix-error-message
...
fqdn_rand_string: fix argument error message
2015-04-18 20:51:17 +01:00
David Schmitt
c27513463d
fqdn_rand_string: fix argument error message
2015-04-17 14:24:40 -07:00
Morgan Haskel
2c6cff6f72
Merge pull request #439 from puppetlabs/4.6.x
...
4.6.x
2015-04-16 11:55:42 -07:00
Morgan Haskel
8a1d1e2f34
Merge pull request #314 from amateo/feature/loadyaml_check_file
...
Check if file exists before loading with loadyaml. If not, return nil
2015-04-16 10:48:10 -07:00
Bryan Jen
73474b00b5
Merge pull request #438 from hunner/fix_date
...
Fix the 4.6.0 release date
2015-04-14 15:26:49 -07:00
Hunter Haugen
ba4033ed25
Fix the 4.6.0 release date
2015-04-14 15:24:50 -07:00
Morgan Haskel
4c90e4df52
Merge pull request #437 from hunner/release_4.6.0
...
Prep for 4.6.0
2015-04-14 11:41:51 -07:00
Hunter Haugen
5382ca0176
Prep for 4.6.0
2015-04-14 11:39:22 -07:00
Angel L. Mateo
ac24e7acc7
test case for when the file does not exist
2015-04-13 09:27:03 +02:00
Hunter Haugen
59b3fb4472
Merge pull request #434 from bmjen/modules-2474
...
Modules-2474: Only runs enhanced salts functions test on systems that ...
2015-04-10 11:58:09 -07:00
Bryan Jen
601e2e2574
Modules-2474: Only runs enhanced salts functional test on systems that support it.
2015-04-10 11:38:15 -07:00
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