summaryrefslogtreecommitdiff
path: root/spec/unit/run_context_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make load/include recipe run in child contextjk/resource_actionsJohn Keiser2015-06-231-0/+3
|
* Delegate all necessary methods from ChildRunContext to RunContextJohn Keiser2015-06-231-0/+4
|
* These tests were accidently left out when I moved #2621 to mastertball/missed-teststyler-ball2015-06-081-0/+41
|
* add/fix node attributesLamont Granquist2015-05-181-0/+31
| | | | | | * fix node[:recipes] * add node[:expanded_run_list] * add node[:cookbooks]
* make include_recipe "::foo" use current cookbookLamont Granquist2015-01-201-0/+5
| | | | | | | | | | | | | | | | The following code is brittle if you want to fork the cookbook and rename it (which is a best practice when forking cookbooks for internal use): ```ruby if node[:platform_family] == "rhel" include_recipe "mycookbook::_rhel" end ``` In order for cookbooks to be easily renamable they can currently use the syntax `include_recipe "#{cookbook_name}::_rhel"` which is unwieldy. This patch adds `include_recipe "::_rhel"` as syntax sugar to make this easier.
* Adding unit test coverage and updating per github reviewtyler-ball2014-12-161-55/+55
| | | | | | | | | Conflicts: spec/unit/recipe_spec.rb spec/unit/resource_spec.rb spec/unit/run_context_spec.rb Resolving cherry pick commit merge issues
* Execute and Script Resource improvementsLamont Granquist2014-12-081-1/+6
| | | | | | | | | | | - Warning on incorrect usage of the command resource in any script resource - Warning on code in script resource being nil - Specs added to force deprecation of incorrect usage in Chef-13 - Specs added around the (supported) incorrect usage in Chef-12 - Cleanup+Modernization of providers and specs - Fixed some global state bugs around the Chef::Log.level in the spec tests
* Update to RSpec 3.Claire McQuin2014-10-291-25/+25
|
* Add unit spec for reboot data in RunContext.Chris Doherty2014-09-101-0/+15
|
* Remove classes before redefining to fix warnings.danielsdeleo2014-04-241-0/+7
|
* Change missing dependency from hard error to warning for now.danielsdeleo2014-03-141-1/+3
|
* Raise an error when including a recipe from an unreachable cookbookdanielsdeleo2014-03-141-0/+5
| | | | | | | | | | | | | | | | | | | | Fixes CHEF-4367. When attempting to load a recipe belonging to a cookbook that is not in the run_list or any dependencies of cookbooks in the run_list, chef will now produce an error like this: Chef::Exceptions::MissingCookbookDependency ------------------------------------------- Recipe `ancient::aliens` is not in the run_list, and cookbook 'ancient' is not a dependency of any cookbook in the run_list. To load thisrecipe, first add a dependency on cookbook 'ancient' in the cookbook you're including it from in that cookbook's metadata. This error will occur when chef-solo users use `include_recipe` without specifying the dependency in metadata; prior to this patch, chef would typically fail reading an undefined attribute, which commonly would result in a NoMethodError for nil.
* CHEF-4777: fix for fully qualifying recipesLamont Granquist2014-01-161-3/+4
| | | | | | this makes it so that the recipes in the attribute will be fully qualified, and will avoid the problem of both "cookbook" and "cookbook::default" showing up.
* CHEF-4777: add include_recipes to recipes node attrLamont Granquist2013-11-141-0/+3
|
* Normalize whitespace on all filesSeth Vargo2013-09-261-2/+2
|
* Add methods to query for template/file existence in run contextdanielsdeleo2013-08-021-1/+42
| | | | | | | - Convenience methods added to CookbookVersion to query if a cookbook file or template is available for a given node in that cookbook - Convenience methods added to RunContext to query the existence of cookbook files or templates
* [CHEF-3376] extract CookbookCompiler specsdanielsdeleo2012-11-301-139/+0
|
* [CHEF-3376] Load all filetypes in run_list orderdanielsdeleo2012-11-301-17/+99
| | | | | | | | | | * Extract file loading for non-recipe types to implementation class. * Load libraries, LWRPs, Resource Definitions in approximate run_list order * Should not be a breaking change on chef-client, since the order is essentially random right now. On chef-solo, files from cookbooks that don't appear in the expanded run_list plus dependency graph will not be loaded, which is a change from the previous behavior.
* [CHEF-2903] load attribute files in run_list orderdanielsdeleo2012-11-071-0/+57
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+78
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!