]> gitweb.fluxo.info Git - puppet-stdlib.git/log
puppet-stdlib.git
10 years agoMerge pull request #484 from mhaskel/use_puppet_install_helper
TP Honey [Fri, 10 Jul 2015 16:17:09 +0000 (17:17 +0100)]
Merge pull request #484 from mhaskel/use_puppet_install_helper

Use puppet_install_helper

10 years agoUse puppet_install_helper
Morgan Haskel [Fri, 10 Jul 2015 00:11:10 +0000 (17:11 -0700)]
Use puppet_install_helper

10 years agoMerge pull request #475 from DavidS/document-puppet4-compat
TP Honey [Thu, 9 Jul 2015 17:30:26 +0000 (18:30 +0100)]
Merge pull request #475 from DavidS/document-puppet4-compat

Document puppet 4 compatability in 4.6

10 years agoMerge pull request #482 from DavidS/document_validate_slength_3rd_arg
Morgan Haskel [Thu, 9 Jul 2015 17:20:37 +0000 (10:20 -0700)]
Merge pull request #482 from DavidS/document_validate_slength_3rd_arg

Add validate_slength's optional 3rd arg to README

10 years agoMerge pull request #479 from mklette/master
Hunter Haugen [Thu, 9 Jul 2015 17:20:01 +0000 (10:20 -0700)]
Merge pull request #479 from mklette/master

catch and rescue from looking up non-existent facts

10 years agoAdd validate_slength's optional 3rd arg to README
Alexander Fisher [Mon, 6 Jul 2015 16:03:49 +0000 (17:03 +0100)]
Add validate_slength's optional 3rd arg to README

10 years agocatch and rescue from looking up non-existent facts when looking for 'kind'
Mathias Klette [Wed, 24 Jun 2015 12:58:48 +0000 (14:58 +0200)]
catch and rescue from looking up non-existent facts when looking for 'kind'

facter (2.x) only provides facts without interface suffix for
 * ipaddress
 * netmask

'macaddress' and 'network' facts will always have the related interface
name appended. in turns lookupvar throws errors when strict_variables is
enabled.

10 years agoMerge pull request #478 from drewfisher314/ticket/2134-add-solaris-12
David Schmitt [Mon, 22 Jun 2015 09:27:10 +0000 (10:27 +0100)]
Merge pull request #478 from drewfisher314/ticket/2134-add-solaris-12

Add support for Solaris 12

10 years agoAdd support for Solaris 12
Drew Fisher [Fri, 19 Jun 2015 23:14:21 +0000 (17:14 -0600)]
Add support for Solaris 12

10 years agoMerge pull request #477 from mhaskel/aio_fix
Travis Fields [Fri, 19 Jun 2015 21:48:16 +0000 (14:48 -0700)]
Merge pull request #477 from mhaskel/aio_fix

AIO uses puppet 4 so should return true for is_future_parser_enabled

10 years agoAIO uses puppet 4 so should return true for is_future_parser_enabled
Morgan Haskel [Fri, 19 Jun 2015 21:29:42 +0000 (14:29 -0700)]
AIO uses puppet 4 so should return true for is_future_parser_enabled

10 years agoMerge pull request #474 from DavidS/fix-getvar-specs
JT (Jonny) [Fri, 19 Jun 2015 10:13:05 +0000 (11:13 +0100)]
Merge pull request #474 from DavidS/fix-getvar-specs

(maint) getvar: update spec to match implementation

10 years agoDocument puppet 4 compatability in 4.6
David Schmitt [Thu, 18 Jun 2015 13:49:28 +0000 (14:49 +0100)]
Document puppet 4 compatability in 4.6

10 years ago(maint) getvar: update spec to match implementation
David Schmitt [Fri, 12 Jun 2015 13:42:09 +0000 (14:42 +0100)]
(maint) getvar: update spec to match implementation

10 years agoMerge pull request #470 from Yelp/getvar_future_parser
David Schmitt [Thu, 11 Jun 2015 17:23:29 +0000 (18:23 +0100)]
Merge pull request #470 from Yelp/getvar_future_parser

