summaryrefslogtreecommitdiff
path: root/kitchen-tests
Commit message (Collapse)AuthorAgeFilesLines
* re-fix the kitchen testslcg/moremainLamont Granquist2021-08-241-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix Test Kitchen testsTim Smith2021-08-242-5/+5
| | | | | | Cutover some branches and update some docs while I'm here Signed-off-by: Tim Smith <tsmith@chef.io>
* Pin users cookbook in testingTim Smith2021-08-021-1/+1
| | | | | | Changes here broke running this cookbook on macOS / opensuse Signed-off-by: Tim Smith <tsmith@chef.io>
* Test the make_cache propertyTim Smith2021-07-261-0/+11
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add windows_update_settings resourceTim Smith2021-07-201-0/+5
| | | | | | | Copied from the desktop-config cookbook and simplified a little bit to skip properties we can calculate automatically. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add habitat resources + content rendering helpers for json/toml/yaml (#11577)Jeff Brimager2021-07-0828-0/+1385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commiting new resources to clean branch Signed-off-by: Jeff Brimager <jbrimager@chef.io> * reworked toml_dumper resource helper to make sure all end statements were correct and it was being made available to other resource Signed-off-by: Jeff Brimager <jbrimager@chef.io> * changing implementation of toml_deumper to match how the cron_validations helper was implemented Signed-off-by: Jeff Brimager <jbrimager@chef.io> * changing implementation of toml_dumper to match how the cron_validations helper was implemented Signed-off-by: Jeff Brimager <jbrimager@chef.io> * calling toml dumper as a method Signed-off-by: Jeff Brimager <jbrimager@chef.io> * testing new method for toml_dumper helper Signed-off-by: Jeff Brimager <jbrimager@chef.io> * adding "use" statement for toml helper in habitat_config and habitat_toml Signed-off-by: Jeff Brimager <jbrimager@chef.io> * fixing relational mapping with toml_dumper Signed-off-by: Jeff Brimager <jbrimager@chef.io> * using Chef::ResourceHelper::TomlDumper as method to create toml Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correcting syntax error for Chef::ResourceHelpers:: in the habitat_config and habitat_user_toml resource Signed-off-by: Jeff Brimager <jbrimager@chef.io> * adding a render helper Signed-off-by: Jeff Brimager <jbrimager@chef.io> * moved files to correct directories for render_helpers and corrected resource syntax Signed-off-by: Jeff Brimager <jbrimager@chef.io> * chefstyle corrections Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed renderhelers form chef-utils. there by mistake Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected class for render helpers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * fixed broken end statement in chef/dsl/toml.rb Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected render helper class syntax line 23. was set as a module ; Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected dsl helper mapping for render_helpers in spec tests Signed-off-by: Jeff Brimager <jbrimager@chef.io> * wiring chef-utls/internal to render_helpers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * remove "include internal" from render_helpers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed old helper from habitat_config and habitat_user_toml resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed old helper from habitat_config and habitat_user_toml resources Signed-off-by: Jeff <jbrimager@gmail.com> * removed old helper from habitat_config and habitat_user_toml resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * chefstyle corrections on render_helpers_spec Signed-off-by: Jeff Brimager <jbrimager@chef.io> * chefstyle corrections on chef-utils/lib/chef-utils.rb Signed-off-by: Jeff Brimager <jbrimager@chef.io> * added all documentation to resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaned up render_helper_spec.rb Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaning up spellcheck errors Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing unused variable from habitat package provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correecting bad syntaxt in habitat_package Signed-off-by: Jeff Brimager <jbrimager@chef.io> * temporarioly remove prperty descriptions from habitat_install Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing documentation changes the habitat_package and habitat_sup as well Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaninig up commented issues Signed-off-by: Jeff Brimager <jbrimager@chef.io> * added all property descriptions back to habitat resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected chefstule errros Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaned up descriptions in habitat_install Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaning up bad trailing spaces Signed-off-by: Jeff Brimager <jbrimager@chef.io> * fixed kitchen runlist for linux Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing habitat from package providers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaned up bad character in habitat install Signed-off-by: Jeff Brimager <jbrimager@chef.io> * fixed habitat_package resource Signed-off-by: Jeff Brimager <jbrimager@chef.io> * changing how habitat_package connects to its provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * converted habitat_package_provider to a resource class Signed-off-by: Jeff Brimager <jbrimager@chef.io> * chefstyle corrections made Signed-off-by: Jeff Brimager <jbrimager@chef.io> * connecting habitat_package with _provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * testing habitat_package_provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * changing resource method for habit_package_provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * more chefstyle corrections Signed-off-by: Jeff Brimager <jbrimager@chef.io> * reverted changes Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correcting end statements and bad syntax Signed-off-by: Jeff Brimager <jbrimager@chef.io> * trying to alter habitat_package_provider to work as a resource Signed-off-by: Jeff Brimager <jbrimager@chef.io> * altering the methods for remove_package in habitat_provider_package Signed-off-by: Jeff Brimager <jbrimager@chef.io> * mapping exceptions to habitat package provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * habitat_package resource connected to habitat_package_provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed V2 hab version compare from habitat_package provider we will only support systemd moving forward Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing yesterdays changes to see if they are causing the issue with habitat_sup Signed-off-by: Jeff Brimager <jbrimager@chef.io> * reverting the habitat_package provider to previous state Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing bad test Signed-off-by: Jeff Brimager <jbrimager@chef.io> * restored the version_compare in habitat provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correcting spellcheck issues Signed-off-by: Jeff Brimager <jbrimager@chef.io> * commiting new resources to clean branch Signed-off-by: Jeff Brimager <jbrimager@chef.io> * reworked toml_dumper resource helper to make sure all end statements were correct and it was being made available to other resource Signed-off-by: Jeff Brimager <jbrimager@chef.io> * changing implementation of toml_deumper to match how the cron_validations helper was implemented Signed-off-by: Jeff Brimager <jbrimager@chef.io> * changing implementation of toml_dumper to match how the cron_validations helper was implemented Signed-off-by: Jeff Brimager <jbrimager@chef.io> * calling toml dumper as a method Signed-off-by: Jeff Brimager <jbrimager@chef.io> * testing new method for toml_dumper helper Signed-off-by: Jeff Brimager <jbrimager@chef.io> * adding "use" statement for toml helper in habitat_config and habitat_toml Signed-off-by: Jeff Brimager <jbrimager@chef.io> * fixing relational mapping with toml_dumper Signed-off-by: Jeff Brimager <jbrimager@chef.io> * using Chef::ResourceHelper::TomlDumper as method to create toml Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correcting syntax error for Chef::ResourceHelpers:: in the habitat_config and habitat_user_toml resource Signed-off-by: Jeff Brimager <jbrimager@chef.io> * adding a render helper Signed-off-by: Jeff Brimager <jbrimager@chef.io> * moved files to correct directories for render_helpers and corrected resource syntax Signed-off-by: Jeff Brimager <jbrimager@chef.io> * chefstyle corrections Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed renderhelers form chef-utils. there by mistake Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected class for render helpers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * fixed broken end statement in chef/dsl/toml.rb Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected render helper class syntax line 23. was set as a module ; Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected dsl helper mapping for render_helpers in spec tests Signed-off-by: Jeff Brimager <jbrimager@chef.io> * wiring chef-utls/internal to render_helpers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * remove "include internal" from render_helpers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed old helper from habitat_config and habitat_user_toml resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed old helper from habitat_config and habitat_user_toml resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * chefstyle corrections on render_helpers_spec Signed-off-by: Jeff Brimager <jbrimager@chef.io> * chefstyle corrections on chef-utils/lib/chef-utils.rb Signed-off-by: Jeff Brimager <jbrimager@chef.io> * added all documentation to resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaned up render_helper_spec.rb Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaning up spellcheck errors Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing unused variable from habitat package provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correecting bad syntaxt in habitat_package Signed-off-by: Jeff Brimager <jbrimager@chef.io> * temporarioly remove prperty descriptions from habitat_install Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing documentation changes the habitat_package and habitat_sup as well Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaninig up commented issues Signed-off-by: Jeff Brimager <jbrimager@chef.io> * added all property descriptions back to habitat resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected chefstule errros Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaned up descriptions in habitat_install Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaning up bad trailing spaces Signed-off-by: Jeff Brimager <jbrimager@chef.io> * fixed kitchen runlist for linux Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing habitat from package providers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaned up bad character in habitat install Signed-off-by: Jeff Brimager <jbrimager@chef.io> * fixed habitat_package resource Signed-off-by: Jeff Brimager <jbrimager@chef.io> * changing how habitat_package connects to its provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * converted habitat_package_provider to a resource class Signed-off-by: Jeff Brimager <jbrimager@chef.io> * chefstyle corrections made Signed-off-by: Jeff Brimager <jbrimager@chef.io> * connecting habitat_package with _provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * testing habitat_package_provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * changing resource method for habit_package_provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * more chefstyle corrections Signed-off-by: Jeff Brimager <jbrimager@chef.io> * reverted changes Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correcting end statements and bad syntax Signed-off-by: Jeff Brimager <jbrimager@chef.io> * trying to alter habitat_package_provider to work as a resource Signed-off-by: Jeff Brimager <jbrimager@chef.io> * altering the methods for remove_package in habitat_provider_package Signed-off-by: Jeff Brimager <jbrimager@chef.io> * mapping exceptions to habitat package provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * habitat_package resource connected to habitat_package_provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed V2 hab version compare from habitat_package provider we will only support systemd moving forward Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing yesterdays changes to see if they are causing the issue with habitat_sup Signed-off-by: Jeff Brimager <jbrimager@chef.io> * reverting the habitat_package provider to previous state Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing bad test Signed-off-by: Jeff Brimager <jbrimager@chef.io> * restored the version_compare in habitat provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correcting spellcheck issues Signed-off-by: Jeff Brimager <jbrimager@chef.io> * adding documentation to habitat resources Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correcting doc format in habitat_sup Signed-off-by: Jeff Brimager <jbrimager@chef.io> * cleaned up descrtipstions and added proper tagging for doc generation Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed require_relative "toml" from render helpers Signed-off-by: Jeff Brimager <jbrimager@chef.io> * misunderstanding in refactor. code added back for require_relative Signed-off-by: Jeff Brimager <jbrimager@chef.io> * misunderstanding in refactor. code added back for require_relative Signed-off-by: Jeff Brimager <jbrimager@chef.io> * added use_multipackage_api to habitat_package_provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * added guard to make sure habitat linux was only tested on systemd capable machines Signed-off-by: Jeff Brimager <jbrimager@chef.io> * extended timeout loops on _habitat_services kitchen tests Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed unnecessary tesys Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed deprecated test method for habitat package version_compare Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removing private tag in the habitat package provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * more corrections to the habitat_package provider for testing Signed-off-by: Jeff Brimager <jbrimager@chef.io> * removed bad line in habitat package provider Signed-off-by: Jeff Brimager <jbrimager@chef.io> * corrected punctuation on all habitat descriptions Signed-off-by: Jeff Brimager <jbrimager@chef.io> * adding notes to tk runs to explain why service loads are looped Signed-off-by: Jeff Brimager <jbrimager@chef.io> * correcting spellcheck errors Signed-off-by: Jeff Brimager <jbrimager@chef.io> * merging master Signed-off-by: Jeff Brimager <jbrimager@chef.io>
* Fix handling of ohai properties in chef_client_configTim Smith2021-07-011-0/+2
| | | | | | | These 2 properties don't match the config format so the existing logic didn't work. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #11702 from chef/defender_resourcesTim Smith2021-06-142-0/+26
|\ | | | | Add windows_defender and windows_defender_exclusion resources
| * Add specsTim Smith2021-06-131-3/+3
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add windows_defender and windows_defender_exclusion resourcesTim Smith2021-06-132-0/+26
| | | | | | | | | | | | These were originally written for the desktop-config cookbook. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Try to handle the driver installationTim Smith2021-06-131-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add the ability to attach to an existing printer portTim Smith2021-06-131-0/+14
|/ | | | | | | | | | | The windows_printer_port resource offers a number of options for creating an advanced printer port. Let users create a printer that attaches to a port. This also properly builds current_resource and nukes the terrible printer_exists? Signed-off-by: Tim Smith <tsmith@chef.io>
* Enable slow resource reporting in our kitchen testsTim Smith2021-06-112-0/+2
| | | | | | Make sure this works in test Signed-off-by: Tim Smith <tsmith@chef.io>
* Add testing of installing knife into the client (#11682)Tim Smith2021-06-091-5/+6
| | | | | | | | | | | | | | | | | * Test installing knife gem into the client Let's make sure this works on all platforms Signed-off-by: Tim Smith <tsmith@chef.io> * Remove ed25519 gem from the omnibus install If we can install knife we're good. Signed-off-by: Tim Smith <tsmith@chef.io> * Install knife on everything but RHEL 6 Signed-off-by: Tim Smith <tsmith@chef.io>
* Modernize windows_printer_portTim Smith2021-06-062-0/+26
| | | | | | | | | Load the state fully / remove the exists? method Delete the power with the powershell cmdlet Add updating to the create action Deprecate the description property which never did anything Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #11583 from chef-davin/windows_security_policyTim Smith2021-05-151-2/+2
|\ | | | | Update validation on the ResetLockoutCount to limit it to LockoutDuration rather than limiting it to 30 minutes
| * Update validation on the ResetLockoutCount to limit it to LockoutDuration ↵Davin Taddeo2021-05-141-2/+2
| | | | | | | | | | | | rather than limiting it to 30 minutes Signed-off-by: Davin Taddeo <davin@chef.io>
* | Fix logrotate in testsTim Smith2021-05-111-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Revert windows hostname changes for now (#11564)Tim Smith2021-05-111-0/+4
|/ | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Creating the `inspec_waiver_file_entry` resource for managing and formatting ↵Davin Taddeo2021-05-083-0/+36
| | | | | a waiver file (#10098) Signed-off-by: Tim Smith <tsmith@chef.io>
* Test more platforms in Dokken / GH ActionsTim Smith2021-05-071-1/+1
| | | | | | Add the full set of platforms Signed-off-by: Tim Smith <tsmith@chef.io>
* Add introduced to the new hostname propertiesTim Smith2021-05-061-4/+0
| | | | | | Make sure the docs get generated correctly Signed-off-by: Tim Smith <tsmith@chef.io>
* Move knife to its own gemChef Expeditor2021-03-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves knife into /knife, in the same way that chef-utils and chef-config are separated. NOTES: == File History == If you see this message as the first message in the history of an knife file, you can see the complete history by using 'git log --follow', 'git config log.follow true' to make it the default behavior in this repository, or 'git config --globa log.follow true' to make it the global default. == API Changes == At the API level, there is one breaking change: CookbookSiteStreamingUploader has been moved out of chef and into knife/core. There were a combination of reasons we chose this path: - CookbookSiteStreamingUploader (CSSU) is only used within Knife. - CookbookSiteStreamingUploader (CSSU) references the command Chef::Knife::CookbookMetadata in order to generate a metadata file for the cookbook to upload - Chef::Knife::CookbookMetadata is no longer available to Chef:: because Knife has been moved to its own gem. Knife gem depends on the Chef gem, so Chef can't depend on something in Knife. A search for usage in related projects (berks, chef-cli) and the Internet at large shows that there are no known external consumers of CSSU. For now, we'll move this class into Knife::Core, as it's going to be faster than splitting off the metadata generation and time is a concern. If we find that we need the metadata generation in chef/ proper, we should evaluate decoupling that functionality from Knife::CookbookMetadata and exposing it via something like `Chef::Cookbook::Metadata#from_cookbook_files` == spec changes == The specs are kept in their existing locations, though we have separated out a `knife_spec_helper` so that we can ensure knife is not directly accessing chef requires; and chef is relying on knife's at all. We also now clear gem paths with each test, to force gem state to reset. This works around a problem where a combination of tests is corrupting the internal Gem state, causing failures in rubygems_spec. See branch `mp/broken-gems` for many more details around findings so far. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* ruby 3.0 fixes and post-bundle-install hookLamont Granquist2021-03-181-6/+0
| | | | | | | | | | | | | | | Mostly this is all fixes necessary for ruby 3.0 There's the addition of the appbundle hook which lets us better pull git gems into appbundler Note carefully how after adding the post-bundle-install.rb that trying to pre appbundle-update ohai pulls in chef/chef as bundle installed git gem which fails to install so we go back to only using one appbundle-update on chef/chef and removing the chef/ohai one (which may fix other bugs). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Temporarily disable use of users cookbook on WindowsLance Albertson2021-03-151-16/+17
| | | | | | | There seems to be an issue with the users cookbook on Windows that needs to be addressed. Comment this test out for now until it can be fixed. Signed-off-by: Lance Albertson <lance@osuosl.org>
* Set password to something longer than 4 chars for MacOSLance Albertson2021-03-151-1/+1
| | | | | | | | This is currently using `my_awesome_password` which is the same example used in the users resource. This was made by running `mkpasswd -m sha-512` on a linux system. Signed-off-by: Lance Albertson <lance@osuosl.org>
* Fix users_manage usage in kitchen-testsLance Albertson2021-03-153-0/+11
| | | | | | | | | The use of data bags in the users cookbook was removed in 6.0.0 [1]. This applies the recommended workaround and allow the integration tests to pass. [1] https://github.com/sous-chefs/users/blob/master/CHANGELOG.md#600---2021-03-12 Signed-off-by: Lance Albertson <lance@osuosl.org>
* Remove installing htop in testTim Smith2021-03-091-1/+1
| | | | | | Get the builds green again Signed-off-by: Tim Smith <tsmith@chef.io>
* Use DNF on Oracle / CentOS kitchen testsfix_oracle8Tim Smith2021-03-061-3/+3
| | | | | | Oracle 8 docker image no longer ships with yum Signed-off-by: Tim Smith <tsmith@chef.io>
* correctly install devtoolset-8 on centos-6Lamont Granquist2021-03-031-2/+11
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Update resolver cookbook usage in test-kitchen testsLance Albertson2021-02-233-9/+8
| | | | | | | | Recently, the Sous Chefs released a new resource driven resolver cookbook and removed the default recipe, thus breaking tests. This should fix the tests related to this. Signed-off-by: Lance Albertson <lance@osuosl.org>
* Updated chef to use the CurrentUser certificate store. Previously it only ↵Tim Smith2021-02-045-0/+169
| | | | | used LocalMachine. Updated Gemlock to use win32-cerstore 0.5.3 (#10977) Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the kitchen-azurerm dep for kitchent testsTim Smith2021-01-121-3/+2
| | | | | | This is not actually used Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix homebrew_cask for the new syntaxTim Smith2021-01-041-0/+2
| | | | | | Also add a CI test for installing a small cask Signed-off-by: Tim Smith <tsmith@chef.io>
* Coerce uid to integer in Windows user resource.Pete Higgins2020-12-301-1/+9
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Add Test Kitchen testing for Debian 11Tim Smith2020-12-291-0/+8
| | | | | | This release is not out yet, but we have containers for it now. Signed-off-by: Tim Smith <tsmith@chef.io>
* Replace Ubuntu 20.10 testing with 21.04Tim Smith2020-12-291-2/+2
| | | | | | | These containers are alpha/beta quality, but we should start testing on this since it'll be out when Chef Infra 17 is released. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove Test Kitchen tests for Amazon Linux 201XTim Smith2020-12-291-8/+0
| | | | | | | | The version of ld on Amazon Linux 201x cannot handle the ffi gem so these tests are going to fail forever now. This is a RHEL 6 based distro that is EOL as of the end of 2020. https://aws.amazon.com/blogs/aws/update-on-amazon-linux-ami-end-of-life/ Signed-off-by: Tim Smith <tsmith@chef.io>
* Ensure we can still install RHEL 7 GCC on RHEL 6 in testingrhel6_testsTim Smith2020-12-281-1/+2
| | | | | | These are the terrible things you get to do to support an EOL platform. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #10699 from chef-davin/windows_security_policyTim Smith2020-12-281-1/+21
|\ | | | | Refactor the code for windows_security_policy resource
| * Merge branch 'master' of github.com:chef/chef into windows_security_policyDavin Taddeo2020-12-201-2/+2
| |\
| * | This should do what I want, without the problems we've seen previously.Davin Taddeo2020-12-131-8/+13
| | | | | | | | | | | | Signed-off-by: Davin Taddeo <davin@chef.io>
| * | refactor the code for windows_security_policy resourceDavin Taddeo2020-11-301-3/+18
| | | | | | | | | | | | Signed-off-by: Davin Taddeo <davin@chef.io>
* | | Remove support for Ubuntu 16.04remove_ubuntu1604Tim Smith2020-12-181-7/+0
| |/ |/| | | | | | | | | By the time we ship Chef 17 Ubuntu 16.04 will be EOL. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Switch macOS kitchen test homebrew package.Pete Higgins2020-12-181-2/+2
|/ | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Update InSpec kitchen testsTim Smith2020-11-101-2/+2
| | | | | | Get the correct format here Signed-off-by: Tim Smith <tsmith@chef.io>
* Add homebrew to macos kitchen tests.Pete Higgins2020-11-021-0/+10
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Add back Oracle 8 Test Kitchen testingTim Smith2020-10-261-0/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* ifconfig is not compatible with Fedora 33 or laterTim Smith2020-10-261-0/+2
| | | | | | This resource only works with the legacy redhat /etc/networks configuration format. That format was slapped onto NetworkManager when RHEL moved off legacy init scripts. Fedora 33 switches to the keyfile format so this resource no longer works on those systems. Stop testing it there and add a note to the resource description so we get that up on the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add Test Kitchen testing on Ubuntu 20.10ubuntu_2010Tim Smith2020-10-261-0/+8
| | | | | | | | We can bump this up to the latest non-LTS release every 6 months to determine if there's any resource updates we need to make in advance of the LTS release. Signed-off-by: Tim Smith <tsmith@chef.io>