summaryrefslogtreecommitdiff
path: root/spec/unit/provider/package/windows_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-2/+2
| | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix 4 copsLamont Granquist2019-07-051-1/+2
| | | | | | | | | | | | | | - Layout/MultilineMethodCallBraceLayout - Layout/ClosingParenthesisIndentation - Layout/IndentFirstArgument EnforcedStyle: consistent - Layout/BlockEndNewline the first of these autocorrected to horrible looking code which exposed that we really needed the other three as well, which also cleaned up a bunch of other terrible looking code. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* MSYS-858 : added warning if allow_downgrade set to be false and tried to ↵piyushawasthi2018-07-261-0/+1
| | | | | | install older version Signed-off-by: piyushawasthi <piyush.awasthi@msystechnologies.com>
* fix Style/HashSyntaxLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add whyrun message when installing a local from on windowsJosh Barker2018-06-091-3/+10
| | | | Signed-off-by: Josh Barker <josh.barker.developer@gmail.com>
* Check local file exists before installing a windows packageJosh Barker2018-05-261-0/+12
| | | | Signed-off-by: Josh Barker <josh.barker.developer@gmail.com>
* MSYS-631 Added tests for ↵piyushawasthi2017-08-081-1/+1
| | | | | | Chef::Provider::Package::Windows::RegistryUninstallEntry.find_entries Signed-off-by: piyushawasthi <piyush.awasthi@msystechnologies.com>
* package provider cleanuplcg/package-cleanupLamont Granquist2017-02-111-1/+2
| | | | | | | | | - 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>
* remove excessive mockinglcg/package-inline-resourcesLamont Granquist2016-10-211-3/+3
| | | | | | | we have too much collaboration and state in our objects to write pure unit tests. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fixed undefined short_cksum method issue and checksum in uppercase issue for ↵Aliasgar162016-09-201-0/+45
| | | | | | | | | | windows_package resource. (#5332) * Fixed undefined short_cksum method issue and checksum in uppercase issue for windows_package resource. * Added RSpecs for the changes done here. * Fixed RSpecs issues.
* fixes #4639 and returns true from define_resource_requirements for MSIsmsiMatt Wrock2016-02-291-0/+9
|
* fixed exe package downloadsMatt Wrock2016-02-221-1/+13
|
* autofixing whitespace copsLamont Granquist2016-02-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | 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
* 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-28/+28
| | | | | | | 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-3/+3
| | | | chefstyle -a fixed 1044 occurrances
* 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
|
* adds support to installer types inno, nsis, wise and installshield top the ↵Matt Wrock2015-12-071-26/+227
| | | | windows_package resource
* 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
|
* Fix windows specs for windows package type.Serdar Sutay2014-10-301-2/+2
|
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-4/+4
| | | | mechanically generated patch using transpec 2.3.7 gem
* CHEF-5322: Add utility for validating Windows pathsBryan McLellan2014-06-051-0/+6
|
* CHEF-5087: Hide win32 if not on windowsBryan McLellan2014-03-281-1/+1
|
* CHEF-5087: Add a Windows Installer package providerBryan McLellan2014-03-271-0/+80
Adds the framework for a windows package provider, which must determine the correct provider by examining metadata about the source file, or the source file itself. Provides FFI based access to the Windows Installer functions to retrieve metadata from the MSI files and from the Windows product database. Combines both of these into an MSI package provider. Continues to work alongside the windows_package LWRP.