Also catch :undefined_variable as thrown by future parser

10 years agoMerge pull request #472 from justinstoller/maint/master/set_puppet_version
David Schmitt [Tue, 9 Jun 2015 14:49:14 +0000 (15:49 +0100)]
Merge pull request #472 from justinstoller/maint/master/set_puppet_version

(maint) update PUPPET_VERSION default to be 3.8.1

10 years ago(maint) update PUPPET_VERSION default to be 3.8.1
Justin Stoller [Tue, 9 Jun 2015 04:43:36 +0000 (21:43 -0700)]
(maint) update PUPPET_VERSION default to be 3.8.1

10 years agoMerge pull request #471 from puppetlabs/travisci_update
TP Honey [Fri, 5 Jun 2015 12:35:00 +0000 (13:35 +0100)]
Merge pull request #471 from puppetlabs/travisci_update

Updated travisci file to remove allow_failures on Puppet4

10 years agoAlso catch :undefined_variable as thrown by future parser
Tomas Doran [Fri, 5 Jun 2015 11:40:46 +0000 (12:40 +0100)]
Also catch :undefined_variable as thrown by future parser

10 years agoMerge pull request #469 from hunner/fix_time
Morgan Haskel [Thu, 4 Jun 2015 17:51:41 +0000 (10:51 -0700)]
Merge pull request #469 from hunner/fix_time

Fix time() on 1.8.7

10 years agoFix time() on 1.8.7
Hunter Haugen [Thu, 4 Jun 2015 16:40:52 +0000 (09:40 -0700)]
Fix time() on 1.8.7

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

10 years agoUpdated travisci file to remove allow_failures on Puppet4
Jonathan Tripathy [Thu, 4 Jun 2015 13:21:00 +0000 (14:21 +0100)]
Updated travisci file to remove allow_failures on Puppet4

10 years agoMerge pull request #468 from kylog/camels-all-the-way-down
David Schmitt [Wed, 3 Jun 2015 17:22:51 +0000 (18:22 +0100)]
Merge pull request #468 from kylog/camels-all-the-way-down

Fix spelling of camelcase

10 years agoMerge pull request #466 from elyscape/fix/improve_fqdn_acceptance_tests
David Schmitt [Wed, 3 Jun 2015 17:19:38 +0000 (18:19 +0100)]
Merge pull request #466 from elyscape/fix/improve_fqdn_acceptance_tests

Improve fqdn_rotate/fqdn_rand_string acceptance tests

10 years ago(doc) Fix spelling of camelcase in CHANGELOG.md
Kylo Ginsberg [Tue, 2 Jun 2015 22:32:52 +0000 (15:32 -0700)]
(doc) Fix spelling of camelcase in CHANGELOG.md

10 years agofqdn_rand_string: Add acceptance tests for custom charsets
Eli Young [Mon, 1 Jun 2015 23:46:26 +0000 (16:46 -0700)]
fqdn_rand_string: Add acceptance tests for custom charsets

10 years agofqdn_rotate: Add acceptance tests for custom seeds
Eli Young [Mon, 1 Jun 2015 23:46:08 +0000 (16:46 -0700)]
fqdn_rotate: Add acceptance tests for custom seeds

10 years agoMerge pull request #467 from DavidS/document-rspec-puppet-version-reqs
TP Honey [Tue, 2 Jun 2015 11:23:39 +0000 (12:23 +0100)]
Merge pull request #467 from DavidS/document-rspec-puppet-version-reqs

Gemfile: specify minimum rspec-puppet version

10 years agoGemfile: specify minimum rspec-puppet version
David Schmitt [Tue, 2 Jun 2015 11:21:25 +0000 (12:21 +0100)]
Gemfile: specify minimum rspec-puppet version

Only 2.2 contains all the features we're currently using. Documenting
that in the Gemfile should make that clear.

10 years agoMerge pull request #462 from elyscape/fix/fqdn_rotate_seeds_with_argument
David Schmitt [Tue, 2 Jun 2015 11:05:19 +0000 (12:05 +0100)]
Merge pull request #462 from elyscape/fix/fqdn_rotate_seeds_with_argument

