summaryrefslogtreecommitdiff
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Removed update_resource_count attribute and added supress_log_resource_count ↵nimisha2016-09-162-20/+5
| | | | | | | | | | | | | | | | chef config
* | | | Fixing travis issuesnimisha2016-09-162-4/+4
| | | |
* | | | Added specs for update_resource_count attributenimisha2016-09-162-0/+29
| | | |
* | | | Merge pull request #5330 from chef/lcg/derpLamont Granquist2016-09-151-1/+6
|\ \ \ \ | | | | | | | | | | derp fix for master breakage
| * | | | derp fix for master breakagelcg/derpLamont Granquist2016-09-151-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thought this was green, but it was clearly red on appveyor/windows Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | | Merge pull request #5268 from ↵Bryan McLellan2016-09-151-17/+35
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | MsysTechnologiesllc/dh/registry_resource_idempotent_issue Fix for idempotent issue for some registry types in registry_key resource
| * | | | Refactored specsdheerajd-msys2016-09-131-28/+36
| | | | |
| * | | | Added specs for registry_key resource idempotent issue fixdheerajd-msys2016-09-131-1/+11
| |/ / /
* | | | Merge pull request #5322 from chef/lcg/manage-home-fixLamont Granquist2016-09-153-6/+42
|\ \ \ \ | | | | | | | | | | revert supports[:manage_home] behavior
| * | | | suppress deprecation errors in testslcg/manage-home-fixLamont Granquist2016-09-152-0/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | | | add tests for provider behaviorLamont Granquist2016-09-141-0/+12
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | | | revert supports[:manage_home] behaviorLamont Granquist2016-09-141-6/+24
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | even though i violently disagree that this is correct behavior and we're just going to break everyone in one massive go when we hit Chef 13. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | typofix [ci skip]Lamont Granquist2016-09-151-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | add tests and tweak codeLamont Granquist2016-09-151-9/+34
|/ / / | | | | | | | | | | | | | | | | | | also fixes the fact that we've been using @new_resource.name instead of @new_resource.path all along which was never what was intended. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Fixes GH-4955, allowing local gems with remote dependenciesJoseph (Jy) Yaworski2016-09-081-4/+2
| | |
* | | Merge pull request #5234 from ↵Bryan McLellan2016-09-071-0/+155
|\ \ \ | | | | | | | | | | | | | | | | MsysTechnologiesllc/ali/allow_symlink_directory_delete_on_windows Added code to handle deletion of directories on Windows that are symlinks.
| * | | Fixed RuboCop issues.aliasgar162016-09-011-35/+35
| | | |
| * | | Added RSpecs for the fix.aliasgar162016-09-011-0/+155
| | | |
* | | | Merge pull request #5281 from coderanger/recipe_file_loadedNoah Kantrowitz2016-09-062-3/+45
|\ \ \ \ | | | | | | | | | | Hook up the recipe_file_loaded event which was defined but not actually called
| * | | | Thanks, Windows.Noah Kantrowitz2016-09-061-1/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * | | | Fix dispatcher tests.Noah Kantrowitz2016-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * | | | Hook up the recipe_file_loaded event which was defined but not actually called.Noah Kantrowitz2016-09-021-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also extends two of the recipe events to get the recipe name in addition to the path because that's usually useful for display. These arguments are both added at the end so the auto-magic argument trimmer will keep backwards compat. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | | | | Merge pull request #5250 from ↵Bryan McLellan2016-09-061-0/+9
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | MsysTechnologiesllc/dh/add_timeout_during_package_removal Added timeout during removing of windows package
| * | | | Added spec for Timeout function in Windows remove package codedheerajd-msys2016-09-061-0/+9
| | | | |
* | | | | Added fix for spaces in profile identifiers (#5159)Nate Walck2016-08-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added fix for spaces in profile identifiers * Added an attempt to test spaces in identifier names * Derp, bad merge * Fixed osx profile spec test
* | | | | Use symbols instead of strings as keys for systemd user property (#5241)Joshua Miller2016-08-262-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use symbols instead of strings as keys for systemd user property related funcs * Fix tests for provider/service/systemd for when user property is set * Change hash in systemctl_opts to use symbols instead of strings * Fix tests for chef/provider/systemd_unit.rb
* | | | | Merge pull request #5249 from evan2645/use-upstart-goal-state-as-service-statusThom May2016-08-251-12/+27
|\ \ \ \ \ | | | | | | | | | | | | Use upstart goal state as service status
| * | | | | Use upstart goal state as service statusEvan Gilman2016-08-241-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | Solves #5204
* | | | | | Allow flagging a resource property as sensitiveadamleff/sensitive-propertiesAdam Leff2016-08-251-0/+20
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some properties in custom resources may include sensitive data, such as a password for a database server. When the Resource's state is built for use by Data Collector or similar auditing tool, `Chef::Resource#state_for_resource_reporter` builds a hash of all state properties for that resource and their values. This leads to sensitive data being transmitted and potentially stored in the clear. This change enhances properties with the ability to set an individual property as sensitive and then have the value of that property suppressed when exporting the Resource's state.
* | | | | Merge pull request #5243 from chef/lcg/rewrite-linux-user-providerLamont Granquist2016-08-241-13/+8
|\ \ \ \ \ | | | | | | | | | | | | Rewrite linux useradd provider
| * | | | | add func spec for default and fix unit specsLamont Granquist2016-08-231-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | | | | clean up everythingLamont Granquist2016-08-231-11/+1
| |/ / / / | | | | | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | | Create and delete yum repositoriesThom May2016-08-244-8/+92
|/ / / / | | | | | | | | | | | | Signed-off-by: Thom May <thom@may.lt>
* | | | Add a warning for guard blocks that return a non-empty string.Noah Kantrowitz2016-08-221-0/+46
|/ / / | | | | | | | | | | | | | | | | | | This will hopefully catch errors like this: myresource 'name' do not_if { 'some command' } end
* | | Stop using obsolete URI.escape; use Addressable::URI instead.John Keiser2016-08-221-2/+4
| | | | | | | | | | | | See http://stackoverflow.com/questions/2824126/whats-the-difference-between-uri-escape-and-cgi-escape#answer-13059657 for details on why.
* | | user provider manage_home behavior and refactorLamont Granquist2016-08-197-32/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | split out the user provider into 1:1 resources. fix the behavior of the linux user provider to implement manage_home behavior correctly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-17113-936/+992
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | fix Style/VariableName copLamont Granquist2016-08-162-4/+4
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | fix some Style/TrailingWhitespaceLamont Granquist2016-08-161-30/+30
| | | | | | | | | | | | | | | | | | I'm not sure how this happened Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | fixing Lint/Void copLamont Granquist2016-08-163-11/+11
| | |
* | | fix Lint/UnderscorePrefixedVariableName copLamont Granquist2016-08-162-10/+10
| | |
* | | autofixing Style/WhileUntilModifier copLamont Granquist2016-08-161-3/+1
| | |
* | | autofixing Style/SpaceBeforeSemicolon copLamont Granquist2016-08-161-2/+2
| | |
* | | autofixing Style/SpaceBeforeComment copLamont Granquist2016-08-161-2/+2
| | |
* | | auotfixing Style/SpaceAfterSemicolon copLamont Granquist2016-08-161-5/+5
| | |
* | | autofixing Style/RedundantException copLamont Granquist2016-08-162-3/+3
| | |
* | | autofixing Style/IndentAssignment copLamont Granquist2016-08-162-277/+277
| | |
* | | Spec break on Windows due to temp dir and short path namesAdam Edwards2016-08-162-2/+2
| | |
* | | rubygems memory perf issueslcg/rubygems_perf2Lamont Granquist2016-08-151-38/+46
| | | | | | | | | | | | | | | | | | set rubygems_cache_enabled to true in Chef::Config to get the old behavior back Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | okay i really, really hate ruby 2.1 nowlcg/keepalives-again-againLamont Granquist2016-08-111-2/+2
| | | | | | | | | | | | | | | | | | this is reaching ruby 1.8.7-levels of pissing me off Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>