summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
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
2014-06-25Sync filesColleen Murphy
2014-06-25Disable windows network stuff and quote pathHunter Haugen
2014-06-24Not enough escape velocityHunter Haugen
2014-06-24Fix pe facts and slashesHunter Haugen
2014-06-23Fixed fqdn,getparam and has_interface_with spec testsTravis Fields
2014-06-23Merge pull request #283 from cyberious/4.3.xHunter Haugen
Add windows support and work around issue with SCP_TO on windows systems
2014-06-23Removed platform check for facts.d mkdirTravis Fields
2014-06-23Add windows support and work around issue with SCP_TO on windows systemsTravis Fields
2014-06-23Windows needs a tmpdir pathHunter Haugen
2014-06-23Merge pull request #280 from hunner/win_augTravis Fields
Augeas isn't present on windows
2014-06-23Augeas isn't present on windowsHunter Haugen
2014-06-23OS X also has lo0 and can't manage user homedirsHunter Haugen
2014-06-20Add windows Nodesets and remove Beaker from GemfileTravis Fields
2014-06-20Patch ensure_* testsHunter Haugen
2014-06-19Merge branch 'master' into 4.3.xHunter Haugen
2014-06-19(FM-1587) Fix test issues on solaris 10Hunter Haugen
- ensure_packages fails because Error: Sun packages must specify a package source - ensure_resource fails for the same reason - get_module_path fails because the modulepath is different - has_interface_with fails because the interface is lo0 not lo
2014-06-11Add private() functionRaphaël Pinson