summaryrefslogtreecommitdiff
path: root/spec/support
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1383 from opscode/lcg/CHEF-5015Serdar Sutay2014-05-071-0/+52
|\ | | | | Lcg/chef 5015
| * add func tests for CHEF-5015Lamont Granquist2014-04-171-0/+52
| |
* | Make indentable print() function more intelligibleJohn Keiser2014-05-021-2/+2
| |
* | Fix warnings caused by reloading Configdanielsdeleo2014-04-241-0/+7
| |
* | Merge: Get local mode passing against chef-pedantJohn Keiser2014-04-233-0/+211
|\ \
| * | Run Pedant against local mode in TravisJohn Keiser2014-04-223-0/+211
| | |
* | | CHEF-5100: moar func testsLamont Granquist2014-04-221-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | This tests the reuse of the content length validation object and the situation where the content length of a previous download is retained while a 403 or other HTTP error fails to re-init the content length to zero. The result is the 403 is turned into an inaccurate content length exception, masking the real error.
* | | wrap methods in a moduleLamont Granquist2014-04-211-112/+115
| | |
* | | CHEF-5198: adding func tests for Chef::HTTP clientsLamont Granquist2014-04-111-0/+216
|/ / | | | | | | | | | | | | | | Start of func tests for Chef::REST and Chef::HTTP::Simple - Chef::REST is missing func tests against JSON endpoints using simple GET requests - HEAD and POST requests are also still missing, etc.
* | CR feedback: move command evaluation to guard interpreterAdam Edwards2014-03-291-1/+1
| |
* | CR feedback: move inheritance to class level, add tests for convert_boolean_trueAdam Edwards2014-03-291-0/+7
| |
* | Fix namespacing issues caused by moving guard_interpreter logic out of ↵Adam Edwards2014-03-291-2/+2
| | | | | | | | Chef::Resource
* | CR feedback: refactor guard interpreter logic out of Resource into ConditionalAdam Edwards2014-03-291-2/+2
| |
* | Guard resource new specs and spec fixesAdam Edwards2014-03-291-0/+31
| |
* | Remove extraneous character that breaks test cleanupAdam Edwards2014-03-291-1/+1
|/
* Upgrade Chef Zero & remove PumaSeth Vargo2014-03-122-0/+43
| | | | | | | This commit upgrades Chef Zero to version 2.0.0, which removed Puma entirely. Chef no longer requires Puma at runtime, so it can be moved into the development gem group. Chef Zero 2.0 runs entirely in WEBrick and also uses less memory and a more direct threading approach.
* Remove the unneeded running of "os" plugin.sersut2014-03-071-1/+1
|
* Fix chef spec infra to use OHAI correctly.sersut2014-03-071-2/+1
|
* Describe resource cloning behaviors in recipe specs.danielsdeleo2014-02-191-0/+1
| | | | | Includes two regression tests for CHEF-5052, marked pending until the fix for that issue is merged.
* Expose resource creation via more static methodsdanielsdeleo2014-02-031-1/+1
|
* Update file providers to close before unlinking.danielsdeleo2014-02-031-0/+1
| | | | | | | | This is required on windows, but the Tempfile implementation hides this and silently ignores the error, meaning that we're leaving tempfiles around on windows after we thought we'd cleaned them up. Eventually GC would get to them, but this won't happen if there is a severe crash or something calls `Kernel.exit!`, so we prefer to clean up manually.
* Close before unlink because windowsdanielsdeleo2014-02-031-8/+11
|
* Use custom tempfile to avoid ruby 1.8-related test failuresdanielsdeleo2014-02-031-1/+26
| | | | | | Tempfile in ruby 1.8.7 calls `File.exist?()`, which we set a stub on. For reasons that are not clear, this does not consistently fail. In any case, using a custom temporary file implementation resolves the issue.
* Merge pull request #1238 from opscode/lcg/rspec-2.14-deprecation-warningslamont-granquist2014-01-305-41/+51
|\ | | | | Lcg/rspec 2.14 deprecation warnings
| * fix broken file provider specsLamont Granquist2014-01-291-0/+10
| | | | | | | | | | fixing the should_not raise_error(Whatever) specs exposed that these were broken.
| * fix should_not raise_error(SpecificException)Lamont Granquist2014-01-292-3/+3
| |
| * the perils of regexp-based code editingLamont Granquist2014-01-291-1/+1
| |
| * s/mock\(/double(/gLamont Granquist2014-01-293-14/+14
| |
| * s/stub!/stub/gLamont Granquist2014-01-294-25/+25
| | | | | | | | fix deprecation warnings
* | Remove crufty require of pryBryan McLellan2014-01-301-2/+0
|/
* Restore checksums in the output.sersut2014-01-171-10/+22
|
* Merge remote-tracking branch 'goodmanio/CHEF-4639' into CHEF-4639-updatedsersut2014-01-171-43/+71
|\
| * fixed 1.8.7 incompatability issue; removed `pry` importAllen Goodman2013-12-191-4/+1
| |
| * fixes CHEF-4639Allen Goodman2013-12-061-10/+15
| |
| * RefactorAllen Goodman2013-11-181-44/+70
| |
* | Add support for Windows domain join spec filterAdam Edwards2014-01-131-1/+7
| |
* | Merge pull request #1111 from opscode/lcg/OC-10380lamont-granquist2013-11-221-43/+181
|\ \ | | | | | | OC-10380: skip checksumming for no-content files
| * | fix windows pathing issue in spec testsLamont Granquist2013-11-211-38/+51
| | |
| * | spec tests for checksumLamont Granquist2013-11-111-43/+146
| | | | | | | | | | | | | | | - plus stubbing of things that weren't stubed - and changing stub! to stub
| * | OC-10380: add polymorphismLamont Granquist2013-11-111-1/+1
| | |
| * | OC-10380: skip checksumming for no-content filesLamont Granquist2013-11-111-0/+22
| |/
* | Turn off functional group resource tests on MacOSX 10.6 due to caching issue ↵sersut2013-11-191-0/+16
| | | | | | | | on Etc.getgrnam() on certain boxes.
* | Better root checks and better naming for group account in functional group ↵sersut2013-11-141-1/+2
| | | | | | | | tests.
* | Specs for CHEF-3297. TDD rules.sersut2013-11-111-0/+4
|/
* CHEF-3582: Fix #check_lock under why-runBryan McLellan2013-11-061-0/+18
| | | | | | | | | We assume in whyrun mode that a non-existant user would be created before we attempt to lock it, so we return false from #check_lock when user does not exist and we are in why_run mode. Conflicts: chef/lib/chef/provider/user/useradd.rb
* When reporting a resource, before and after should always be a hashjamesc2013-10-151-0/+37
| | | | | | | | | | | | If a Resource (or LWRP) overrides Resource#state (meaning to set an attribute named state) this collides with the state function used to gather up the state_attrs Fix this by not using Resource#state, but copying that logic into ResourceReporter#state. Leaving Resource#state as it's used by other things. A full fix so LWRPs can't override functions in Resource is in scope for Chef 12
* Add tests for start_chef_zero parameter in knifeJohn Keiser2013-10-021-1/+1
|
* Fix the annoying warning when running specs on windows.sersut2013-09-301-0/+48
|
* Fix CHEF-4419 by appending a drive letter from the current working directory ↵sersut2013-09-301-0/+37
| | | | to the path if it starts with '/' in the most common code path we're encountering this issue.
* Normalize whitespace on all filesSeth Vargo2013-09-265-27/+27
|