fqdn_rotate: Don't use the value itself as part of the random seed

10 years agofqdn_rotate: Add tests for custom seeds
Eli Young [Mon, 1 Jun 2015 23:29:39 +0000 (16:29 -0700)]
fqdn_rotate: Add tests for custom seeds

10 years agofqdn_rotate: Improve documentation
Eli Young [Mon, 1 Jun 2015 23:09:47 +0000 (16:09 -0700)]
fqdn_rotate: Improve documentation

10 years agofqdn_rotate: Don't use the value itself as part of the random seed
Eli Young [Fri, 29 May 2015 01:15:05 +0000 (18:15 -0700)]
fqdn_rotate: Don't use the value itself as part of the random seed

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.

10 years agoMerge pull request #464 from DavidS/modules-1882-convert-to-rspec
Hunter Haugen [Mon, 1 Jun 2015 20:36:25 +0000 (13:36 -0700)]
Merge pull request #464 from DavidS/modules-1882-convert-to-rspec

(MODULES-1882) convert function tests to rspec-puppet

10 years agoRemove unused puppet_spec code
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Remove unused puppet_spec code

This is copied and changed code from an older version of puppet's internal
test setup code. It does not work with puppet4.

10 years agoConvert tests to use plain rspec-puppet
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Convert tests to use plain rspec-puppet

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

10 years agospec_helper: implement an easy way for specs to confine to puppet version
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

10 years agoAdd 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)]
Add the missing symlinks to get puppet 4 pickup the functions from the environmentpath

10 years agoroot all the gitignore patterns to avoid unintentional matches
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
root all the gitignore patterns to avoid unintentional matches

10 years agoRemove duplicate rake task and enable metadata.json linting
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.

10 years agoWorkaround the broken rspec-mocks support in rspec-puppet
David Schmitt [Mon, 1 Jun 2015 11:21:59 +0000 (12:21 +0100)]
Workaround the broken rspec-mocks support in rspec-puppet

10 years agoEnable bundler caching on travis
David Schmitt [Mon, 1 Jun 2015 11:21:58 +0000 (12:21 +0100)]
Enable bundler caching on travis

10 years agoMerge pull request #465 from igalic/patch-1
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

10 years agosimplify 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

10 years agoMerge pull request #463 from CENGN/fix/master/file_line_multiple_after
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

10 years ago (MODULES-2071) Refactor file_line provider to contain logic to handle parameter...
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.

10 years agoMerge pull request #461 from DavidS/validate-hashes
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

10 years agovalidate_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.

10 years agoAdd ability to unittest puppet 4
Hunter Haugen [Wed, 27 May 2015 15:14:19 +0000 (08:14 -0700)]
Add ability to unittest puppet 4

10 years agoMerge pull request #460 from DavidS/fix-fqdn_rotate-seed
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

10 years agofqdn_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.

10 years agoMerge pull request #454 from elyscape/document_facts.d_cache
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

10 years agoMerge pull request #455 from hunner/change_type_of_test
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

10 years agoMerge pull request #458 from ghoneycutt/patch-1
Morgan Haskel [Thu, 21 May 2015 17:20:40 +0000 (10:20 -0700)]
Merge pull request #458 from ghoneycutt/patch-1

Update CHANGELOG.md

10 years agoUpdate CHANGELOG.md
Garrett Honeycutt [Wed, 20 May 2015 19:16:45 +0000 (15:16 -0400)]
Update CHANGELOG.md

10 years agoMerge pull request #456 from jtappa/readme-edits
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

10 years agoDOC-1504: README edits
Jorie Tappa [Tue, 5 May 2015 00:23:16 +0000 (17:23 -0700)]
DOC-1504: README edits

10 years agoRemove all the pops stuff
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

10 years ago(FM-2130) Document new location of facts.d cache
Eli Young [Mon, 11 May 2015 18:12:15 +0000 (11:12 -0700)]
(FM-2130) Document new location of facts.d cache

