summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Spence <chris.spence@puppetlabs.com>2012-02-22 15:46:07 +0000
committerChris Spence <chris.spence@puppetlabs.com>2012-02-22 18:12:34 +0000
commit8713943d37aed672098fe8c2b62bf8c64b98792e (patch)
tree93719e9a215cb951852d7699fe274890fb648e17 /tests
parent966a4bf9067bffcfa73c664ba419894d783afdba (diff)
downloadpuppet-stdlib-8713943d37aed672098fe8c2b62bf8c64b98792e.tar.gz
puppet-stdlib-8713943d37aed672098fe8c2b62bf8c64b98792e.tar.bz2
(#12776) Added validate_slength function and rspec test
This function is used to validate a string is less than a maximum length. The string, or array of strings, is passed as the first argument to the function. The maximum length of the string is passed as the second argument. It is useful to validate, for example, that Puppet is not sending a username to a downstream system that the system cannot cope with, but that might not cause an error message - for example, MySQL will not accept a username of more than 16 characters. This enables a Puppet administrator to validate the data that it may have been passed from upstream through, for example, Hiera.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions