summaryrefslogtreecommitdiff
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
* Allow requests to opt-out from JSON encoding the bodydanielsdeleo2014-07-301-0/+128
| | | | | | | | * JSONInput middleware now checks the incoming headers for a Content-Type; if set to a non-json type, the body is passed through unchanged. This allows us to use our normal HTTP client objects to make requests with non-JSON bodies, such as file uploads. * Add test coverage for the JSONInput middleware.
* add shell_out to base provider codeLamont Granquist2014-07-291-0/+12
|
* add shell_out mixins to recipe DSLLamont Granquist2014-07-281-0/+12
|
* clean up deleted files in cookbooks we synchLamont Granquist2014-07-261-22/+83
| | | | | this also fixes bugs where dotfiles would be missed in loops that search through the file cache.
* make no_lazy_load the defaultLamont Granquist2014-07-261-218/+372
| | | | modernization of spec tests and additional specs added
* Merge branch 'chef-4760-knife-logging'Bryan McLellan2014-07-2410-46/+47
|\
| * Update tests for CHEF-4760 change.Chris Jerdonek2014-07-2110-46/+47
| |
* | Allow an array in default_actionSeth Vargo2014-07-231-0/+13
|/
* Remove appending :actions and :valid_actionsSeth Vargo2014-07-181-21/+0
|
* fix this right so it doesn't break in chef-13 tooLamont Granquist2014-07-181-1/+1
|
* fix unit testLamont Granquist2014-07-171-1/+1
|
* Delegate DSL method values to their superclassSeth Vargo2014-07-111-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | When inheriting from +Resource::LWRPBase+, the +default_action+ and +actions+ attributes are set as class instance variables. In Ruby's object model, class instance variables are **not** shared with children. So subclassing a resource that extended from +Resource::LWRPBase+ would result in some unexplainable side-effects: class Chef::Resource::Parent < Chef::Resource::LWRPBase actions :execute default_action :execute end class Child::Resource::Child < Chef::Resource::Parent # In here, +actions+ and +default_action+ are **not** inherited so they # are +nil+! end This commit tells resources that inherit from LWRPBase to check their superclasses for values if they do not have one on their own. This commit also deprecate +valid_actions+ in favor of just using +actions+ in the LWRP DSL.
* Use Ruby 1.8 style hashes for BCSeth Vargo2014-07-111-2/+2
|
* Allow default values to be a DelayedEvaluatorSeth Vargo2014-07-111-0/+20
|
* Merge pull request #1581 from opscode/vtolstov-systemdClaire McQuin2014-07-091-27/+44
|\ | | | | vtolstov: reload service only if it running, if not - start
| * Update spec for shell_out.Claire McQuin2014-06-301-27/+44
| |
* | Add url scheme to proxy, if not present.Claire McQuin2014-07-091-1/+35
| |
* | Revert the provider indirection logic while keeping the timeout ↵sersut2014-07-023-29/+29
| | | | | | | | functionality to fix resource notifications and ChefSpec stubs.
* | moar 1.8.7 fixesLamont Granquist2014-07-011-4/+4
| |
* | fix unit testsLamont Granquist2014-07-011-48/+24
| |
* | Merge pull request #1565 from jmink/CHEF-4994Bryan McLellan2014-06-301-5/+5
|\ \ | | | | | | CHEF-4994: knife cookbook site share fails on windows
| * | Include the shell_out mixin in cookbook_site_sharejmink2014-06-271-3/+3
| | |
| * | Hack around system differences for travis testjmink2014-06-271-1/+1
| | |
| * | Fix cookbook_site_share testsjmink2014-06-261-5/+5
| | |
* | | Allow users to set the +resource_name+ in an LWRP programaticallySeth Vargo2014-06-301-0/+27
| |/ |/| | | | | | | | | | | | | | | Previously this was marked as an internal API, but I am making it public. We are reliably using this API in our LHWRPs in Release Engineering and it is truly a delightful experience. This deprecates using +resource_name = :foo+ in favor of the more "Chef-like" +resource_name(:foo)+.
* | Set environment option's 'LC_ALL' to nil if not present in option.Claire McQuin2014-06-271-102/+53
| |
* | Properly modify environment option based on ENVClaire McQuin2014-06-271-31/+114
| |
* | Fix shell_out_with_systems_locale logic, add specs.Claire McQuin2014-06-271-0/+58
| |
* | Merge pull request #1414 from vtolstov/upstreamSerdar Sutay2014-06-261-0/+135
|\ \ | | | | | | next try to add exherbo linux support
| * | remove failed testVasiliy Tolstov2014-06-161-13/+0
| | | | | | | | | | | | Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
| * | fix last failed testsVasiliy Tolstov2014-06-151-1/+1
| | | | | | | | | | | | Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
| * | fix last failed testsVasiliy Tolstov2014-06-151-2/+9
| | | | | | | | | | | | Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
| * | fix testVasiliy Tolstov2014-06-141-180/+27
| | | | | | | | | | | | Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
| * | add paludis package manager user in gentoo/exherbo linuxVasiliy Tolstov2014-05-131-0/+294
| | | | | | | | | | | | Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
* | | Misc spec fixes for windows.sersut2014-06-241-1/+3
| | |
* | | we can still emit JSON::ParserErrors in compat modeLamont Granquist2014-06-231-1/+1
| | |
* | | fix another Yajl referenceLamont Granquist2014-06-231-2/+2
| |/ |/|
* | CHEF-5158: Make the former override_attribute's purpose a bit more clearBryan McLellan2014-06-201-13/+6
| |
* | [CHEF-5158] knife[:attribute] in knife.rb should not override --attribute in ↵Hui Hu2014-06-201-0/+1
| | | | | | | | the command line
* | Merge pull request #1483 from opscode/CHEF-4600Claire McQuin2014-06-181-4/+15
|\ \ | | | | | | Chef 4600
| * | fix indentingClaire McQuin2014-06-181-5/+6
| | |
| * | CHEF-4600 Add timeout for Chef::Provider::Service::WindowsMatt2014-06-181-3/+13
| | |
* | | Merge pull request #506 from ctennis/CHEF-3637Claire McQuin2014-06-181-0/+14
|\ \ \ | |/ / |/| | [CHEF-3637] Add support for automatically using the Systemd service provider
| * | Add support for automatically using the Systemd service provider if it's in useCaleb Tennis2012-11-291-0/+14
| | |
* | | Merge pull request #1494 from brettcave/CHEF-5365_masterClaire McQuin2014-06-181-0/+5
|\ \ \ | | | | | | | | CHEF-5365 - chef local crashes if home directory is not set
| * | | CHEF-5365 - added a unit test to ensure fallback of Dir.pwd works without ↵brettcave2014-06-171-0/+5
| | | | | | | | | | | | | | | | environment variables set
* | | | Merge branch 'CHEF-4791' of github.com:deployable/chefsersut2014-06-181-0/+61
|\ \ \ \
| * | | | Fixed whitespace in changes.deployable2014-05-211-42/+83
| | | | | | | | | | | | | | | | | | | | | | | | | Fixed deprecation warnings for `stub!` and `mock` in tests. Added tests for `START_PENDING` and `STOP_PENDING` state to `stop_service` and `start_service`
| * | | | CHEF-4791 Add more windows service states to the start/stop control flowMatt2013-12-051-0/+20
| | | | | | | | | | | | | | | | | | | | http://msdn.microsoft.com/en-us/library/windows/desktop/ee126211(v=vs.85).aspx
* | | | | Merge pull request #1501 from opscode/shain/rpm_version_regexScott Hain2014-06-171-35/+35
|\ \ \ \ \ | | | | | | | | | | | | Updated tests with more complicated data, fixed regex