10 years agoMerge pull request #449 from puppetlabs/modulesync_updates
David Schmitt [Thu, 7 May 2015 10:03:39 +0000 (11:03 +0100)]
Merge pull request #449 from puppetlabs/modulesync_updates

sync via modulesync

10 years agosync via modulesync
Morgan Haskel [Wed, 6 May 2015 21:10:40 +0000 (14:10 -0700)]
sync via modulesync

10 years agoMerge pull request #448 from DavidS/fix_range
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 ...

10 years agorange(): fix TypeError(can't convert nil into Integer) when using range syntax
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

10 years agoMerge pull request #447 from elyscape/fix_range
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()

10 years agoMerge pull request #446 from elyscape/fix_pw_hash
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

10 years agorange: Clean up and clarify function contents
Eli Young [Tue, 5 May 2015 22:52:31 +0000 (15:52 -0700)]
range: Clean up and clarify function contents

10 years agoRevert "range: remove dead code"
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

10 years agopw_hash: Fix functionality on JRuby < 1.7.17
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

10 years agoMerge pull request #443 from DavidS/prep-work-for-new-specs
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

10 years agovalidate_augeas: fix URL to docs
David Schmitt [Wed, 29 Apr 2015 11:13:08 +0000 (12:13 +0100)]
validate_augeas: fix URL to docs

10 years agorange: remove dead code
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.

10 years agopw_hash: avoid ruby magic when running on java
David Schmitt [Wed, 22 Apr 2015 23:04:00 +0000 (16:04 -0700)]
pw_hash: avoid ruby magic when running on java

10 years agospec_helper: Remove unneccesary stubbing
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.

10 years agospec_helper: use proper mocha import to avoid warning
David Schmitt [Tue, 5 May 2015 12:30:54 +0000 (13:30 +0100)]
spec_helper: use proper mocha import to avoid warning

10 years agospec_helper: set parser config if requested
David Schmitt [Wed, 15 Apr 2015 23:46:09 +0000 (16:46 -0700)]
spec_helper: set parser config if requested

10 years agospec_helper_acceptance: fix FUTURE_PARSER usage
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.

10 years agospecs: move function specs to where rspec-puppet expects them
David Schmitt [Wed, 15 Apr 2015 23:55:28 +0000 (16:55 -0700)]
specs: move function specs to where rspec-puppet expects them

10 years agospecs: loosen certain error expectations to make tests pass on future parser
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

10 years agoMerge pull request #441 from mrzarquon/change_stdlib_to_include
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

10 years agouses 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.

10 years agoMerge pull request #440 from DavidS/fix-error-message
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

10 years agofqdn_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

10 years agoMerge pull request #439 from puppetlabs/4.6.x
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

10 years agoMerge pull request #314 from amateo/feature/loadyaml_check_file
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

10 years agoMerge pull request #438 from hunner/fix_date
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

10 years agoFix 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

10 years agoMerge pull request #437 from hunner/release_4.6.0
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

10 years agoPrep for 4.6.0
Hunter Haugen [Tue, 14 Apr 2015 18:39:22 +0000 (11:39 -0700)]
Prep for 4.6.0

10 years agotest case for when the file does not exist
Angel L. Mateo [Mon, 13 Apr 2015 07:27:03 +0000 (09:27 +0200)]
test case for when the file does not exist

10 years agoMerge pull request #434 from bmjen/modules-2474
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 ...

10 years agoModules-2474: Only runs enhanced salts functional test on systems that support it.
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.

10 years agoMerge pull request #433 from cmurphy/fix_acceptance
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

10 years agoFix 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

10 years agoMerge pull request #425 from jeffcoat/validate_augeas_spec
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.

10 years agoMerge pull request #431 from bmjen/file-line-refactor
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

10 years agoMerge pull request #432 from cmurphy/fix_acceptance_undefined_var
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

10 years agoFix 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.

10 years agoAdd spec tests and pulled in PR #427
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

10 years agofile_line honors after if match not found.
Bryan Jen [Thu, 9 Apr 2015 18:30:22 +0000 (11:30 -0700)]
file_line honors after if match not found.

10 years agoMerge pull request #430 from mhaskel/gjngeldenhuis-docupdate
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.