Commit graph

1032 commits

Author SHA1 Message Date
Oliver Bertuch
260c1f4b92 Add new functions validate_numeric() and validate_integer(). 2014-12-04 22:33:15 +01:00
Morgan Haskel
4ebea40e08 Merge pull request #371 from cyberious/SLESSupport
FM-2020 SLES Support verified
2014-11-21 16:18:27 -05:00
Travis Fields
7148acdc9e FM-2020 SLES Support verified 2014-11-21 16:13:59 -05:00
Colleen Murphy
72ee9b5b68 Merge pull request #367 from mhaskel/future_parser_fix
Need to convert strings and fixnums to arrays
2014-11-17 12:29:23 -08:00
Morgan Haskel
c5467cc507 Need to convert strings and fixnums to arrays 2014-11-17 12:27:05 -08:00
Hunter Haugen
fb42396c75 Merge pull request #319 from Spredzy/member_array_in_array
(MODULES-1329) Allow member to look for array
2014-11-13 12:27:14 -08:00
Hunter Haugen
b6830f1ade Merge pull request #365 from dalen/range-integers
Make the range function work with integers
2014-11-13 10:16:21 -08:00
Hunter Haugen
b80c432ab9 Merge pull request #366 from mhaskel/merge_4.4.x
Merge 4.4.x
2014-11-12 11:54:41 -08:00
Yanis Guenane
c9f906f803 (MODULES-1329) Allow member function to look for array
Currently, the member function allows one to only find if a variable
is part of an array. Sometimes it is useful to find if an array is part
of a bigger array for validation purpose.
2014-11-12 14:40:34 -05:00
Erik Dalén
af0a2779cb Add range tests for numeric with step and mixed arguments 2014-11-12 16:52:36 +01:00
Erik Dalén
ce995e15d5 Make the range function work with integers
This is needed for the future parser which actually treats numbers as
numbers and strings as strings. With this patch you can use range(1,5)
instead of having to quote them like range('1','5').
2014-11-12 16:02:05 +01:00
Erik Dalén
e61f402283 (maint) Fix indentation of range function 2014-11-12 15:52:33 +01:00
Morgan Haskel
ded4d516f1 Merge pull request #363 from hunner/fix_windows
Fix exclude windows test on ensure_package
2014-11-11 16:44:26 -08:00
Travis Fields
3584485902 Fix exclude windows test on ensure_package
Update to fix ensure_resource as well
2014-11-11 16:41:53 -08:00
Morgan Haskel
202e3707cf Merge pull request #358 from hunner/fix_type
Correct type() logic
2014-11-11 10:47:00 -08:00
Hunter Haugen
970141e36a Correct type() logic
It should NOT run if the future parser is enabled
2014-11-11 10:46:01 -08:00
Morgan Haskel
0a8963fbd3 Merge pull request #357 from hunner/hasInterfaceWithLookupBug
(PUP-3597) Catch :undefined_variable when Future Parser is enabled on 3.7.x
2014-11-10 17:15:11 -08:00
Hunter Haugen
4949cfd21c Fix breaking out of .each loop
And some other small formatting fixes that don't belong in this patch.
2014-11-10 16:37:53 -08:00
Travis Fields
992ed8ffa8 Remove windows from ensure_package and ensure_resource testing 2014-11-10 16:34:05 -08:00
Travis Fields
c52e262a17 Catch :undefined_variable thrown when Future Parser is enabled with 3.7.x 2014-11-10 16:33:18 -08:00
Hunter Haugen
d8b86fdcc2 Merge branch 'master' into 4.4.x 2014-11-10 13:42:28 -08:00
Hunter Haugen
85d7eddc41 Merge pull request #356 from justinstoller/maint/master/segregate-gems
(QENG-1404) Segregate system testing gems
2014-11-10 13:28:04 -08:00
Justin Stoller
66434f9036 (QENG-1404) Segregate system testing gems
Prior to this there was generic :test group.

Unfortunately Beaker will be EOL-ing support for Ruby 1.8 (a number of
Beaker's dependencies already have and pinning to older versions is
becoming costly). Once Beaker does this it will cause failures whenever
running `bundle install`.

To avoid this failure we can segregate the system testing gems, allowing
unit, lint and development to continue with
`bundle install --without system_tests`.
2014-11-10 11:56:40 -08:00
Morgan Haskel
19f2dd359e Merge pull request #355 from hunner/release_4.4.0
Release 4.4.0
2014-11-10 11:43:00 -08:00
Hunter Haugen
cbc55084c8 Release 4.4.0
Summary
This release has an overhauled readme, new private manifest function,
and fixes many future parser bugs.

Features
- All new shiny README
- New `private()` function for making private manifests (yay!)

