summaryrefslogtreecommitdiff
path: root/spec/functional/resource/package_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use apt_package instead of package, and rename filetm/apt_package_insanityLamont Granquist2018-02-021-386/+0
| | | | | | this really only tests apt_package, but was written before Chef 12. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Attributes v1.1 changeslcg/attributes-v1.1Lamont Granquist2016-06-271-1/+1
| | | | | | | | | | | - 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
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-1/+1
| | | | no enforced trailing comma on arguments...
* auto fixing some rubocopsLamont Granquist2016-02-091-1/+1
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-6/+4
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* 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"
* Use double quotes by defaultThom May2016-01-141-4/+4
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-1/+1
| | | | chefstyle -a fixed 1044 occurrances
* dpkg multipackage and bonus fixesLamont Granquist2015-12-021-1/+1
| | | | | | | | - 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
* Make specs marked ":provider" run againJohn Keiser2015-06-301-2/+0
|
* Update to RSpec 3.Claire McQuin2014-10-291-22/+22
|
* Make FileVendor configuration specific to the two implementationsdanielsdeleo2014-07-301-3/+1
| | | | | | | | | | | | | | | | FileVendor previously was configured by storing a closure/anonymous function as a class instance variable. This had the following downsides: * The API was too general, which caused a lot of code repetition * The block was lazily evaluated, which hid errors and made testing more difficult * The closures captured references to classes with references to large data structures, which complicates GC. Since we've only ever had the same two implementations of FileVendor, we can encapsulate configuration of the FileVendor factory by wrapping each configuration option in a method. As a side benefit, arguments to these methods will be eagerly evaluated, which makes it easier to detect errors.
* CHEF-4849: Use preseed-template-variables.seedBryan McLellan2013-12-201-1/+1
| | | | | | I believe this file was the intended preseed file to use for the response_file tests instead of the existing preseed-template.seed which uses a different variable.
* CHEF-4849: Implement `#response_file_variables` in Package resourcePeter Fern2013-12-201-0/+17
| | | | | | | | 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).
* Reset configuration before each testJohn Keiser2013-09-161-6/+0
|
* Use Chef::Config.reset in tests instead of save/load configJohn Keiser2013-09-131-2/+6
|
* Fix package remove/purge tests for older debian/ubuntudanielsdeleo2013-08-021-3/+25
|
* Remove unused methods from functional testsdanielsdeleo2013-08-021-9/+0
|
* Verify that templates are preferred to files for preseedingdanielsdeleo2013-08-021-0/+4
|
* Remove commented test codedanielsdeleo2013-08-021-5/+0
|
* Add additional scenarios for package testsdanielsdeleo2013-08-021-0/+68
| | | | | | Adds functional test coverage for install, upgrade, remove, purge actions when the specified package is installed at either the latest version or at an older version.
* Fix bad const. ref in deprecation/provider/templatedanielsdeleo2013-08-021-4/+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-021-0/+300
Repro/regression test for CHEF-4406 included but is marked pending.