summaryrefslogtreecommitdiff
path: root/kitchen-tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove soon to be EOL Ubuntu 16.04 packagesTim Smith2021-04-051-7/+0
| | | | | | | Ubuntu 16.04 goes EOL at the end of April. Stop producing packages for this release. Signed-off-by: Tim Smith <tsmith@chef.io>
* Chef 16: backport the post-bundle-install supportLamont Granquist2021-03-221-1/+10
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #11182 from ramereth/chef-16-fix-users-manageTim Smith2021-03-154-13/+25
|\ | | | | Fix users_manage usage in kitchen-tests
| * 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>
* | Use DNF on Oracle / CentOS kitchen testsTim Smith2021-03-151-3/+3
| | | | | | | | | | | | Oracle 8 docker image no longer ships with yum Signed-off-by: Tim Smith <tsmith@chef.io>
* | Remove installing htop in testTim Smith2021-03-151-1/+1
|/ | | | | | Get the builds green again Signed-off-by: Tim Smith <tsmith@chef.io>
* 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>
* Merge pull request #10820 from chef/uuidTim Smith2021-01-041-1/+9
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Coerce uid to integer in Windows user resource.uuidPete Higgins2021-01-041-1/+9
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* | 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>
* Add Test Kitchen testing for Debian 11ci_cleanupTim Smith2020-12-301-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-301-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-301-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 testingTim Smith2020-12-301-1/+2
| | | | | | These are the terrible things you get to do to support an EOL platform. Signed-off-by: Tim Smith <tsmith@chef.io>
* Resolve build / test failures now that Chef 16 is the stable relase16_buildsTim Smith2020-12-182-2/+2
| | | | | | Point the new chef-16 branch at 16-stable ohai branch Signed-off-by: Tim Smith <tsmith@chef.io>
* 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>
* Remove insserv-compat from opensuse now that it's there by defaultTim Smith2020-10-191-2/+1
| | | | | | This is in the dokken image now. Signed-off-by: Tim Smith <tsmith@chef.io>
* Make sure we have net-tools-deprecated on our SLES testerTim Smith2020-10-191-2/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* See if we can get Ubuntu/Debian workingTim Smith2020-10-191-0/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Test ifconfig in Test Kitchen and add examples to the resourcetest_ifconfigTim Smith2020-10-192-0/+14
| | | | | | We lacked an actual test of this resource. Let's see if it works. Signed-off-by: Tim Smith <tsmith@chef.io>
* Dry up testing a bitTim Smith2020-10-125-37/+15
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add additional_config propertyTim Smith2020-10-124-1/+23
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add InSpec testTim Smith2020-10-121-0/+10
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the unused debian-8 kitchen configTim Smith2020-10-121-7/+0
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Switch off our fork of docker-apiTim Smith2020-10-121-4/+1
| | | | | | 2.0 is out with Ruby 2.7 support Signed-off-by: Tim Smith <tsmith@chef.io>
* chef_client_config resourceTim Smith2020-10-124-10/+18
| | | | | | Initial stab at a chef_client_config resource that will allow people to easily write out a client.rb. This isn't meant to cover every single use case, but instead to provide a simple resource that works for 99% of users. Signed-off-by: Tim Smith <tsmith@chef.io>
* something was added that shouldn't have been in this PR.Davin Taddeo2020-09-301-5/+0
| | | | Signed-off-by: Davin Taddeo <davin@chef.io>
* updates from reviewDavin Taddeo2020-09-301-4/+4
| | | | Signed-off-by: Davin Taddeo <davin@chef.io>
* fix for the windows_audit_policy resource and added some tests for it into ↵Davin Taddeo2020-09-301-0/+24
| | | | | | the windows end-to-end kitchen testing. Signed-off-by: Davin Taddeo <davin@chef.io>
* some modifications to make the allowed privilege list a little easier to ↵Davin Taddeo2020-09-111-1/+1
| | | | | | sort through. And a chefstyle fix Signed-off-by: Davin Taddeo <davin@chef.io>
* A validation update to the windows_user_privilege resource I believe will ↵Davin Taddeo2020-09-111-0/+5
| | | | assist with issue #10420
* Update the windows_firewall_profile resource to move the load_firewall_state ↵Davin Taddeo2020-09-101-0/+10
| | | | | | method out of the action_class. Also add some firewall tests to the kitchen tests to avoid this issue in the future. Signed-off-by: Davin Taddeo <davin@chef.io>
* Update kitchen-tests/cookbooks/end_to_end/recipes/linux.rb niceTim Smith2020-09-031-1/+1
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> Co-authored-by: pete higgins <pete@peterhiggins.org>
* chef_client_systemd_timer: Add the ability to set CPUQuota on the ↵Tim Smith2020-09-031-0/+1
| | | | | | | | chef-client unit This allows us to set a quota like 50% on everything handled by the chef-client including all the sub-processes like ohai or inspec. I looked at using systemd's nice functionality since that would give us a unified property for all the *nix processes, but that only applies to the chef-client process itself. This is much more powerful and gives users what user's probably really want which is "chef and all its stuff should not consume all the CPU on my host". Signed-off-by: Tim Smith <tsmith@chef.io>
* removed unnecessary 'ostruct' from linux mount provider spec.antima-gupta2020-08-282-1/+1
| | | | | | | Added permalink for Regex. Renamed the linux_mount recipe file to mount in kitechen-tests. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
* Fixed mount Resource for bind mounts is not idempotent.antima-gupta2020-08-272-0/+21
| | | | | | | | Added a separate linux mount provider. Define 'mounted?' method and used 'findmnt -rn' command to list mount points along with device. Added linux_mount recipe to kitchen-tests. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
* Add kitchen testing of the chef_client_launchd resourceTim Smith2020-08-251-0/+5
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add new chef_client_trusted_certificate resourceTim Smith2020-08-194-0/+33
| | | | | | | | This is a pretty simple resource for something that users can certainly do on their own right now, but most people don't even realize is an option. Giving it a dedicated resource exposes the functionality better and just makes it that much easier to write a simple cross platform cookbook that involves configuring the client. I'm not a huge fan of having to provide the certificate as a string, but I didn't want to add yet another place where we allow string values, or URI. They all have slightly different APIs and we need to just do it via a mixin or something. This can certainly move that direction in the future, but for this solves a real problem today. Signed-off-by: Tim Smith <tsmith@chef.io>
* Better specify how to set timezones on windowsTim Smith2020-08-181-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Refactor the timezone resource to properly load the current timezoneTim Smith2020-08-182-2/+2
| | | | | | This way we get a proper state change instead of just showing a converge. This also removes awk/grep in not_if statements and overall improves logging. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix chefstyle in the Test Kitchen testmac_testingTim Smith2020-08-181-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Further improve osx_profile error message and add a testTim Smith2020-08-181-0/+5
| | | | | | Make sure we can execute the resource in a Test Kitchen run. Signed-off-by: Tim Smith <tsmith@chef.io>
* chef_client_systemd_timer: Fix failures in the :remove actionTim Smith2020-08-071-0/+4
| | | | | | Get the actual systemd action right. Add a kitchen test for this as well. Signed-off-by: Tim Smith <tsmith@chef.io>