summaryrefslogtreecommitdiff
path: root/spec/unit/provider/package/zypper_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix Style/HashSyntaxLamont Granquist2018-07-021-6/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Unification of shell_out APIsLamont Granquist2018-06-151-40/+36
| | | | | | | converts all usage to just shell_out() from the numerous helper utilities that we've had previously. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove uses of shell_out_compact_timeoutLamont Granquist2018-05-311-8/+8
| | | | | | just use shell_out_compact now. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix NoMethodError when (un)locking single packages in apt and zypperJonathan Hartman2018-04-091-0/+67
| | | | | | | | These resources don't coerce `package_name` to an array so would raise an exception when trying to call `name.all?` when `package_name`, and thus `name`, was a string. Signed-off-by: Jonathan Hartman <j@hartman.io>
* Detect new "automatically" installed string in ZypperTim Smith2018-03-191-0/+8
| | | | | | | | | | This resolves issue #6836 which explains the issue in great detail. TLDR: Packages that are installed as deps on another package have a different string when you get info on them now. This updates the regex to detect both. Based on the zypper changelog I believe this was introduced in 1.13.17. Signed-off-by: Tim Smith <tsmith@chef.io>
* add allow_downgrade to zypper_package resourceEike Waldt2017-10-061-0/+8
| | | | Signed-off-by: Eike Waldt <waldt@b1-systems.de>
* Enable zypper package optionsshain/enable_zypper_optionsScott Hain2017-07-031-0/+43
| | | | Signed-off-by: Scott Hain <shain@chef.io>
* Chef-13: turn on zypper gpg checks by defaultlcg/zypper-gpgLamont Granquist2017-04-021-76/+33
| | | | | | | | | | Adds a gpg_check property to the resource to turn them off on a per-resource basis. The global config is also preserved. The global config will warn once if you have it set to turn off gpg checks. The per-resource property will not warn (presumably you know you're doing something bad when you turn it off). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* package provider cleanuplcg/package-cleanupLamont Granquist2017-02-111-34/+34
| | | | | | | | | - 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>
* cleaned comments in specc52275322016-09-281-18/+0
|
* added (un)lock_package for apt and zypperc52275322016-09-281-4/+68
|
* implement lockingc52275322016-09-281-0/+18
|
* added "zypper info" tests for 1.12.* and 1.13.* formatEike Waldt2016-07-141-2/+18
|
* autofixing auto-inserted delimiterslcg/chefstyle-batchLamont Granquist2016-02-091-2/+2
|
* auto fixing some rubocopsLamont Granquist2016-02-091-2/+2
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-14/+8
| | | | | | | | | | | | | | | | | | | | | | 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"
* zypper multipackage patchLamont Granquist2016-01-251-52/+26
|
* Added support for Zypper to install multiple packages at onceYorgos Saslis2016-01-251-0/+36
| | | | See #3570
* Use double quotes by defaultThom May2016-01-141-1/+1
| | | | | | | 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.
* chocolatey multipackage providerlcg/chocolatey-packageLamont Granquist2016-01-081-1/+1
|
* Use properties in package resourcesjk/package-propertiesJohn Keiser2015-12-151-1/+0
|
* wire zypper_package up to the DSLLamont Granquist2015-06-031-2/+2
| | | | | | i'm not sure how anybody has been using this resource, but think we may have broken this in 12.0.0 at some point, at any rate this will make it a lot easier for people to actually use.
* fix package timeout attributeLamont Granquist2015-06-021-90/+125
| | | | | | | | | | updates all the shell_out calls to respect the timeout which is passed on the new_resource. the old `Chef::Config` yum timeout values are still respected and will override the default. the default of 900 seconds is preserved.
* fix aix related providers to replace popen4 with mixlib shell_outkaustubh-d2015-02-171-12/+9
|
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-47/+47
| | | | mechanically generated patch using transpec 2.3.7 gem
* Add unit test for #1174Julian C. Dunn2014-08-031-16/+28
|
* fix should_not raise_error(SpecificException)Lamont Granquist2014-01-291-1/+1
|
* s/mock\(/double(/gLamont Granquist2014-01-291-2/+2
|
* s/stub!/stub/gLamont Granquist2014-01-291-7/+7
| | | | fix deprecation warnings
* [CHEF-3366] Add --non-interactive option to zypper info to prevent it from ↵Adam Spiers2013-06-181-1/+1
| | | | | | | | | blocking. If the machine has a local network issue which means that zypper can't contact the remote repositories, it will get stuck in the interactive "Abort, retry, ignore?" loop. When zypper is invoked from Chef, this hang can easily be prevented with the -n switch.
* CHEf-4090: refactor zypper commands and use shell_outIonuț Arțăriși2013-05-241-45/+44
|
* CHEF-3938: create global config option for zypper gpg checksIonuț Arțăriși2013-04-111-2/+65
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+159
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!