summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Use bash to run sleep/chef-client in chef_client_launchdclient_updatesTim Smith2020-08-271-5/+5
| | | | | | My googling tells me this is the recommended way to run multiple commands. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix specs on windowsTim Smith2020-08-271-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add splay property to chef_client_launchdTim Smith2020-08-271-17/+45
| | | | | | Use the same splay method we used in chef_client_cron resource. Signed-off-by: Tim Smith <tsmith@chef.io>
* Rename the cron_command method for easier diffingTim Smith2020-08-271-19/+19
| | | | | | This makes the specs easier to diff. I also shuffled around some specs Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #10357 from chef/better_launchd_propertiesTim Smith2020-08-261-0/+22
|\ | | | | Improve input handling and validation in chef_client_launchd
| * Rename the spec fileTim Smith2020-08-261-0/+0
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Improve input handling and validation in chef_client_launchdbetter_launchd_propertiesTim Smith2020-08-261-0/+22
| | | | | | | | | | | | | | | | Validate correct nice ranges Make sure interval is a positive value Allow nice and interval to be input as Strings Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #10358 from chef/add_back_niceTim Smith2020-08-261-0/+21
|\ \ | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Add back nice functionality to chef_client_cronTim Smith2020-08-261-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | This was in the cookbook recipe before and was useful for low resource systems where the client could impact host operations. Since we support this in launchd now, it makes sense to do it here as well. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Validate nice values in the launchd resourceTim Smith2020-08-261-0/+8
|/ / | | | | | | | | | | Make sure people give us proper nice values. Also the upper value is 19 not 20. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #10351 from chef/VSingh/knife-list-deprecation-updateTim Smith2020-08-264-124/+58
|\ \ | |/ |/| more config specs cleanup & remove deprecated from knife config list
| * Remove border color optionVSingh/knife-list-deprecation-updateVivek Singh2020-08-261-5/+5
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * knife config show specsVivek Singh2020-08-261-0/+192
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * more config specs cleanupVivek Singh2020-08-264-308/+50
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Add initial take at chef_client_launchdTim Smith2020-08-251-0/+77
|/ | | | | | | The good: We have a resource to configure chef-client to run as a service on macos The bad: Launchd will stop the service if a reconfigure is necessary and it will not start back up. This is a known issue and it exists in the chef-client cookbook as well, but we need to solve it by forked off the chef-client process before we restart the launchd agent. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update `knife config list` with new behavior and fix tests.Pete Higgins2020-08-252-18/+13
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Merge pull request #10341 from chef/VSingh/add-tty-tableTim Smith2020-08-251-22/+23
|\ | | | | knife config list-profiles UI with tty-table
| * Mock TTY::Screen to fix table dynamic natureVivek Singh2020-08-251-0/+1
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * Fix failing specsVivek Singh2020-08-241-22/+22
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Merge branch 'master' into bug_sirTim Smith2020-08-244-10/+18
|\ \ | |/
| * Merge pull request #9482 from MsysTechnologiesllc/dh/Fix-knife-ssh-hang-win2k16Tim Smith2020-08-211-2/+2
| |\ | | | | | | Avoid knife ssh freeze on windows
| | * fix specsdheerajd-msys2020-08-191-2/+2
| | | | | | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
| * | rescue all configuration errors and re-raiseNaomi Reeves2020-08-202-8/+6
| | | | | | | | | | | | Signed-off-by: Naomi Reeves <NaomiReeves@users.noreply.github.com>
| * | define unique exit code for configuration failures and handle correctlyNaomi Reeves2020-08-201-0/+10
| | | | | | | | | | | | Signed-off-by: Naomi Reeves <NaomiReeves@users.noreply.github.com>
* | | Run the User::MacUser and User::Dscl tests on the correct systemsbug_sirTim Smith2020-08-244-12/+9
|/ / | | | | | | | | | | Right now we attempt to run the dscl function specs on all macos systems, when only 10.13 still supports that. We're also only running the macuser functional specs on 10.14 even though that should be running on 10.15 as well. With the introduction of 11.0 the DSCL specs no longer run so we need this fix in order to move forward, but it also ensures we're correctly testing macos releases. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Simplify macos detection in specs to include big surmac_specTim Smith2020-08-202-18/+5
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #10331 from chef/client_trustedTim Smith2020-08-191-0/+54
|\ \ | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Chefstyle fixTim Smith2020-08-191-2/+2
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Add basic unit test of properties and the helper methodTim Smith2020-08-191-0/+54
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #10190 from chef/lcg/add-integ-and-unit-specs-to-omnibusLamont Granquist2020-08-1910-9/+27
|\ \ \ | |/ / |/| |
| * | Add unit and integration testing back to omnibus testersLamont Granquist2020-08-1710-9/+27
| | | | | | | | | | | | | | | | | | It is slow but it does catch real bugs Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Fix spec describe namesTim Smith2020-08-191-4/+4
| |/ |/| | | | | | | | | This was missed in a code review of #10323 Signed-off-by: Tim Smith <tsmith@chef.io>
* | Rename method to match othersTim Smith2020-08-181-3/+3
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Match on the specific error messageTim Smith2020-08-181-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Use .error? and make sure not to raise too earlyTim Smith2020-08-181-2/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Make sure to not raise too earlytimezoneTim Smith2020-08-181-2/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add a spec for the legacy RHEL state loadingTim Smith2020-08-181-0/+8
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add spec for windows as wellTim Smith2020-08-181-3/+14
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add some specs for the methods to load stateTim Smith2020-08-181-0/+44
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | fix unit testlcg/fix-removing-nonexistent-profileLamont Granquist2020-08-181-1/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | add a comment on magic line that makes the specs workLamont Granquist2020-08-171-0/+6
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix to render file_cache_path more "windows-native"Lamont Granquist2020-08-171-3/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix crazy formattinglcg/fix-bootstrapping-path-issuesLamont Granquist2020-08-141-7/+11
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix the real issueLamont Granquist2020-08-141-7/+12
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix bootstrapping windows-from-linuxLamont Granquist2020-08-141-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert the functional tests over to macos? as wellTim Smith2020-08-141-2/+2
| | | | | | I missed these. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #10284 from chef/existTim Smith2020-08-1431-106/+107
|\ | | | | Fix File.exist throughout the codebase
| * File.exists? -> File.exist?existTim Smith2020-08-1231-106/+107
| | | | | | | | | | | | Update some of these methods Signed-off-by: Tim Smith <tsmith@chef.io>
* | Minor tweaks to the platform checks in the specsminor_specTim Smith2020-08-122-8/+8
|/ | | | | | | Use match? to make sure we always get a bool back. Rename os_x? to macos? Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #10286 from ↵Tim Smith2020-08-121-15/+15
|\ | | | | | | | | MsysTechnologiesllc/Kapil/Github-9541_ssl_chef-rspec.cert_is_expired Renew an expired SSL Certificate