summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2015-02-14(MODULES-1771) Don't modify input to is_domain_name()Sean Millichamp
Fix is_domain_name() so it dup's its incoming argument to avoid changing the original with a later chomp!
2015-02-12(MODULES-1738) Don't modify global seed in fqdn_rotate()Eli Young
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-01-13Change all to eachHunter Haugen
The existence of this directory is behavior for each test, but will also stop rspec 3 from complaining.
2015-01-07(MODULES-1473) Deprecate type() function for new parserHunter Haugen
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.
2014-12-19MODULES-1606 add ability to pass array to delete for items to deleteTravis Fields
2014-12-18Fix bad check in testMorgan Haskel
2014-12-18Merge pull request #388 from mhaskel/merge_4.5.x_into_masterHunter Haugen
Merge 4.5.x into master
2014-12-18(MODULES-1582) Specs for the new % placeholderPeter Souter
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-17Merge pull request #372 from ↵Morgan Haskel
poikilotherm/feature/master/validate_absolute_path_allow_arrays Allow array of pathes in validate_absolute_path
2014-12-17Merge pull request #368 from rfugina/basenameMorgan Haskel
Basename implementation
2014-12-17Added basename() based on Ruby's File.basenameRob Fugina
Based on dirname code. Includes RSpec tests and docs.
2014-12-16Remove line match validationHunter Haugen
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 https://github.com/puppetlabs/puppetlabs-stdlib/commit/a06c0d8115892a74666676b50d4282df9850a119 and ask https://ask.puppetlabs.com/question/14366/file_line-resource-match-problems/ for further examples of confusion.
2014-12-04(MODULES-444) - Check for accepting > 2 argsPeter Souter
2014-12-04(MODULES-444) Change test to > 2 argumentsPeter Souter
Also add extra test for just 1 argument
2014-12-04(MODULES-444) Acceptance for multiple arraysPeter Souter
Acceptance test to take multiple arrays for concatenation
2014-12-04(MODULES-444) Acceptance test for primitivesPeter Souter
`concat` should be able to concat arrays and primitives
2014-12-04(MODULES-444) Add specs for new behaviourPeter Souter
`concat` can now take multiple arguments
2014-11-25Allow array of pathes in validate_absolute_pathOliver Bertuch
2014-11-13Merge pull request #319 from Spredzy/member_array_in_arrayHunter Haugen
(MODULES-1329) Allow member to look for array
2014-11-13Merge pull request #365 from dalen/range-integersHunter Haugen
Make the range function work with integers
2014-11-12(MODULES-1329) Allow member function to look for arrayYanis Guenane
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-12Add range tests for numeric with step and mixed argumentsErik Dalén
2014-11-12Make the range function work with integersErik Dalén
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-11Fix exclude windows test on ensure_packageTravis Fields
Update to fix ensure_resource as well
2014-11-11Correct type() logicHunter Haugen
It should NOT run if the future parser is enabled
2014-11-10Remove windows from ensure_package and ensure_resource testingTravis Fields
2014-11-10Merge pull request #354 from puppetlabs/4.3.xMorgan Haskel
4.3.x
2014-11-07Merge pull request #343 from zacharyalexstern/fix_to_bytesTravis Fields
Added correct converstions for PB and EB.
2014-11-04Merge pull request #350 from cyberious/modules1413Morgan Haskel
MODULES-1413 Add ability for member to take numeric objects
2014-11-04MODULES-1413 Ability to for future parser to use member with FixNum typesTravis Fields
2014-11-04Merge branch '4.3.x'Travis Fields
Conflicts: spec/acceptance/ensure_packages_spec.rb spec/acceptance/ensure_resource_spec.rb
2014-11-04Fix the unless for test cases on ensure_package and ensure_resourceTravis Fields
Conflicts: spec/acceptance/ensure_packages_spec.rb spec/acceptance/ensure_resource_spec.rb
2014-10-30Merge branch '4.3.x'Travis Fields
2014-10-29Fix validate_cmd, previous addition of SystemCallError only works for Puppet ↵Travis Fields
3.7, previous version throw different exception. Wrapping in generic Exception catch all
2014-10-28Add windows test exclusion to ensure_resourceTravis Fields
2014-10-28Fixed a mistake where we were trying to touch a host file using the default ↵Travis Fields
which was not relavent to the host we were modifying
2014-10-28Fix logic issue with not including windows for testing ensure_packages as ↵Travis Fields
ruby and gem are not on the install path
2014-10-28Merge remote-tracking branch 'origin/4.3.x' back to masterTravis Fields
2014-10-28Fix testcases for Future Parser and resolve issue with values_at in assuming ↵Travis Fields
that it was dealing with a string
2014-10-28Added correct converstions for PB and EB.Zachary Alex Stern
* 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-09-22(MODULES-707) chomp() fails because generate() no longer returns a stringMark Chappell
We need to use unless value.is_a?(String) || value.is_a?(Array) rather than klass = value.class unless [String, Array].include?(klass) because the klass version enforces type checking which is too strict, and does not allow us to accept objects wich have extended String (or Array). For example, generate() function now returns Puppet::Util::Execution::ProcessOutput which is just a very simple extension of String. While this in it's self was not intentional (PUP-2306) it is not unreasonable to cope with objects which extend Strings
2014-09-16Remove simplecovHunter Haugen
simplecov 0.9 dropped ruby 1.8 support, and stdlib is one of the oddball modules that uses it. So we could probably just remove it and be okay. (cherry picked from commit a7c129b22d91fc723a8176c066a3eb96b03a2f56)
2014-08-28Update spec_helper for more consistencyMorgan Haskel
2014-08-05Remove simplecovHunter Haugen
simplecov 0.9 dropped ruby 1.8 support, and stdlib is one of the oddball modules that uses it. So we could probably just remove it and be okay.
2014-08-05Merge branch '4.3.x'Hunter Haugen
2014-07-31Introduce test for array destructionSpencer Krum
It was discovered that the concat array modifies the arrays passed to it as an argument as a side effect. This test will ensure that doesn't happen again.
2014-07-08AIX has no facter network supportHunter Haugen
These functions take advantage of IP fact information and AIX does not appear to support dynamic interface detection in facter.
2014-06-26Gotta single quote yer typewriter buttonsHunter Haugen
2014-06-26Need quotes for spaces in pathHunter Haugen
2014-06-26has_ip_network doesn't work on windows eitherHunter Haugen