summaryrefslogtreecommitdiff
path: root/spec/unit/provider
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #7379 from chef/lcg/fixing-array-argsTim Smith2018-07-1310-260/+263
|\ | | | | Fixing array args in some unix providers
| * fix missing stubs for install_profileLamont Granquist2018-07-061-0/+2
| | | | | | | | | | | | otherwise we really shell_out to profile Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * rebase + squashLamont Granquist2018-07-0610-260/+261
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Remove require mixlib/shellouts where not necessaryrequire_the_right_shelloutTim Smith2018-07-104-4/+0
| | | | | | | | | | | | the dscl user provider uses mixin/shell_out instead and the specs don't seem to use mixlib/shellout or actually need the require. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Attribute -> Property in additional placesTim Smith2018-07-101-1/+1
|/ | | | | | Specs and comments, but we should get it right in those places as well Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/MutableConstantLamont Granquist2018-07-023-6/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/PreferredHashMethodsLamont Granquist2018-07-021-7/+7
| | | | | | | absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the floor of that gem is bumped up. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Naming/HeredocDelimiterCaseLamont Granquist2018-07-021-3/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/TrailingCommaInHashLiteralLamont Granquist2018-07-022-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix some Style/StringLiterals introduced by the UnneededInterpolationLamont Granquist2018-07-021-8/+8
| | | | | | cop Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/UnneededInterpolationLamont Granquist2018-07-028-34/+34
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/LeadingCommentSpaceLamont Granquist2018-07-029-19/+19
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* clean up whitespace againLamont Granquist2018-07-029-91/+91
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/DotPositionLamont Granquist2018-07-028-65/+65
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/AlignHash caused by Style/HashSyntaxLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/IndentHeredocLamont Granquist2018-07-0230-1021/+1021
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-0273-724/+724
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix edge condition in old timeout APIslcg/deprecate-shell-out-methodsLamont Granquist2018-06-201-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Unification of shell_out APIsLamont Granquist2018-06-1533-408/+404
| | | | | | | 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>
* Merge pull request #7351 from josh-barker/bug/why-run-windows-package-local-fileTim Smith2018-06-111-3/+10
|\ | | | | Add whyrun message when installing a local file on Windows
| * 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>
* | Merge pull request #7330 from chef/lcg/deprecate-shell-out-compact-timeoutLamont Granquist2018-06-115-26/+26
|\ \ | |/ |/| Make shell_out_compact automatically pull timeouts off the resource + remove uses of shell_out_compact_timeout
| * remove uses of shell_out_compact_timeoutLamont Granquist2018-05-315-26/+26
| | | | | | | | | | | | just use shell_out_compact now. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #7259 from Intility/powershell-package-publisher-checkTim Smith2018-06-061-0/+13
|\ \ | | | | | | Add skip_publisher_check property to powershell_package
| * | skip_publisher_check testsTor Magnus Rakvåg2018-05-151-0/+13
| | | | | | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
* | | Update specs for the quotingTim Smith2018-06-041-3/+3
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #7297 from jasonwbarnett/fix-windows-startupTim Smith2018-06-031-0/+5
|\ \ \ | | | | | | | | Fix :configure_startup action to configure delayed start
| * | | Fix :configure_startup action to configure delayed startJason Barnett2018-05-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as Indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
* | | | Merge pull request #7299 from ↵Thom May2018-06-011-0/+12
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | josh-barker/josh-barker/windows-package-missing-source Check local file exists before installing a windows package
| * | | Check local file exists before installing a windows packageJosh Barker2018-05-261-0/+12
| |/ / | | | | | | | | | Signed-off-by: Josh Barker <josh.barker.developer@gmail.com>
* | | convert shell_out_with_systems_locale to `default_env: true`lcg/remove-shell-out-with-systems-localeLamont Granquist2018-05-3011-188/+188
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | change "internal" to "default_env"Lamont Granquist2018-05-302-2/+2
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | add internal flag to shell_out and execute resourceLamont Granquist2018-05-253-24/+25
|/ / | | | | | | | | | | | | | | this will wind up replacing shell_out_with_systems_locale. also fixes an issue in the sysctl provider. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #7249 from chef/lcg/cleanup-userLamont Granquist2018-05-211-2/+2
|\ \ | | | | | | Cleanup AIX and Solaris user resources.
| * | clean up solaris providerLamont Granquist2018-05-101-2/+2
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Merge pull request #7274 from mal/fix-systemd-user-callsThom May2018-05-212-41/+86
|\ \ \ | | | | | | | | Fix systemd_unit user context
| * | | Contextualise daemon-reload callsMal Graty2018-05-191-39/+84
| | | | | | | | | | | | | | | | | | | | | | | | Ensure daemon-reload is called in the correct context for user units. Signed-off-by: Mal Graty <mal.graty@googlemail.com>
| * | | Fix systemd_unit user property usageMal Graty2018-05-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use Etc.getpwnam rather than Etc.getpwuid, since getpwuid expects a UID and the resource provides a string. Signed-off-by: Mal Graty <mal.graty@googlemail.com>
* | | | Merge pull request #4903 from nmcspadden/mac_uidThom May2018-05-171-9/+2
|\ \ \ \ | |/ / / |/| | | UID now starts at 501, uses createhomedir instead
| * | | Fixing shell_out to have correct syntaxNick McSpadden2018-05-151-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Nick McSpadden <nmcspadden@gmail.com>
| * | | Updating spec testNick McSpadden2018-05-151-9/+2
| | |/ | |/|
* | | [MSYS-809] Fix for command resource does not handle commands with argumentsvasu11052018-05-151-0/+9
|/ / | | | | | | Signed-off-by: vasu1105 <vasundhara.jagdale@msystechnologies.com>
* | sadly --prune-tags is not available with old git versions, fixes #7233Roland Moriz2018-05-101-4/+4
|/ | | | Signed-off-by: Roland Moriz <roland@moriz.de>
* Fix two new Chefstyle warnings with Rubocop 0.55rubocop_055Tim Smith2018-05-031-1/+1
| | | | | | These should have been caught before. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #7214 from chef/tm/fix_unix_testsThom May2018-05-031-1/+2
|\ | | | | Ensure we don't run tests on unsupported platforms
| * Ensure we don't run tests on unsupported platformstm/fix_unix_testsThom May2018-05-021-1/+2
| | | | | | | | | | | | Our more esoteric unices need some more careful hand holding Signed-off-by: Thom May <thom@chef.io>
* | Merge pull request #6815 from ↵Bryan McLellan2018-05-021-579/+282
|\ \ | |/ |/| | | | | MsysTechnologiesllc/vasundhara/MSYS_752_windows_task_rewrite [MSYS-752] windows task rewrite using win32-taskscheduler
| * [MSYS-752] windows task rewrite using wind32-taskschedulerVasu11052018-04-241-579/+282
| | | | | | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* | Merge pull request #7129 from rmoriz/rmoriz/git-pruneTim Smith2018-04-271-8/+8
|\ \ | | | | | | prune remotes with git fetch, fixes #3929
| * | prune remotes with git fetch, fixes #3929Roland Moriz2018-04-061-8/+8
| | | | | | | | | | | | Signed-off-by: Roland Moriz <roland@moriz.de>