Bugfixes
- Code reuse in `bool2num()` and `zip()`
- Fix many functions to handle `generate()` no longer returning a string on new puppets
- `concat()` no longer modifies the first argument (whoops)
- strict variable support for `getvar()`, `member()`, `values_at`, and `has_interface_with()`
- `to_bytes()` handles PB and EB now
- Fix `tempfile` ruby requirement for `validate_augeas()` and `validate_cmd()`
- Fix `validate_cmd()` for windows
- Correct `validate_string()` docs to reflect non-handling of `undef`
- Fix `file_line` matching on older rubies
2014-11-10 11:42:03 -08:00
Morgan Haskel
850297b560 Merge pull request #354 from puppetlabs/4.3.x
4.3.x
2014-11-10 11:10:41 -08:00
Travis Fields
406e9dbda2 Merge pull request #343 from zacharyalexstern/fix_to_bytes
Added correct converstions for PB and EB.
2014-11-07 13:42:48 -08:00
Morgan Haskel
03f0ecd128 Merge pull request #350 from cyberious/modules1413
MODULES-1413 Add ability for member to take numeric objects
2014-11-04 15:29:25 -08:00
Travis Fields
f19aea5a75 MODULES-1413 Ability to for future parser to use member with FixNum types 2014-11-04 14:33:34 -08:00
Travis Fields
4bff0d2d61 Merge branch '4.3.x'
Conflicts:
	spec/acceptance/ensure_packages_spec.rb
	spec/acceptance/ensure_resource_spec.rb
2014-11-04 14:17:03 -08:00
Morgan Haskel
2f3d426ba7 Merge pull request #353 from cyberious/WindowsTestIsolationFix
Fix the unless for test cases on ensure_package and ensure_resource
2014-11-04 10:48:25 -08:00
Travis Fields
26e864f224 Fix the unless for test cases on ensure_package and ensure_resource
Conflicts:
	spec/acceptance/ensure_packages_spec.rb
	spec/acceptance/ensure_resource_spec.rb
2014-11-04 10:45:13 -08:00
Travis Fields
35c2dc7ca3 Merge branch '4.3.x' 2014-10-30 10:23:12 -07:00
Morgan Haskel
0db72ea777 Merge pull request #349 from cyberious/4.3.x
Fix validate_cmd, previous addition of SystemCallError only works for Puppet 3.7, previous version throw different exception.  Wrapping in generic Exception catch all
2014-10-30 10:21:36 -07:00
Travis Fields
6c7da72c0f Fix validate_cmd, previous addition of SystemCallError only works for Puppet 3.7, previous version throw different exception. Wrapping in generic Exception catch all 2014-10-29 20:03:07 -07:00
Travis Fields
12f734476c Merge remote-tracking branch 'origin/4.3.x' 2014-10-29 12:52:52 -07:00
Morgan Haskel
385f009488 Merge pull request #348 from cyberious/4.3.x
Add proper exception catching of Windows errors when CreateProcess does not succeed
2014-10-29 15:42:52 -04:00
Travis Fields
328aae223f Add proper exception catching of Windows errors when CreateProcess does not succeed 2014-10-29 11:47:57 -07:00
Colleen Murphy
88b6b29ea2 Merge pull request #347 from cyberious/master
Fix issue with ensure_request
2014-10-28 16:46:39 -07:00
Travis Fields
2b1cc82d24 Add windows test exclusion to ensure_resource 2014-10-28 16:43:15 -07:00
Colleen Murphy
6f366ed646 Merge pull request #346 from cyberious/master
Spec_helper_acceptance fix provision section
2014-10-28 16:12:54 -07:00
Travis Fields
9f68fd300f Fixed a mistake where we were trying to touch a host file using the default which was not relavent to the host we were modifying 2014-10-28 16:10:50 -07:00
Colleen Murphy
6e94a700f2 Merge pull request #345 from cyberious/master
Fix logic issue with not including windows for testing ensure_packages as ruby and gem are not on the install path
2014-10-28 15:37:46 -07:00
Travis Fields
5497f83507 Fix logic issue with not including windows for testing ensure_packages as ruby and gem are not on the install path 2014-10-28 15:35:56 -07:00
Travis Fields
a6f3f781d1 Merge remote-tracking branch 'origin/4.3.x' back to master 2014-10-28 15:31:37 -07:00
Colleen Murphy
cfc79e9831 Merge pull request #344 from cyberious/TestCaseFixes
Fix testcases for Future Parser and resolve issue with values_at in assuming that it was dealing with a string
2014-10-28 15:30:17 -07:00
Travis Fields
51f1d574d9 Fix testcases for Future Parser and resolve issue with values_at in assuming that it was dealing with a string 2014-10-28 15:27:24 -07:00
Zachary Alex Stern
9295d0d5ca Added correct converstions for PB and EB.
* We were converting Exabytes to bytes as Petabytes.
 * Updated tests to cover ever unit.
 * Added note that we're going by the old, inaccurate definitions of
   Kilobytes, Megabytes, etc, in that we treat them as powers of 2.
2014-10-28 13:14:06 -07:00
Travis Fields
9dea092979 Merge branch '4.3.x', add tempfile back for resource validate_cmd and validate_augeas 2014-10-24 16:41:05 -07:00
John Duarte
759cbdec88 Merge pull request #340 from cyberious/4.3.x
add require 'tempfile' to resolve a previously autorequired resource
2014-10-24 16:38:30 -07:00