summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
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
2014-06-04Convert specs to RSpec 2.99.0 syntax with TranspecAshley Penney
This conversion is done by Transpec 2.2.1 with the following command: transpec spec/functions * 345 conversions from: obj.should to: expect(obj).to * 122 conversions from: == expected to: eq(expected) * 85 conversions from: lambda { }.should to: expect { }.to * 22 conversions from: be_true to: be_truthy * 16 conversions from: be_false to: be_falsey * 11 conversions from: pending to: skip * 9 conversions from: it { should ... } to: it { is_expected.to ... } * 5 conversions from: =~ [1, 2] to: match_array([1, 2]) * 2 conversions from: =~ /pattern/ to: match(/pattern/) * 2 conversions from: obj.should_not to: expect(obj).not_to For more details: https://github.com/yujinakayama/transpec#supported-conversions
2014-06-04Convert specs to RSpec 2.99.0 syntax with TranspecAshley Penney
This conversion is done by Transpec 2.2.1 with the following command: transpec spec/unit * 53 conversions from: obj.should to: expect(obj).to * 19 conversions from: == expected to: eq(expected) * 5 conversions from: lambda { }.should to: expect { }.to * 2 conversions from: be_true to: be_truthy For more details: https://github.com/yujinakayama/transpec#supported-conversions
2014-06-03Merge pull request #265 from apenney/fix-testsMorgan Haskel
Further fixes to tests for 14.04.
2014-06-03Further fixes to tests for 14.04.Ashley Penney
2014-06-03Merge pull request #264 from apenney/fixes-for-testsMorgan Haskel
Fixes for PE3.3.
2014-06-03Fixes for PE3.3.Ashley Penney
2014-05-15Merge pull request #258 from mckern/enhancement/master/camelcasedemboolsAshley Penney
(MODULES-905) Narrow the confinement in bool2str
2014-05-15(MODULES-905) Extend spec tests for bool2strRyan McKern
The extended spec tests validate that the common types of values that could be passed to bool2str() are rejected.
2014-05-15Revert "Merge pull request #256 from stbenjam/2571-before"Ashley Penney
This reverts commit 8499ebdb7f892f2623295058649c67a5553d4732, reversing changes made to 08b00d9229961d7b3c3cba997bfb35c8d47e4c4b.
2014-05-15Merge pull request #255 from mckern/enhancement/master/camelcasedemboolsAshley Penney
(MODULES-905) Add bool2str() and camelcase() for string manipulation
2014-05-14(PUP-2571) add 'before' functionality to file_lineStephen Benjamin
file_line supports adding lines after a match, but there are use cases when having "before" would be useful. For example, in Debian-based OS's, the last line of /etc/rc.local is "exit 0" it's an incredible pain to deal with that scenario today. This commit adds a 'before' parameter to the file_line type, and implements it for the ruby provider.
2014-05-13(maint) Add bool2str & camelcase spec testsRyan McKern
2014-05-09Prepare a 4.2.1 release.Ashley Penney
2014-05-08Fix the stdlib functions that fail testsHunter Haugen
2014-05-08Move unit tests to spec/functionsHunter Haugen
rspec-puppet matchers are defined for tests which exist in spec/functions, but the function unit tests lived in spec/unit/puppet/parser/functions. This moves them to the correct place for using rspec-puppet
2014-05-07Add mode +x to spec .rb filesHunter Haugen
2014-05-07Move the 4 misplaced testsHunter Haugen
2014-05-07Adding more spec coverageHunter Haugen
2014-05-07Add the missing shebangs and fix the wrong ones for rpmlint to stop ↵Andrea Veri
complaining loudly
2014-05-02Update build_csv to understand contextsHunter Haugen