summaryrefslogtreecommitdiff
path: root/spec/data/cookbooks
Commit message (Collapse)AuthorAgeFilesLines
* Make the links end with /docs_linksTim Smith2020-03-041-1/+1
| | | | | | Thanks for pointing this out Ian Signed-off-by: Tim Smith <tsmith@chef.io>
* Genrates metadata.json from metadata.rb if json file does not exist.Vasu11052019-12-162-0/+66
| | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Fix unit specsVivek Singh2019-10-281-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Add chefignore unit test casesVivek Singh2019-10-284-0/+15
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Move response_file and response_file_variables out of base package resourceKapil Chouhan2019-05-072-0/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> Fix for Move response_file and response_file_variables out of base package resource Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> update require changes Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> Updated require changes Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> Fixed some unit test cases Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* Nuke opscode from the spec cookbook dataTim Smith2019-01-221-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve coverage of root alias tests.Noah Kantrowitz2017-04-053-6/+0
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* First pass on implementing root aliases.Noah Kantrowitz2017-04-043-0/+6
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Allow lazy{} to be used in template resource variables.Noah Kantrowitz2017-04-031-0/+1
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Filter out directory paths from all_files when loadinglist-unignored-filesdanielsdeleo2016-02-261-0/+0
|
* Add test file to fixture cookbookdanielsdeleo2016-02-261-0/+0
|
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* add cookbook metadata that will fail testsJordan Evans2015-12-281-0/+5
| | | | | This cookbook metadata uses the supports method, which currently parses versions using the cookbook version parser, when it should be using the platform parser.
* Merge pull request #3510 from ckaushik/issue_2513Thom May2015-09-022-0/+2
|\ | | | | Fixing Issue #2513 - the broken render of nested partial templates
| * Fixing Issue #2513 - the broken render of nested partial templates with ↵Kaushik C2015-07-272-0/+2
| | | | | | | | | | | | variables Authors: Kaushik C <kaushik.chand@gmail.com>, Sam Dunne <sam@sam-dunne.com>
* | CHEF-5012: add methods for template breadcrumbsLamont Granquist2015-08-181-0/+14
|/ | | | | | | | | | | | | | adds: - cookbook_name - recipe_name - recipe_line_string - recipe_path - recipe_line - template_name - template_path accessible both as instance var (@-) and method (bare), like @node/node.
* Merge pull request #2149 from JeanMertz/chef_client_no_check_files_subdirSerdar Sutay2014-10-102-0/+4
|\ | | | | knife upload fails due to "wrong" ruby syntax in files/* file
| * Skip checking files/**/*.rb files when doing syntax checksJean Mertz2014-10-082-0/+4
| | | | | | | | | | Chef should not be concerned with Ruby syntax in files delivered through the `cookbook_file` provider.
* | load library folder recursivelyJean Mertz2014-10-022-0/+7
|/
* Make `name` a required attribute in metadatadanielsdeleo2014-08-126-0/+12
|
* Respect metadata name attributedanielsdeleo2014-08-123-0/+20
| | | | Fixes CHEF-3307
* Ammended test data to allow unit tests to verify only erb files in the ↵Victor Hahn2014-07-281-0/+2
| | | | templates directory are considered in syntax checks
* Wrap code in an instance_eval context for syntax check.danielsdeleo2014-04-092-0/+3
| | | | | | This evaluates the code in a context similar to what Chef does when compiling recipes, so that idioms like using `return` to end evaluation of a recipe will work.
* CHEF-4849: Implement `#response_file_variables` in Package resourcePeter Fern2013-12-201-0/+1
| | | | | | | | Now that Chef properly supports a package `response_file` using `Chef::Resource::Template`, the Package resource should implement the `response_file_variables` method so that variables do not have to exist as node attributes (eg - for seeding DB passwords for configuration files generated by packages).
* Prevent duplicate keys in cookbook version JSONSeth Falcon2013-10-101-0/+8
| | | | | | | | | | | | | | | | Reported in CHEF-4571. The recipes component of cookbook version metadata (cbv.metadata.recipes) serialized to JSON with duplicate keys if a metadata.rb was present that provided a recipe line matching the cookbook name (providing a description for the default recipe). The root cause is the behavior of the JSON serialized when called on a hash containing matching string and symbol keys. For example: chef > {"key1" => "sam", :key1 => "wat"}.to_json => "{\"key1\":\"sam\",\"key1\":\"wat\"}" So the specific fix is to prevent inserting a symbol key for the recipe name.
* revert whitespace for all spec/data fixturesLamont Granquist2013-09-2613-13/+13
| | | | | | - some of these have deliberate whitespace/line-ending differences - without going through them one by one its safer to revert the lot of them
* Reset some_windows_line_endings test fixtureSeth Vargo2013-09-261-1/+2
|
* Normalize whitespace on all filesSeth Vargo2013-09-2614-15/+14
|
* Verify that templates are preferred to files for preseedingdanielsdeleo2013-08-021-0/+4
|
* Fix bad const. ref in deprecation/provider/templatedanielsdeleo2013-08-021-1/+1
| | | | | | | | | | | | | | Fixes CHEF-4406 http://tickets.opscode.com/browse/CHEF-4406 Calls to Chef::Provider::Template#template_location and #template_finder will now correctly reference the Chef::Provider::TemplateFinder class. Chef::Provider::Package#preseed_resource uses these methods expecting an error to be raised only if there is no template with the desired name, which triggers a fallback to cookbook_file-based preseed files. This patch restores the template-based preseed functionality, but will trigger deprecation warnings from within Chef::Provider::Package's internal code.
* Add functional tests for (apt) package resourcedanielsdeleo2013-08-022-0/+2
| | | | Repro/regression test for CHEF-4406 included but is marked pending.
* Revert "Merge branch 'CHEF-3307'"Bryan McLellan2013-07-032-2/+0
| | | | | | | | This reverts commit 5713a002062c762e40e4378be6d7763eb3dd61a2, reversing changes made to 4079a344f2001c1927132e7ed6b63453f459609f. Conflicts: spec/unit/cookbook_loader_spec.rb
* CHEF-3544 Honor chefignore in cookbook syntax checkGreg Thornton2013-06-182-0/+3
|
* Merge branch 'master' into file-refactorsersut2013-05-312-0/+2
|\ | | | | | | | | Conflicts: lib/chef/exceptions.rb
| * Tests CHEF-3307Mal Graty2013-05-242-0/+2
| | | | | | | | | | | | | | | | | | Test cookbook loading, shadowing and metadata deprecation warnings assocaited with the CHEF-3307 changes (use of metadata name as cookbook name in preference to file system pathname). Includes new nginx cookbook (with alternate pathname) and a shadowbook with another pathname.
* | Make sure that windows line endings are protected during template rendering.sersut2013-05-303-0/+12
| |
* | Pass template extensions through to partialsdanielsdeleo2013-05-291-0/+1
| | | | | | | | | | | | | | - move the new TemplateContext code into mixin/template and consolidate with ChefContext - Copy extension modules from parent template to partial template. - Functional tests for helpers with partials.
* | Add helper method/module support to template resourcedanielsdeleo2013-05-291-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds helper methods to a template via the following syntax: ``` template "name" do # singular method definition: helper(:method_name) { method_body } # inline module definition helpers do def method_name method_body end end # external module inclusion helpers(MyHelperModule) end ``` In each of the above cases, variables defined by Chef (e.g., `@node`) or the user (via `:variables => {}`) can be accessed as normal. Could use the following improvements: - Template partials are not supported - Input validation on Resource::Template should be improved - Needs Unit tests for Template provider/implementation classes
* Merge branch '10-stable' into integrate-chef-10-18-0danielsdeleo2013-01-171-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitattributes chef-expander/Rakefile chef-expander/lib/chef/expander/version.rb chef-server-api/Rakefile chef-server-api/chef-server-api.gemspec chef-server-api/lib/chef-server-api/version.rb chef-server-webui/Rakefile chef-server-webui/chef-server-webui.gemspec chef-server-webui/lib/chef-server-webui/version.rb chef-server/Rakefile chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef.gemspec chef/Rakefile chef/spec/support/platform_helpers.rb chef/spec/support/shared/functional/file_resource.rb chef/spec/unit/api_client_spec.rb chef/spec/unit/provider/directory_spec.rb ci/jenkins_run_tests.bat ci/jenkins_run_tests.sh distro/common/html/chef-client.8.html distro/common/html/chef-expander.8.html distro/common/html/chef-expanderctl.8.html distro/common/html/chef-server-webui.8.html distro/common/html/chef-server.8.html distro/common/html/chef-shell.1.html distro/common/html/chef-solo.8.html distro/common/html/chef-solr.8.html distro/common/html/knife-bootstrap.1.html distro/common/html/knife-client.1.html distro/common/html/knife-configure.1.html distro/common/html/knife-cookbook-site.1.html distro/common/html/knife-cookbook.1.html distro/common/html/knife-data-bag.1.html distro/common/html/knife-environment.1.html distro/common/html/knife-exec.1.html distro/common/html/knife-index.1.html distro/common/html/knife-node.1.html distro/common/html/knife-role.1.html distro/common/html/knife-search.1.html distro/common/html/knife-ssh.1.html distro/common/html/knife-status.1.html distro/common/html/knife-tag.1.html distro/common/html/knife.1.html distro/common/man/man1/chef-shell.1 distro/common/man/man1/knife-bootstrap.1 distro/common/man/man1/knife-client.1 distro/common/man/man1/knife-configure.1 distro/common/man/man1/knife-cookbook-site.1 distro/common/man/man1/knife-cookbook.1 distro/common/man/man1/knife-data-bag.1 distro/common/man/man1/knife-environment.1 distro/common/man/man1/knife-exec.1 distro/common/man/man1/knife-index.1 distro/common/man/man1/knife-node.1 distro/common/man/man1/knife-role.1 distro/common/man/man1/knife-search.1 distro/common/man/man1/knife-ssh.1 distro/common/man/man1/knife-status.1 distro/common/man/man1/knife-tag.1 distro/common/man/man1/knife.1 distro/common/man/man8/chef-client.8 distro/common/man/man8/chef-expander.8 distro/common/man/man8/chef-expanderctl.8 distro/common/man/man8/chef-server-webui.8 distro/common/man/man8/chef-server.8 distro/common/man/man8/chef-solo.8 distro/common/man/man8/chef-solr.8 lib/chef/api_client.rb lib/chef/rest.rb lib/chef/version.rb spec/functional/knife/ssh_spec.rb spec/functional/resource/cookbook_file_spec.rb spec/spec_helper.rb spec/stress/win32/security_spec.rb spec/support/shared/functional/securable_resource.rb spec/unit/config_spec.rb spec/unit/knife/ssh_spec.rb
* | [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-3026-0/+95
|/ | | | The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!
* big refactor of the repo layout. move to a chef gem and a chef-server gem ↵Ezra Zygmuntowicz2008-10-089-54/+0
| | | | all with proper deps
* Adding specs for new resource types, fixes to node, mixin::templateAdam Jacob2008-09-081-0/+1
|
* Adding chef-solo command, config examples, Chef::Log class, ↵Adam Jacob2008-04-084-3/+18
| | | | Chef::Log::Formatter, Chef::Compile, and all the tests
* Adding the Params::Validate mixin, refactored Chef::Config to be a ↵Adam Jacob2008-04-071-0/+3
| | | | singleton, Implemented require_recipe
* Adding a File providerAdam Jacob2008-03-231-1/+1
|
* Getting rid of coverage in gitAdam Jacob2008-03-142-0/+7
|
* Adding cookbook support, updating rcov coverageAdam Jacob2008-03-126-3/+20
|
* Moving variables to attributesAdam Jacob2008-03-101-0/+0
|
* Added rcov coverage, lots of tests, definitions, node supportAdam Jacob2008-03-101-0/+11