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
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
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
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
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
Travis Fields
7021b1f55c
Add Hash to upcase
2015-02-25 11:39:27 -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
Eli Young
84f866ffaf
(MODULES-1738) Don't modify global seed in fqdn_rotate()
...
As per puppetlabs/puppet@292233c , this leaves the global seed in a
deterministic state, which is bad. Puppet::Util.deterministic_rand()
exists to avoid running into this issue, but is only present starting in
Puppet 3.2.0.
2015-02-12 14:04:47 -08:00
Adam Crews
53b1802a92
Add a ceiling function to complement the floor function.
2015-02-01 22:46:16 -08:00
Hunter Haugen
bfb526899f
Change all to each
...
The existence of this directory is behavior for each test, but will also
stop rspec 3 from complaining.
2015-01-13 17:21:28 -08:00
Hunter Haugen
7c8ae311ca
(MODULES-1473) Deprecate type() function for new parser
...
The `type()` function will cease to work on the new parser because 'type'
is a reserved keyword. The `type3x()` function may be used to continue
similar functionality, but will be deprecated in favor of the built-in
typing system.
The `type_of()` function has been included to introspect types in the
new parser.
2015-01-07 16:40:06 -08:00
Travis Fields
8ec6f8dbfd
MODULES-1606 add ability to pass array to delete for items to delete
2014-12-19 10:26:01 -08:00
Morgan Haskel
31a6d89410
Fix bad check in test
2014-12-18 16:20:02 -08:00
Hunter Haugen
1ae0a10707
Merge pull request #388 from mhaskel/merge_4.5.x_into_master
...
Merge 4.5.x into master
2014-12-18 15:55:33 -08:00
Peter Souter
cc8b147b5d
(MODULES-1582) Specs for the new % placeholder
...
These specs are pretty much the same as the originals, but now check that the output has the correct replacement for file location
2014-12-18 23:08:33 +00:00
Morgan Haskel
696c89de99
Merge pull request #372 from poikilotherm/feature/master/validate_absolute_path_allow_arrays
...
Allow array of pathes in validate_absolute_path
2014-12-17 14:19:30 -08:00
Morgan Haskel
841b0df210
Merge pull request #368 from rfugina/basename
...
Basename implementation
2014-12-17 11:00:23 -08:00
Rob Fugina
2a3babc348
Added type checks for dirname(), and additional tests
2014-12-17 12:55:48 -06:00
Rob Fugina
ef3d42f7bb
Added basename() based on Ruby's File.basename
...
Based on dirname code. Includes RSpec tests and docs.
2014-12-17 12:39:40 -06:00
Hunter Haugen
c6c203fca8
Remove line match validation
...
The `match` attribute was validated to match `line`, except that in many
cases (even the example given in the docs) a user would want to match a
line entirely different from the new line.
See comments on the original commit
a06c0d8115
and ask
https://ask.puppetlabs.com/question/14366/file_line-resource-match-problems/
for further examples of confusion.
2014-12-16 15:05:31 -08:00
Oliver Bertuch
260c1f4b92
Add new functions validate_numeric() and validate_integer().
2014-12-04 22:33:15 +01: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
Oliver Bertuch
89995e4db0
Allow array of pathes in validate_absolute_path
2014-11-25 12:45:23 +01: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
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
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
Hunter Haugen
970141e36a
Correct type() logic
...
It should NOT run if the future parser is enabled
2014-11-11 10:46:01 -08:00
Travis Fields
992ed8ffa8
Remove windows from ensure_package and ensure_resource testing
2014-11-10 16:34:05 -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
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
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
2b1cc82d24
Add windows test exclusion to ensure_resource
2014-10-28 16:43:15 -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