summaryrefslogtreecommitdiff
path: root/spec/unit/provider/package/yum_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Yum package provider rewriteLamont Granquist2018-03-151-2294/+0
| | | | | | squash and rebase of all the work Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove a whole bunch more stubbed property stuff.Noah Kantrowitz2017-04-111-10/+10
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Fix expand_options to cope with arrays too.Noah Kantrowitz2017-04-101-2/+2
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* We missed this when options got converted to an array.Noah Kantrowitz2017-04-101-5/+5
| | | | | | Use the actual resource code paths to make it less unit-y but more accurate for the future. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* package provider cleanuplcg/package-cleanupLamont Granquist2017-02-111-3/+4
| | | | | | | | | - cleans up a lot of ivar usage - converts most providers to shell_out_compact_timeout! - almost deprecates a few APIs, but can't quite yet - windows providers need mixlib-shellout to take an argv Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add mutlipackage_api support to yum_package Providertduffield/COOL-612/yum-provider-archTom Duffield2017-02-081-58/+47
| | | | | | | | | An initial refactor to add multipackage_api support to the yum_package provider. There probably needs to be an additional refactor to make this provider look a little bit more like the DNF provider, but this should buy us some time and address some bugs. Signed-off-by: Tom Duffield <tom@chef.io>
* Add specs to cover yum_package failure scenariosTom Duffield2017-02-071-0/+18
| | | | Signed-off-by: Tom Duffield <tom@chef.io>
* added locking for yumEike Waldt2016-09-291-0/+18
|
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-54/+55
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fixing Lint/Void copLamont Granquist2016-08-161-6/+6
|
* Too much log output and unnecessary warnings! Suppress that shit.Kartik Null Cating-Subramanian2016-04-251-1/+1
|
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-43/+43
| | | | no enforced trailing comma on arguments...
* deal with 0.37.2 renamed copsLamont Granquist2016-02-181-22/+22
| | | | | | | | | | | | | | | 252 Style/TrailingCommaInLiteral 84 Style/TrailingCommaInArguments 15 Style/SpaceAroundKeyword -- 351 Total We already dealt with SpaceAroundKeyword under its old name SpaceBeforeModifierKeyword, it looks like it got stricter about spaces after keywords. TrailingComma also got split, and it looks like the TrailingCommaInArguments behavior is new?
* autofixing auto-inserted delimiterslcg/chefstyle-batchLamont Granquist2016-02-091-21/+21
|
* auto fixing some rubocopsLamont Granquist2016-02-091-21/+21
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-34/+32
| | | | | | | | | | | | | | | | | | | | | | 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"
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-141-117/+117
| | | | | | | 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-39/+39
| | | | chefstyle -a fixed 1044 occurrances
* fix some lint copsLamont Granquist2016-01-121-1/+1
| | | | | | | | | fixes the following offenses: 46 Lint/EndAlignment 21 Lint/BlockAlignment 3 Lint/SpaceBeforeFirstArg 1 Lint/DefEndAlignment
* Use the proper python interpretor for yum-dump.py on Fedora 21+Tim Smith2015-11-051-0/+6
| | | | | | | | | | | Fedora 21+ use dnf as the primary package manager. Lamont added code in 12.5 to allow for a yum compat mode. This doesn't entirely work though as we need yum-dump.py to correctly run. We were parsing the shabang in the yum binary to find the path to python. On a dnf system the yum binary is a bash script though so we were trying to run yum-dump.py using bash which obviously fails. I added a fallback method to use python if the shebang parsing returns bash. With this in place AND the yum package installed you can use the package resource on Fedora.
* fixes from code reviewLamont Granquist2015-08-201-0/+40
|
* add a test for the new provider behaviorLamont Granquist2015-08-201-1/+14
|
* green the broken testsLamont Granquist2015-08-201-23/+43
|
* Fix installation of yum packages with version constraintsojab2015-05-011-0/+50
| | | | Fixes #2778
* Make multipackage and arch play nicely togetherPhil Dibowitz2015-04-291-0/+26
| | | | Fixes #3233
* Use the same python interpreter as yum when possiblessd/find-pythonSteven Danna2015-03-311-1/+35
| | | | | | | | We rely on a system python installation with the correct python libraries. To improve the chances that the python interpreter we call has the yum libary available, we use the same interpreter as yum uses. Fixes #3143
* Assert that candidate_version gets set when yum resource uses sourceJay Mundrawala2015-03-161-0/+14
|
* Update specs for yum package provider to use shell_outJay Mundrawala2015-03-021-13/+15
|
* Updated version of #2125 to fix CHEF-2911Jon Cowie2015-02-131-17/+119
| | | | This pull request allows a version requirement such as ` = 1.0.1` to be specified in either the resource name or the version attribute of a yum_package resource, and modifies the yum package provider to update existing packages based on that requirement. Also adds specs to test this new functionality.
* specsLamont Granquist2015-02-051-1/+1
|
* Multipackage fixes to superclassLamont Granquist2015-02-031-12/+11
| | | | | | | - fixes define_resource_requirements - better idempotency (only packages that need updating are updated) - better messaging (only packages that update are output) - better comments
* Some more yum testsPhil Dibowitz2015-02-031-0/+34
|
* Some yum testsPhil Dibowitz2015-02-031-0/+66
|
* Merge in the cleanups from reverted array diff.Phil Dibowitz2015-02-031-8/+8
|
* Revert "Make yum always use arrays internally"Phil Dibowitz2015-02-031-34/+34
| | | | | | | | This reverts commit a88c852e7166c2d209d0670f668cf67feab19222. We can't easily do this without changing a LOT of other assumptions. Since all the consumer sites already call `as_array` functions, it's easier to keep those safe.
* Make yum always use arrays internallyPhil Dibowitz2015-02-031-34/+34
| | | | Also handle a lot more corner casses consistently and cleanup more code.
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-416/+416
| | | | mechanically generated patch using transpec 2.3.7 gem
* CHEF-3193: LOCK_TIMEOUT in yum-dump.py should be configurableMark Vanderwiel2014-05-291-4/+11
| | | | | | Allow yum lock timeout from Chef Config yum_timeout. Issue: CHEF-3193
* fix should_not raise_error(SpecificException)Lamont Granquist2014-01-291-8/+8
|
* s/mock\(/double(/gLamont Granquist2014-01-291-28/+28
|
* s/stub!/stub/gLamont Granquist2014-01-291-64/+64
| | | | fix deprecation warnings
* Don't call readlines on stderr which is a string object.sersut2013-06-281-36/+17
|
* CHEF-3521: Wrap the call to yum-dump.rb in a configurable timeout.Phil Dibowitz2013-06-191-20/+36
|
* Merge branch '10-stable' into integrate-chef-10-18-0danielsdeleo2013-01-171-11/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Finished refactoring converge and updated teststylercloke2012-11-051-4/+0
| | | | so that converge and converge! are no longer a method in the provider and why_run, respectively. There is instead set_updated_status in provider. Everything is now converged in why_run's add_action, so neither of the converge methods should ever need to be called. Updated tests to reflect this. Removed all calls to converge, and replaced with set_updated_status only for tests that are looking at the update status of a provider, where the converge behavior has been mocked out.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+1795
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!