summaryrefslogtreecommitdiff
path: root/spec/unit/provider/package
Commit message (Collapse)AuthorAgeFilesLines
* fexes #4354 and fiexs #4372 stop trying to auto detect versions for exe ↵no_version_detectMatt Wrock2016-01-111-69/+5
| | | | installers
* chocolatey multipackage providerlcg/chocolatey-packageLamont Granquist2016-01-082-1/+423
|
* Merge pull request #4320 from chef/jk/fix-package-nil-warningJay Mundrawala2015-12-161-5/+1
|\ | | | | Fix failing package unit test
| * Fix failing package unit testjk/fix-package-nil-warningJohn Keiser2015-12-161-5/+1
| |
* | fixing post merge test breaksMatt Wrock2015-12-151-2/+2
| |
* | non msi packages must explicitly provide a source attribute on installMatt Wrock2015-12-151-5/+15
|/
* Use properties in package resourcesjk/package-propertiesJohn Keiser2015-12-152-2/+0
|
* Merge pull request #4193 from chef/mwrock/packageSalim Alam2015-12-083-36/+572
|\ | | | | adds support for installer types inno, nsis, wise and installshield to windows_package resource
| * adds support to installer types inno, nsis, wise and installshield top the ↵Matt Wrock2015-12-073-36/+572
| | | | | | | | windows_package resource
* | restore handling of dpkg -s returns codes (w/tests)lcg/dpkg-s-return-codesLamont Granquist2015-12-071-3/+38
|/ | | | | | | | | | | | | | | | Previously dpkg -s would allow a 0 or 1 exit status and it wasn't entirely clear why this was so either from the code or the tests. This restores throwing an exception if we are outside of the [0,1] range, and then adds tests for both behaviors: - on old ubuntu/debian we get an exit(0) and output on stdout if the file is not installed - on newer ubuntu/debian we get an exit(1) and output on stderr if the file is not installed Added tests for both those cases, and the case where dpkg -s does some other kind of exitcode barf and we should raise.
* dpkg multipackage and bonus fixesLamont Granquist2015-12-021-39/+40
| | | | | | | | - 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
* dpkg provider cleanupLamont Granquist2015-11-201-85/+138
| | | | | | | | | | | | | | - :update and :install are now treated the same way and throw the same exceptions - :remove and :purge don't require the source at all, so don't do any checking on that - fix some convoluted side-effecty logic in load_current_resource - load_current_resource now correctly gets the dpkg state on :remove and :purge when the file does not exist (pretty sure the old logic did not) - fixed the FIXME about using en_US.UTF-8 (the default for shell_out!) - just use shell_out! to throw exceptions - clean up all the specs and remove all the instance vars from the code
* 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.
* Use much simpler regex for determining the rpm versionIrving Popovetsky2015-09-291-1/+18
|
* 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
|
* Merge pull request #3383 from jfly/masterThom May2015-08-131-0/+18
|\ | | | | gem_package should install to the systemwide Ruby when using ChefDK.
| * Added some pretty straightforward tests of is_omnibus?Jeremy Fleischman2015-05-181-0/+18
| |
* | Use the output of dpkg-deb directly, rather than regextm/use-dpkg-debThom May2015-08-121-1/+8
| | | | | | | | Thanks to @kwilczynski for the original implementation
* | Make the install/uninstall tests run more realisticallydanielsdeleo2015-06-091-104/+162
| | | | | | | | | | Call all the methods Provider#run_action would call rather than just poking lower-level implementation.
* | Move 3503 regression tests into main describe blockdanielsdeleo2015-06-091-118/+59
| |
* | Clean up RPM package provider specsdanielsdeleo2015-06-091-76/+173
| | | | | | | | | | | | | | | | | | | | Most egregious problem was stubbing two shellout calls at once, which was confusing and let some shell_out calls slip though the stubbing. Also added a bogus catchall stub to ensure that all calls to shell out have a corresponding stub. Additionally, re-arranged some tests which were not in a sensible test context.
* | Update tests to ensure shellout calls are stubbeddanielsdeleo2015-06-091-34/+79
| |
* | Adding rspec tests to cover the install, upgrade and noop scenarios when the ↵Irving Popovetsky2015-06-091-0/+70
| | | | | | | | package has a tilde character in the version
* | 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-0214-217/+251
| | | | | | | | | | | | | | | | | | | | 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.
* | Drop support for rubygems 1.xdrop-rubygems-1.xdanielsdeleo2015-06-011-32/+0
| | | | | | | | | | Ruby 2.0 is the oldest release we support, and it ships with Rubygems 2.0: https://github.com/ruby/ruby/blob/v2_0_0_0/lib/rubygems.rb#L11
* | Purge pending specscleanup-pendingdanielsdeleo2015-05-232-24/+1
|/ | | | RSpec isn't a bug database
* download_file_missing? -> downloadable_file_missing?Jay Mundrawala2015-05-151-2/+2
|
* Allow users to override remote_file attributes in windows_packageJay Mundrawala2015-05-151-0/+13
|
* Refactor uri detectionJay Mundrawala2015-05-151-2/+2
|
* Added specs to for windows_package provider's uri featureJay Mundrawala2015-05-151-24/+90
|
* Modify windows package provider to allow urlJay Mundrawala2015-05-151-3/+3
|
* Merge pull request #3298 from juliandunn/fix-aix-source-packageJulian C. Dunn2015-05-041-8/+20
|\ | | | | fix AIX package installs using a 'source' attribute
| * Fix tests. Add test for source not providing the requested package.Julian C. Dunn2015-04-291-8/+20
| |
* | Fix installation of yum packages with version constraintsojab2015-05-011-0/+50
| | | | | | | | Fixes #2778
* | fix smartos_package for new "pkgin" output, fixes #3112Dave Eddy2015-05-011-40/+50
| |
* | Make multipackage and arch play nicely togetherPhil Dibowitz2015-04-291-0/+26
|/ | | | Fixes #3233
* Merge pull request #3166 from chef/ssd/find-pythonThom May2015-04-251-1/+35
|\ | | | | Use the same python interpreter as yum when possible
| * 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
* | Clearing sources works for string optionsPeter Burkholder2015-03-271-0/+10
| |
* | Test for current behaviorPeter Burkholder2015-03-271-0/+9
|/
* Added more specs for openbsd provider unit testsjdm/openbsdJay Mundrawala2015-03-201-17/+105
|
* 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
|
* fix dpkg regressionLamont Granquist2015-02-191-0/+1
|
* Merge pull request #2924 from chef/btm/popen_shellout_rebaseJay Mundrawala2015-02-198-114/+108
|\ | | | | fix aix related providers to replace popen4 with mixlib shell_out
| * Make tests pass on Windowsbtm/popen_shellout_rebaseJay Mundrawala2015-02-181-1/+1
| |
| * Fix unit specs for PR #2934Jay Mundrawala2015-02-181-3/+3
| |