summaryrefslogtreecommitdiff
path: root/spec/data
Commit message (Collapse)AuthorAgeFilesLines
* renew an expired SSL CertificateKapil Chouhan2020-08-121-15/+15
| | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* Use .match? not =~ when match values aren't necessaryTim Smith2020-06-113-3/+3
| | | | | | Autocorrected from RuboCop Performance which is now smart enough to detect when you use the match and when you don't. Using match? does not create any objects so it's slightly faster and uses less memory. Signed-off-by: Tim Smith <tsmith@chef.io>
* some spec typosVivek Singh2020-04-071-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Fix windows_certificate functional tests under buildkiteKapil/GitHub-9435_Fix_windows_certificate_functional_tests_under_buildkiteKapil Chouhan2020-03-096-39/+36
| | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* 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>
* Improving error handling for template renderGabriel Mazetto2019-05-261-0/+5
| | | | | | | | | | | | While Chef already implements a nice amount of information in `TemplateError#to_s`, when using ChefSpec with RSpec, the `#to_s` is not called, leaving us with no source information for template errors. By adding the filename to `Erubis::Eruby` initialization, we can get a better backtrace that will show up in RSpec output. Signed-off-by: Gabriel Mazetto <brodock@gmail.com>
* Merge pull request #8307 from ↵Tim Smith2019-05-072-0/+4
|\ | | | | | | | | MsysTechnologiesllc/Kapil/MSYS-986_Move_response_file_and_response_file_variables_out_of_base_package_resource package: move response_file and response_file_variables out of base package resource
| * 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>
* | Chef-15: cookbook compiler should parse only .rb fileslcg/parse-only-rb-filesLamont Granquist2019-05-036-0/+6
|/ | | | | | | Fixes #6281 which is a frequently reported issue where md files and swap files and other junk causes the cookbook compiler to barf. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Use an empty dir for certs test instead of trying to mock oneMarc A. Paradise2019-04-242-0/+1
| | | | | | | | | When no certs are available, test with an actual empty certs dir. This works around a problem with the mock where on the Windows platform, a buried call to Dir.glob is returning the actual certificates directory content instead of the empty list required for the test. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* windows_certificate: Import root/nested certificates while importing P7B ↵Nimesh-Msys2019-02-251-0/+0
| | | | | | | | | | certificates - P7B might contain multiple certificates and we should not miss the internal one while import. - Added test cases and ensured chef-style - Fixes: MSYS-977 Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* Windows Certificate: Add support to import Base 64 encoded CER certificatesNimesh-Msys2019-02-121-0/+22
| | | | | | | | | | - Till now, cer certificates were only considered to be in binary format (DER) - They can also be base-64 encoded(PEM) - We should only append "inform DER" only if it is a binary certificate, otherwise, default ("inform PEM") would support base64 encoded certificates. - Added test caes - Ensured Chef style Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* Adding Functional specs for windows_certificate.Nimesh-Msys2019-01-244-0/+21
| | | | | | - Mostly focus on all major actions and their idempotency. Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
* Nuke opscode from the spec cookbook dataTim Smith2019-01-222-4/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove attributes from the spec metadataTim Smith2019-01-221-5/+0
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* user resource: Remove support for macOS 10.7 and 10.7 upgraded to 10.8+Tim Smith2019-01-146-1720/+0
| | | | | | We can greatly simplify our dscl user provider by removing support for macOS 10.7 and 10.7 which has been upgraded to 10.8. No one is using this anyone as it's beyond EOL with Apple and has been for years. Signed-off-by: Tim Smith <tsmith@chef.io>
* add method to generate multiipart form dataS.Cavallo2018-11-288-0/+328
| | | | | move snap api json response into fixture data - chefstyle was very unhappy with inline data defs Signed-off-by: S.Cavallo <smcavallo@hotmail.com>
* Added source_file to FromFileZeal Jagannatha2018-03-052-0/+5
| | | | | | This new field tracks the file from which the object was loaded. Signed-off-by: Zeal Jagannatha <zealjagannatha@gmail.com>
* Escape single-quoted strings from the contextAllan Espinosa2017-12-201-0/+2
| | | | | | Fixes #6680 Signed-off-by: Allan Espinosa <aespinosa33@bloomberg.net>
* Merge pull request #6023 from coderanger/root-aliasNoah Kantrowitz2017-04-0511-1/+17
|\ | | | | Improve coverage of root alias tests
| * Improve coverage of root alias tests.Noah Kantrowitz2017-04-0511-1/+17
| | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | Merge branch 'master' into always-inlineNoah Kantrowitz2017-04-053-0/+6
|\ \ | |/ | | | | 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>
* | Update some more tests for removing use_inline_resources.Noah Kantrowitz2017-04-041-2/+0
| | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | The tests using these providers expect the pre-inline behavior and I don’t ↵Noah Kantrowitz2017-04-043-3/+3
|/ | | | | | feel like updating them this second. 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>
* Add Shell SoloSession testsSalim Afiune2017-03-171-0/+2
| | | | Signed-off-by: Salim Afiune <afiune@chef.io>
* Chef-13: Chef::Resource cleanupLamont Granquist2017-03-087-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | most of this deletes useless old code. the change to lookup_provider_constant changes to more strictly stop using class name based lookups and to go through the resource resolver and provider resolver. as a result in order to find the provider class for a given dsl name you have to go through the resource resolver to find the resource in order to be able to pass a resource instance through the provider resolver. since the provider resolver api passes resources into blocks passed into provides api you must construct a resource instance. that means that providers need to be associated with resources in order to be looked up (which makes sense in Real Life(tm) use of Chef, but breaks quite a few lazy tests we had where we constructed providers without doing the work of wrapping them in a resource. note that as the deploy resource shows this filters into a changed behavior of the `provider` syntax where before `provider :revision` would look up Chef::Provider::Deploy::Revision via class-name based magic. this breaks that API so that `provider :deploy_revision` is used instead -- the symbol (or string) there is turned into a resource first via the Chef::ResourceResolver and then looked up via the Chef::ProviderResolver into Chef::Provider::Deploy::Revision. this is a breaking change but is also a bug fix so that the symbol here goes through the same lookup that you get when you type it in the DSL. i had considered implementing a lookup from a resource_name symbol to a provider, but in looking at how to implement that in the ProviderResolver the issue is that we really need to have a resource instance order to pass to the ProviderResolver. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* final fix for ohai-13 breakagelcg/bump-to-chef-13Lamont Granquist2017-02-281-10/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* favor metadata.json over metadata.rbLamont Granquist2017-01-243-0/+57
| | | | | | | make sure that if we have a metadata.rb that is not valid to read that we never parse that and use compiled metadata.json instead. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* msu_package resource for Microsoft Update packagesNimishaS2016-11-163-0/+40
| | | | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com> Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* Updating knife ssl fetch to correctly store certificates when it does not ↵2919/ssl_fetch_no_cntyler-ball2016-10-311-0/+36
| | | | | | contain a common name. Stores the certificate under the URI host instead of the common name in that case Signed-off-by: tyler-ball <tyleraball@gmail.com>
* Fixed review commentsVasu11052016-09-303-0/+3
| | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@clogeny.com>
* Attributes v1.1 changeslcg/attributes-v1.1Lamont Granquist2016-06-279-26/+18
| | | | | | | | | | | - fixes *_unless behavior and set_unless_value_present hack from Chef 12 - simplifies rm_* code - introduces functional read/write/unlink/exist? API - deprecates method_missing access to attributes for Chef 13 - deprecates set/set_unless aliases for Chef 14 - removes MultiMash mess that I wrote for Chef 13 https://github.com/chef/chef/pull/5029 for more details
* 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
|
* Make chef-client read client.dJay Mundrawala2016-02-242-0/+2
| | | | | client.d/*.rb will be read in sorted order. All directories will be ignored.
* Copy client.d files during bootstrapJay Mundrawala2016-02-243-0/+4
| | | | | When knife finds a client.d/ directory, it will upload all files nested under that directory.
* Update for chef.io domain in copyright lines too.Noah Kantrowitz2016-02-023-3/+3
|
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-023-6/+6
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-026-9/+9
| | | 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"
* Merge pull request #4388 from chef/lcg/more-rubocop-lintThom May2016-01-131-2/+1
|\ | | | | more rubocop fixes
| * more rubocop fixeslcg/more-rubocop-lintLamont Granquist2016-01-121-2/+1
| | | | | | | | | | | | | | | | | | | | | | fixes: Lint/UnreachableCode Lint/NonLocalExitFromIterator Lint/LiteralInCondition Lint/EmptyEnsure Lint/DefEndAlignment Lint/CircularArgumentReference
* | 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.
* rebuilt deb fixtures on 10.04 to fix 10.04Lamont Granquist2015-12-0932-966/+222
|
* dpkg multipackage and bonus fixesLamont Granquist2015-12-0228-0/+1011
| | | | | | | | - multipackages dpkg_package - fixes edge conditions in load-current-resource around purging/removing packages that threw errors before - fixes the ability to purge packages that have been removed - adds a lot of functional tests for dpkg_package
* Merge pull request #3510 from ckaushik/issue_2513Thom May2015-09-022-0/+2
|\ | | | | Fixing Issue #2513 - the broken render of nested partial templates