summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* only run dsc_script functional tests on 64 bit rubyruby_64mwrock2020-12-041-1/+1
| | | | Signed-off-by: mwrock <matt@mattwrock.com>
* only test dsc_script on 64 bit and document that it will fail on 32 bit clientsmwrock2020-12-031-1/+1
| | | | Signed-off-by: mwrock <matt@mattwrock.com>
* Merge pull request #10547 from chef/audit-modeTim Smith2020-12-028-0/+1074
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Rename audit mode to Compliance Phase.Pete Higgins2020-12-018-49/+49
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Simplify integration test input and make output deterministic.Pete Higgins2020-12-011-5/+6
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Replace hardcoded product references with the generic versions.Pete Higgins2020-12-011-1/+1
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Set node attributes at normal rather than default level in audit runner unit ↵Pete Higgins2020-12-011-10/+10
| | | | | | | | | | | | tests. Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add a happy path integration test.Pete Higgins2020-12-011-0/+80
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Warn if unsupported audit-cookbook config values are present.Pete Higgins2020-12-011-0/+22
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Refactor Automate reporter.Pete Higgins2020-12-011-115/+183
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Copy-paste code for missing method and tests from automate-cookbook.Pete Higgins2020-12-011-0/+70
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Expand negative test case for Automate reporter.Pete Higgins2020-12-011-3/+10
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Cleanup some error handling.Pete Higgins2020-12-011-1/+1
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Raise an exception with old profile format.Pete Higgins2020-12-011-0/+42
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add hook methods to setup state earlier, add failure hook.Pete Higgins2020-12-011-20/+11
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Simplify waiver handling by deferring to Inspec.Pete Higgins2020-12-011-18/+0
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Simplify some test setup.Pete Higgins2020-12-011-8/+0
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix waiver code.Pete Higgins2020-12-011-10/+31
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fill in pending specs for audit runner's #enabled? method.Pete Higgins2020-12-011-6/+55
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix Chef::Client unit tests.Pete Higgins2020-12-011-0/+1
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix chefstyle violations.Pete Higgins2020-12-016-303/+303
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add inspec fetchers from audit-cookbook.Pete Higgins2020-12-012-0/+227
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Remove redundant test.Pete Higgins2020-12-011-4/+0
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Inline a method and small code cleanup.Pete Higgins2020-12-011-5/+0
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Avoid stubbing Time.now in tests.Pete Higgins2020-12-012-9/+8
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Only stub http requests when they should happen.Pete Higgins2020-12-012-59/+65
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Remove redundant test.Pete Higgins2020-12-011-6/+0
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add chef server automate reporter from audit-cookbook.Pete Higgins2020-12-012-7/+207
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Copy automate reporter from audit-cookbook.Pete Higgins2020-12-011-0/+269
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add audit-enforcer reporter for audit mode.Pete Higgins2020-12-012-0/+62
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* | Allow remote_file consider certificates stored under /etc/chef/trusted_certsKapil Chouhan2020-12-021-0/+11
|/ | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* Roll back a few chefstyle fixesTim Smith2020-12-011-1/+1
| | | | | | These came with one of the newer releases of Rubocop Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #10683 from chef/cmdletTim Smith2020-12-0110-299/+132
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * responding to feedbackmwrock2020-11-302-7/+4
| | | | | | | | Signed-off-by: mwrock <matt@mattwrock.com>
| * replace usages of Cmdlet class with powershell_execmwrock2020-11-3010-296/+132
| | | | | | | | Signed-off-by: mwrock <matt@mattwrock.com>
* | Chefstyle fixes for RuboCop 1.4.xTim Smith2020-11-253-1/+3
|/ | | | | | There are some new spaces changes in RuboCop 1.4.2 Signed-off-by: Tim Smith <tsmith@chef.io>
* Fixed aix spec failure when the target state is to disable the mount.antima-gupta2020-11-241-2/+10
| | | | | | Added spec for device property value '/'. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
* Avoid ambiguous regexesambiguous_regexTim Smith2020-11-2125-54/+54
| | | | | | Just makes it a bit easier to read. Signed-off-by: Tim Smith <tsmith@chef.io>
* include password in guard inherited attributesguard_passwordmwrock2020-11-202-4/+4
| | | | Signed-off-by: mwrock <matt@mattwrock.com>
* Fix user output to say waht changedPhil Dibowitz2020-11-181-1/+7
| | | | | | | | | | | | | | | | | | | | | Fixes #10645 Linux: ``` [2020-11-18T12:09:31-08:00] INFO: Processing linux_user[bin] action create (/var/chef/cache/cookbooks/fb_users/resources/default.rb line 118) [2020-11-18T12:09:32-08:00] INFO: linux_user[bin] altered, change shell from /usr/sbin/phil to /usr/sbin/nologin ``` Windows: ``` [2020-11-18T12:18:02-08:00] INFO: windows_user[john] altered, update password ``` Note this does not fix an ongoing but where no matter waht you set the password to it always thinks it needs to be updated, likely a bug somewhere in Chef::Util::Windows::NetUser, and vaguely related to #10455 Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Merge pull request #10472 from ↵Tim Smith2020-11-161-10/+21
|\ | | | | | | | | MsysTechnologiesllc/antima/fixes_for_mutltiple_entry_in_fstab Signed-off-by: Tim Smith <tsmith@chef.io>
| * Added update_or_delete_fs method to fix the order change.antima-gupta2020-11-121-1/+21
| | | | | | | | | | | | Added specs for the changes. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
| * Updated enabled? method to fix multiple entry issue in fstab.antima-gupta2020-11-121-9/+0
| | | | | | | | | | | | Fixed test case failure. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
* | Remove the specs for the plist parsingbuild_essentialTim Smith2020-11-133-142/+0
| | | | | | | | | | | | There's really no point in testing this method now since it would be us mocking out junk only. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #10642 from jaymzh/groupfixesTim Smith2020-11-132-1/+7
|\ \ | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Fix tests; improve outputPhil Dibowitz2020-11-122-1/+7
| |/ | | | | | | Signed-off-by: Phil Dibowitz <phil@ipom.com>
* | Added not_supported_on_solaris because it can't cope with LABEL and UUID ↵antima-gupta2020-11-131-1/+2
|/ | | | | | device type. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
* Merge pull request #10631 from chef/lcg/zypper-fixTim Smith2020-11-113-27/+13
|\ | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * fix specLamont Granquist2020-11-111-2/+2
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * cleanupLamont Granquist2020-11-111-2/+4
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>