Oliver Bertuch
260c1f4b92
Add new functions validate_numeric() and validate_integer().
2014-12-04 22:33:15 +01:00
Peter Souter
84bd98645f
(MODULES-444) - Real meat of the change
...
This is the core change, we now go through the array and add it to the first element, instead of just two arguments.
2014-12-04 14:34:25 +00:00
Peter Souter
594c2dd38d
(MODULES-444) Change argument restriction to < 2
2014-12-04 14:33:23 +00:00
Peter Souter
75a6186512
(MODULES-444) Update docs with new functionality
2014-12-04 14:32:39 +00:00
Peter Souter
368c97f080
(MODULES-444) - Check for accepting > 2 args
2014-12-04 14:27:55 +00:00
Peter Souter
7a1c4a6d9e
(MODULES-444) Change test to > 2 arguments
...
Also add extra test for just 1 argument
2014-12-04 14:27:38 +00:00
Peter Souter
5e49c50458
(MODULES-444) Acceptance for multiple arrays
...
Acceptance test to take multiple arrays for concatenation
2014-12-04 14:15:33 +00:00
Peter Souter
7c570f75a5
(MODULES-444) Acceptance test for primitives
...
`concat` should be able to concat arrays and primitives
2014-12-04 14:15:03 +00:00
Peter Souter
ed192a0464
(MODULES-444) Add specs for new behaviour
...
`concat` can now take multiple arguments
2014-12-04 14:12:55 +00:00
jbondpdx
294b8b572d
Added a note that stdlib no longer ships with PE 3.7+
...
Users didn't realize we stopped shipping stdlib module with PE. I added this information to the stdlib readme.
2014-11-25 11:32:12 -08:00
jbondpdx
22bfa50cb9
FM-1523: Added module summary to metadata.json
2014-11-25 10:56:44 -08:00
Oliver Bertuch
89995e4db0
Allow array of pathes in validate_absolute_path
2014-11-25 12:45:23 +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
jbondpdx
b492115252
FM-1523: Added module summary to metadata.json
2014-11-20 15:21:24 -08: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