summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* feed chefstylelcg/fix-syslogLamont Granquist2020-07-021-1/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Replace stub run_context with one with more platform information.Pete Higgins2020-06-302-2/+13
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Remove a stub run_context.Pete Higgins2020-06-301-2/+0
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Use the original run_context for tests that depend on platform specific stuff.fix-release-build-testsPete Higgins2020-06-303-3/+28
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Fix more undefined references to run_context.Pete Higgins2020-06-303-0/+6
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Don't use stubbed node.Pete Higgins2020-06-301-6/+2
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Fix a missing reference to run_context.Pete Higgins2020-06-301-3/+4
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Merge pull request #10027 from chef/remove-bad-test-fileTim Smith2020-06-2832-61/+67
|\ | | | | specs: Remove test file that added a method to top-level scope.
| * More missed run_context references.remove-bad-test-filePete Higgins2020-06-261-2/+4
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * This spec seems to rely on the existing run_context behavior.Pete Higgins2020-06-261-2/+9
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Remove test file that added a method to top-level scope.Pete Higgins2020-06-2632-61/+58
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* | Merge pull request #10078 from chef/revert-initial-diff-fixTim Smith2020-06-281-2/+1
|\ \ | | | | | | Revert "Merge pull request #10052 from chef/fix-diff-tests"
| * | Revert "Merge pull request #10052 from chef/fix-diff-tests"revert-initial-diff-fixPete Higgins2020-06-261-2/+1
| |/ | | | | | | | | | | | | This reverts commit 70efe2b6766846ff913461fe7da35bed2b98ce4f, reversing changes made to cb79fb33208efe059a49871192c94bcfded481ab. Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* | Update tests and docs for umask on Windows.fix-umask-test-on-windowsPete Higgins2020-06-261-8/+25
|/ | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Merge pull request #10074 from chef/lcg/win-unit-test-cherrypickLamont Granquist2020-06-2611-56/+92
|\ | | | | Pick some of the unit test fixes from #10068
| * revert these changes as they break everything else other than windowsLamont Granquist2020-06-262-16/+13
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * Pick some of the unit test fixes from #10068lcg/win-unit-test-cherrypickLamont Granquist2020-06-2613-69/+108
| | | | | | | | | | | | This picks some of the more obviously correct looking fixes from #10068 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Remove other top-level methods defined in tests and do a little cleanup.other-test-cleanupPete Higgins2020-06-243-52/+49
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* | Fix some odd whitespacing in tests.Pete Higgins2020-06-2434-83/+83
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* | Remove another top-level method from the test suite.Pete Higgins2020-06-241-22/+6
|/ | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Merge pull request #10021 from chef/cspell_common_dictTim Smith2020-06-231-1/+0
|\ | | | | Setup cspell to pull from our common dictionary
| * Fix more typosTim Smith2020-06-231-1/+0
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | fix role unit specs for windowsLamont Granquist2020-06-231-21/+23
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | try to fix the windows selinux unit testsLamont Granquist2020-06-231-0/+1
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add rubular link for regex in test.fix-diff-testsPete Higgins2020-06-231-0/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Update the regex that was scrubbing OS specific strings.Pete Higgins2020-06-231-1/+1
| | | | | | https://rubular.com/r/5JdtZDqWnZhB9J Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* More aggressively deprecate config_valueLamont Granquist2020-06-221-0/+1
| | | | | | | | | | | | | | | Force subclasses to use the `config` hash directly. This should not affect any knife plugins shipping in chef-workstation since the calls to config_value have already been removed from all of those plugins. The multiple-argument version of config_value was not actually used anywhere in those plugins and the single value version was removed and replaced with accessing the config hash. Since that was introduced sometime in 15.x when the bootstrap changes went in, it is not expected that many external knife plugins have picked up the usage of config_value. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #10011 from chef/vasundhara/Fixes_knife_config_use_profileTim Smith2020-06-181-2/+55
|\ | | | | Fix for knife config use-profile doesn't validate that the profile exist
| * Fix for #9686: knife config use profile doesn't validate that the profile existvasundhara/Fixes_knife_config_use_profileVasu11052020-06-181-2/+55
| | | | | | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* | Merge pull request #10000 from chef/resource-umask-propertyTim Smith2020-06-171-0/+52
|\ \ | |/ |/| Add a umask property for resources.
| * Cleanup test, add failsafe reset.Pete Higgins2020-06-161-10/+11
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Fix chefstyle violation.Pete Higgins2020-06-161-1/+1
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * Add a umask property for resources.Pete Higgins2020-06-161-0/+51
| | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* | Silence exception output in threaded test.Pete Higgins2020-06-161-0/+9
|/ | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Merge pull request #10001 from chef/cron_cleanupTim Smith2020-06-154-52/+26
|\ | | | | Cron and Cron_d resource weekday property fixes
| * Moved all the constants together.antima-gupta2020-06-101-1/+0
| | | | | | | | | | | | | | | | | | Removed unnecessary assignment for weekday_in_crontab. Removed pry. Removed converted to a string function from weekday validation. Added unified_mode in cron and cron_d resources. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
| * removed cron helper filesantima-gupta2020-06-101-31/+0
| | | | | | | | Signed-off-by: antima-gupta <agupta@msystechnologies.com>
| * Added cron_shared partial.antima-gupta2020-06-101-6/+9
| | | | | | | | | | | | | | Fixed provider cron spec failure. Moved cron and cron resource into the lib/chef/resource/cron directory. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
| * Added freeze for WEEKDAYS constant.antima-gupta2020-06-102-5/+5
| | | | | | | | | | | | | | Fixed chefstyle spec failure. Made changes as per review comment. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
| * Fixed cron resource weekday property.antima-gupta2020-06-105-46/+49
| | | | | | | | | | | | | | | | | | Implemented same weekday functionality for cron_d resource. Fixed rspec failure. Added cron helper for weekday functionality Added spec for cron helper. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
* | Merge pull request #9980 from chef-davin/windows_audit_policyTim Smith2020-06-151-0/+64
|\ \ | | | | | | Create windows_audit_policy resource
| * | updates for chefstyle and spellcheck errorsDavin Taddeo2020-06-151-1/+0
| | | | | | | | | | | | Signed-off-by: Davin Taddeo <davin@chef.io>
| * | missed commiting the reference to the full chain to reference the ↵Davin Taddeo2020-06-151-1/+1
| | | | | | | | | | | | | | | | | | WIN_AUDIT_SUBCATEGORIES constant Signed-off-by: Davin Taddeo <davin@chef.io>
| * | still not sure if I'm calling this constant right... if this doesn't work, I ↵Davin Taddeo2020-06-151-1/+1
| | | | | | | | | | | | | | | | | | guess I'll ask for help or something ;) Signed-off-by: Davin Taddeo <davin@chef.io>
| * | hoping this fixes my uninitialized constant issueDavin Taddeo2020-06-151-0/+1
| | | | | | | | | | | | Signed-off-by: Davin Taddeo <davin@chef.io>
| * | Updated code to reflect feedback from @phigginsDavin Taddeo2020-06-151-72/+10
| | | | | | | | | | | | Signed-off-by: Davin Taddeo <davin@chef.io>
| * | Merge branch 'master' of github.com:chef/chef into windows_audit_policyDavin Taddeo2020-06-159-10/+10
| |\ \
| * \ \ Merge branch 'master' of github.com:chef/chef into windows_audit_policyDavin Taddeo2020-06-112-2/+2
| |\ \ \
| * | | | chefstyle and spellcheck fixes.Davin Taddeo2020-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Davin Taddeo <davin@chef.io>
| * | | | fixing a lot more :facepalm: copy/paste errors.Davin Taddeo2020-06-111-4/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Davin Taddeo <davin@chef.io>