summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* changes for rubocop engine upgrades.lcg/rubocop-upgradesLamont Granquist2019-01-15112-906/+906
| | | | | | | this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #8110 from chef/mac_os_user_cleanupTim Smith2019-01-148-2032/+88
|\ | | | | user resource: Remove support for macOS 10.7 and 10.7 upgraded to 10.8+
| * user resource: Remove support for macOS 10.7 and 10.7 upgraded to 10.8+Tim Smith2019-01-148-2032/+88
| | | | | | | | | | | | We can greatly simplify our dscl user provider by removing support for macOS 10.7 and 10.7 which has been upgraded to 10.8. No one is using this anyone as it's beyond EOL with Apple and has been for years. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Don't system exit on ohai CriticalPluginFailure (#8098)Joshua Miller2019-01-091-1/+1
| | | | | | Signed-off-by: Joshua Miller <joshmiller@fb.com>
* | windows_task resource: allow non-system users without password for ↵Nimesh2019-01-072-27/+112
| | | | | | | | | | | | | | | | | | | | | | | | interactive tasks - Minor changes in `validate_user_and_password` to support this feature - `validate_interactive_setting` would no longer be needed - Added test cases - Added support to latest version of win32-taskscheduler gem (2.0.4) - Fixes MSYS-924 Signed-off-by: Nimesh <nimesh.patni@msystechnologies.com>
* | change HTTPServerException to HTTPClientException for ruby 2.6Lamont Granquist2019-01-0333-77/+77
|/ | | | | | includes backcompat for 2.5 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #8008 from ↵Tim Smith2018-12-181-0/+7
|\ | | | | | | | | MsysTechnologiesllc/dh/MSYS-934_pfx_password_validity windows_certificate: Fix invalid byte sequence errors with pfx certicates
| * test case for special character in pfx_passworddheerajd-msys2018-12-061-0/+7
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* | Merge pull request #8038 from ↵Stuart Preston2018-12-142-0/+32
|\ \ | | | | | | | | | | | | MsysTechnologiesllc/Kapil/MSYS-897_allow_setting_the_comment_on_a_Windows_group Added property `comment` on Windows group.
| * | Added support for setting the comment/description on a group in Windows. ↵Kapil Chouhan2018-12-132-0/+32
| | | | | | | | | | | | | | | | | | This is only for the Windows group. Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* | | Merge pull request #7980 from chef/init_package_pluginTim Smith2018-12-131-1/+1
|\ \ \ | |/ / |/| | minimal_ohai: Add init_package plugin as a required plugin
| * | minimal_ohai: Add init_package plugin as a required plugininit_package_pluginTim Smith2018-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | | This is a pretty critical bit of data and we're using it for decisions in the timezone resource now. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #7977 from ↵Tim Smith2018-12-111-0/+23
|\ \ \ | | | | | | | | | | | | | | | | MsysTechnologiesllc/Kapil/MSYS-919_now_user_can_use_tagged_method_in_both_only_if_and_not_if Allow the use of tagged?(tags) method in both only_if and not_if blocks
| * | | now user can use tagged method in both only_if and not_ifKapil Chouhan2018-11-291-0/+23
| | | | | | | | | | | | | | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* | | | suppress more useless warningsTor Magnus Rakvåg2018-12-071-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
* | | | Cleanup some functional helpersfunctional_cleanupTim Smith2018-12-044-19/+4
| |_|/ |/| | | | | | | | | | | | | | Rename the macos helpers. Remove unused helpers to check for RHEL 5 and < Windows 2008 R2. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | fix unit specslcg/snap_package_supportLamont Granquist2018-11-281-2/+2
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | chefstyle fixes ONLYS.Cavallo2018-11-282-11/+10
| | | | | | | | | | | | Signed-off-by: S.Cavallo <smcavallo@hotmail.com>
* | | add method to generate multiipart form dataS.Cavallo2018-11-289-23/+369
| | | | | | | | | | | | | | | move snap api json response into fixture data - chefstyle was very unhappy with inline data defs Signed-off-by: S.Cavallo <smcavallo@hotmail.com>
* | | chef-style fixes ONLYS.Cavallo2018-11-282-11/+11
| | | | | | | | | | | | Signed-off-by: S.Cavallo <smcavallo@hotmail.com>
* | | initial suppport for snap packagesS.Cavallo2018-11-283-0/+252
| | | | | | | | | | | | Signed-off-by: S.Cavallo <smcavallo@hotmail.com>
* | | gem_package provider supports --no-document and rubygems 3.xLamont Granquist2018-11-271-9/+47
| | | | | | | | | | | | | | | | | | | | | should still maintain backcompat for rubygems < 2.0 for RHEL6 and other old platforms. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Merge pull request #7806 from username-is-already-taken2/gb/windows_timezoneTim Smith2018-11-271-0/+39
|\ \ \ | | | | | | | | Added windows support for the timezone resource
| * | | Added unit test for the timezone resourceusername-is-already-taken22018-11-271-0/+39
| |/ / | | | | | | | | | Signed-off-by: username-is-already-taken2 <digitalgaz@hotmail.com>
* | | Merge pull request #7951 from ↵Tim Smith2018-11-271-0/+14
|\ \ \ | |_|/ |/| | | | | | | | MsysTechnologiesllc/Kapil/MSYS-918_Chef_client_should_fail_appropriately_when_specified_package_is_not_applicable_to_image cab_package: Chef should fail when specified package is not applicable to the image
| * | Chef client should be fail appropriately when specified package is not ↵Kapil Chouhan2018-11-271-0/+14
| | | | | | | | | | | | | | | | | | applicable to image Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* | | add tests for apt-get --allow-downgradeslcg/apt-get-allow-downgradesLamont Granquist2018-11-201-2/+79
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | add --allow-downgrades to apt-getLamont Granquist2018-11-201-6/+6
| |/ |/| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #7953 from chef/lcg/chef-15-allow-downgradeLamont Granquist2018-11-193-26/+38
|\ \ | | | | | | Chef-15: switch default of allow_downgrade to true
| * | fix one of the yum func testslcg/chef-15-allow-downgradeLamont Granquist2018-11-191-1/+2
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | Chef-15: switch default of allow_downgrade to trueLamont Granquist2018-11-192-25/+36
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Chef-15: require instead of load librariesLamont Granquist2018-11-191-1/+5
|/ / | | | | | | | | | | | | | | This reverts a change which was working around problems caused by unforked interval runs. Fixes issues with chefspec, should make it faster and reduce warning spam. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #7916 from chef/testingTim Smith2018-11-191-0/+27
|\ \ | | | | | | windows_workgroup: Coerce the provided reboot property and add more tests
| * | windows_workgroup: Coerce the provided reboot property and add more testsTim Smith2018-11-141-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | Instead of converting the passed in reboot property when we use it coerce it when it's passed in. This allows us to easily test the conversion and it makes it so the docs don't include the legacy values. I also added moved command generation into a method and added tests for that. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #7946 from chef/propertiesTim Smith2018-11-193-97/+142
|\ \ \ | | | | | | | | Convert service resource to use properties
| * | | Expand windows_service specsTim Smith2018-11-151-6/+29
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Simplify the windows_service specTim Smith2018-11-151-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | No need to configure the provider mapping for this spec Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Add a basic macosx_service specTim Smith2018-11-151-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | Might as well test this Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Simplify the service resource specsTim Smith2018-11-151-83/+59
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Convert service resource to use propertiesTim Smith2018-11-151-15/+32
| | | | | | | | | | | | | | | | | | | | | | | | Also expand the testing a bit while I'm here. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | Merge pull request #7947 from chef/properties2Tim Smith2018-11-191-9/+22
|\ \ \ \ | | | | | | | | | | Fully convert remote_directory to use properties
| * | | | Fully convert remote_directory to use propertiesproperties2Tim Smith2018-11-161-9/+22
| |/ / / | | | | | | | | | | | | | | | | | | | | Also add descriptions, default_descriptions, and expand the tests a bit. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | Merge pull request #7917 from chef/certTim Smith2018-11-171-0/+30
|\ \ \ \ | |/ / / |/| | | windows_certificate: Add testing of the defaults and allowed properties
| * | | windows_certificate: Add testing of the defaults and allowed propertiesTim Smith2018-11-141-0/+30
| |/ / | | | | | | | | | | | | | | | These should have been tested when I merged this in. It's easy stuff to verify with unit tests. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #7928 from chef/gem_spec_cleanupTim Smith2018-11-151-3/+0
|\ \ \ | | | | | | | | Don't set chef_gem_compile_time config in the chef_gem spec
| * | | Don't set chef_gem_compile_time config in the chef_gem specgem_spec_cleanupTim Smith2018-11-141-3/+0
| |/ / | | | | | | | | | | | | | | | | | | We removed this config in Chef 13. There's no need to set it in the spec anymore. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #7914 from EugenMayer/patch-1Tim Smith2018-11-141-3/+3
|\ \ \ | |/ / |/| | use --no-tty during apt-keys fro gpg - fixes #7913
| * | fix code stylesem2018-11-121-1/+1
| | | | | | | | | | | | Signed-off-by: em <eugen.mayer@kontextwork.de>
| * | restore spec name - acidently defacedEugen Mayer2018-11-121-2/+1
| | | | | | | | | | | | Signed-off-by: em <eugen.mayer@kontextwork.de>
| * | Fix specs for including --no-ttyEugen Mayer2018-11-121-4/+5
| |/ | | | | | | Signed-off-by: Eugen Mayer <eugen.mayer@kontextwork.de>