summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* | windows_feature: Move provider logic into the default of the install_method ↵windows_featureTim Smith2018-11-091-0/+4
|/ | | | | | | | property This eliminates the need for setting the subresource variable and also allows us to auto-generate docs that are aware of the default. Signed-off-by: Tim Smith <tsmith@chef.io>
* Always run policy_file if a policy_file or policy_group existspolicy_files_alwaysTim Smith2018-11-091-12/+0
| | | | | | Remove the config to turn it off Signed-off-by: Tim Smith <tsmith@chef.io>
* Chef-15: add nillability to attribute deep mergingLamont Granquist2018-11-091-0/+30
| | | | | | | | | | Changes to consistently uses the "NIL" object internally to mean "not present" instead of abusing nil for that purpose. So now "nil means nil" and we can deep merge that so it will effectively override lower precedence levels if you write a nil. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix the knife integration spec timeoutsLamont Granquist2018-11-083-13/+19
| | | | | | | | | rely on killing the thread to terminate the server, and rely on thread#join to correctly signal to the main thread that the server thread is dead, don't leak the server object out of the helper. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #7886 from chef/lcg/yum-version-with-package-sourceLamont Granquist2018-11-071-0/+18
|\ | | | | add tests for yum version with package_source bug
| * spelling is a thinglcg/yum-version-with-package-sourceLamont Granquist2018-11-071-2/+2
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * add tests for yum version with package_source bugLamont Granquist2018-11-071-0/+18
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #7866 from chef/provisioningTim Smith2018-11-071-20/+0
|\ \ | |/ |/| Remove Chef provisioning lazy loading
| * Remove Chef provisioning lazy loadingprovisioningTim Smith2018-11-021-20/+0
| | | | | | | | | | | | Remove the lazy loading of chef provisioning resources Signed-off-by: Tim Smith <tsmith@chef.io>
* | Coerce arrays of ints to an array of stringsfirewallTim Smith2018-11-061-4/+9
| | | | | | | | | | | | Otherwise it won't compare to the PS output Signed-off-by: Tim Smith <tsmith@chef.io>
* | Allow passing multiple ports in windows_firewallTim Smith2018-11-061-10/+45
| | | | | | | | | | | | | | | | | | Allow ports to be an integer Allow ports to be a comma separated list or an array Workaround a bug in PowerShell where arrays that are converted to json turn into hashes with the count and the value The quotes around the port are removed because you can't pass '80,8080' in the cmdlet. It has to be a bare 80,8080 Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #7852 from chef/cookbook_createTim Smith2018-11-051-42/+0
|\ \ | | | | | | Fully remove knife cookbook create command
| * | Fully remove knife cookbook create commandcookbook_createTim Smith2018-11-021-42/+0
| | | | | | | | | | | | | | | | | | We already removed all functionality and replaced it with an error message. This prevents the command from showing up in help. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #7842 from Intility/windows_firewall_ruleTim Smith2018-11-051-0/+361
|\ \ \ | | | | | | | | Add windows_firewall_rule
| * | | add testsTor Magnus Rakvåg2018-11-011-0/+361
| | | | | | | | | | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
* | | | Remove OSC Chef specsTim Smith2018-11-047-332/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>