summaryrefslogtreecommitdiff
path: root/spec/unit/provider/package
Commit message (Collapse)AuthorAgeFilesLines
...
| * fix aix related providers to replace popen4 with mixlib shell_outkaustubh-d2015-02-177-110/+104
| |
* | Added spec for #2914lcg/fix-multipackageJay Mundrawala2015-02-171-0/+15
| |
* | fix virtual package logic in check_package_stateLamont Granquist2015-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since check_package_state calls itself to check virtual packages the array building it does was getting indexed incorrectly as the virtual packages were getting inserted into arrays that were supposed to be indexed by the package arguments the user gave. there was also a bug which broke idempotency with virtual packages and would cause virtual packages to get reinstalled every time (installed_version not geting correctly inherited from the virtual package). WIP2 remove debug fix specs
* | convert is_virtual_package to hashLamont Granquist2015-02-171-1/+1
|/ | | | | | | | | make this a hash based on name so that when we pass an array of names to install_package we can look up the right one and do not have to synchronize arrays. we should probably convert the arrays in the superclass to hashes based on name as well.
* 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.
* allow_downgrade in rpm_packagesonots2015-02-121-0/+12
|
* Support HTTP/FTP source on rpm_packagesonots2015-02-091-0/+26
|
* specsLamont Granquist2015-02-051-1/+1
|
* Try to fix spec againPhil Dibowitz2015-02-041-1/+1
|
* fix rubygems specLamont Granquist2015-02-031-1/+1
|
* Multipackage fixes to superclassLamont Granquist2015-02-037-44/+66
| | | | | | | - 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.
* use context in conjunction with let as opposed to local variables and ↵David Crowder2015-01-281-62/+61
| | | | require shellout explicitly in the provider
* fix error in tests where shell_out was being expected incorrectlyDavid Crowder2015-01-281-3/+3
|
* switch to the let syntax for the rpm spec tests instead of a before block ↵David Crowder2015-01-281-74/+82
| | | | with instance variables
* use shell_out! where appropriate and revert incorrectly scoped variableDavid Crowder2015-01-281-7/+7
|
* Fix #2663 - refactor to use shell_out in rpm providerDavid Crowder2015-01-281-15/+18
|
* fix apt default_release attribute broken in 12.0Lamont Granquist2014-12-151-257/+264
| | | | | | | | | | | | | the apt provider attempts to check if it has a provider that responds to :default_release (i.e. a real apt_package resource) via if the provider attribute is explicitly set or not, which is relying on a side-effect which broke in 12.0. the correct behavior is just to duck-type the new_resource object and see if it respond_to?(:default_release) and then use it if it does. Also the unit tests were not testing the apt_provider against both the package and apt_package resources. Added some hacky spec code (which needs a cleanup) to at least exercise the use cases.
* Changed spec descriptionJay Mundrawala2014-12-151-2/+2
|
* Add specs for windows msi_specjdm/win-package-specsJay Mundrawala2014-12-141-2/+12
|
* Windows msi package privoder unit tests run on all on all systemsJay Mundrawala2014-12-141-1/+6
|
* Fixes #2578, check that `installed` isn't emptyjtimberman2014-12-091-0/+26
| | | | | | | | | The underlying issue in #2578 is when a formula is `keg_only`, but not installed, we're sending `#last` to an empty Array, which returns `nil`, and causes the `NoMethodError` reported in #2578 and in the homebrew cookbook issue. This should also resolve that issue: https://github.com/opscode-cookbooks/homebrew/issues/53
* Setting version to an empty string in testslucywyman2014-11-191-0/+8
| | | | | | | Check for nil and length on version in package/rubygems tests In gemspec test change @new_resource.instance_variable_set() to @new_resource.version()
* use PKG_PATH instead of PACKAGEROOT/SITEScott Bonds2014-11-131-4/+2
|
* simplify openbsd package providerScott Bonds2014-11-131-295/+4
|
* add openbsd package providerScott Bonds2014-11-131-0/+359
|
* Fix rubygems provider to use https instead of http.Nathan Cerny2014-11-131-6/+6
|
* Fix stub for failing spec on 1.9.3Claire McQuin2014-11-031-0/+1
|
* Merge branch 'master' into mcquin/rspec-3Claire McQuin2014-10-311-2/+2
|\
| * Fix windows specs for windows package type.Serdar Sutay2014-10-301-2/+2
| |
* | Update to RSpec 3.Claire McQuin2014-10-293-14/+14
|/
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-2420-1081/+1081
| | | | mechanically generated patch using transpec 2.3.7 gem
* Chef-12 RC Provider ResolverLamont Granquist2014-10-241-1/+1
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* Fixing bug where tried to use the homebrew provider on OSX and didn't ↵tball/homebrew_fixtyler-ball2014-10-131-0/+9
| | | | correctly check for lack of homebrew-specific attribute on the resource
* Merge pull request #2051 from wacky612/pacman-fixSerdar Sutay2014-10-101-6/+2
|\ | | | | Installing bind with pacman_package fails
| * Modify testwacky2014-09-151-6/+2
| |
* | Merge pull request #1957 from BundesIT/masterSerdar Sutay2014-10-101-1/+1
|\ \ | | | | | | honor package category for paludis packages
| * | fixed unit tests for be01da9Thomas Berger2014-08-311-1/+1
| | |
* | | Merge pull request #1907 from Aevin1387/freebsd-port-pkgngSerdar Sutay2014-10-101-6/+16
|\ \ \ | | | | | | | | Have freebsd port use pkg info if the freebsd version is >= 10000017
| * | | Move supports_with_pkgng? check to the freebsd_package package.Cory Stephenson2014-08-281-8/+11
| | | |
| * | | Remove unnecessary version check in freebsd port and package tests.Cory Stephenson2014-08-271-1/+0
| | | |
| * | | Have freebsd port use pkg info if the freebsd version is >= 10000017Cory Stephenson2014-08-241-4/+12
| |/ /
* | | Spec and CHANGELOG info for: https://github.com/opscode/chef/pull/1184Serdar Sutay2014-10-091-203/+217
| | |
* | | Merge pull request #1980 from bahamas10/dave-1409788502Chris Doherty2014-10-081-1/+1
|\ \ \ | | | | | | | | fix FreeBSD pkgng provider (version detection)
| * | | add example stdout to freebsd pkgng test specDave Eddy2014-09-091-1/+1
| |/ /
* | | homebrew_owner now tries to run homebrew as the user who owns the `brew` ↵tyler-ball2014-10-071-4/+10
| | | | | | | | | | | | executable, or an optional homebrew_package resource attribute