summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8916 from Intility/windows-firewall-profilesTim Smith2019-11-141-12/+69
|\ | | | | Support multiple profiles in windows_firewall_rule
| * improve test case descriptions Tor Magnus Rakvåg2019-10-171-3/+3
| | | | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com> Co-Authored-By: Robb Kidd <robb@thekidds.org>
| * fix chefstyle errorsTor Magnus Rakvåg2019-10-071-10/+10
| | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
| * unkown profiles should raise a validation errorTor Magnus Rakvåg2019-10-071-0/+5
| | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
| * increase test coverage of port paramsTor Magnus Rakvåg2019-09-261-6/+46
| | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
| * tests for multiple profilesTor Magnus Rakvåg2019-09-251-6/+18
| | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
* | Revert "Validate name argument for knife list"Tim Smith2019-11-121-11/+7
| | | | | | | | This reverts commit c29b8da2b0353bb5d6e499b5d7cc79c0fadab9b3.
* | Merge pull request #9059 from ↵Tim Smith2019-11-121-7/+11
|\ \ | | | | | | | | | | | | MsysTechnologiesllc/VSingh/MSYS-1154_knife_list_relative_paths [knife list] Validate name argument & raise error if no args provided
| * | Validate name argument for knife listVivek Singh2019-11-051-7/+11
| | | | | | | | | | | | | | | | | | | | |  - Add required specs.  - Raise an error if no argument provided. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | Add new chef_sleep resourceTim Smith2019-11-081-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We highly recommend you never use this, but there's times when you 100% need to have the client sleep for a period of time after some work. Example: windows_service will start a service and the OS will say that it's "started" when it's not. Before doing additional work that relies on the service being started you may need to sleep. This would be a good time to notify on the restart or start action. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-0869-242/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Merge pull request #9047 from jaymzh/fix_enableLamont Granquist2019-11-042-6/+79
|\ \ \ | |/ / |/| | service/systemd_unit: Don't try to reenable services in an indirect status
| * | Fix enable on indirect unitsPhil Dibowitz2019-11-042-6/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | This follows this `is_masked` path to ensure we don't try to enable OR disable systemd units if they are indirect Fixes #9041 Signed-off-by: Phil Dibowitz <phil@ipom.com>
* | | Updates for Chefstyle with Rubocop 0.75.1Tim Smith2019-11-043-3/+3
| | | | | | | | | | | | | | | | | | This update found a few things that should have been triggering before. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Fix TypeError: no implicit conversion of nil into StringVivek Singh2019-11-031-0/+7
|/ / | | | | | | | | | |  - Now showing relevant logs for config.d configuration files. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | add a label to the version command specsRobb Kidd2019-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | These fail in the Habitat plan verification tests because bundle isn't on the PATH for Windows builds (bundle.cmd is). Adding a label to the spec lets testing chose whether to run it or not. Default is that the specs are included in a test run. Signed-off-by: Robb Kidd <robb@thekidds.org>
* | Merge pull request #8925 from ↵Tim Smith2019-11-017-13/+53
|\ \ | | | | | | | | | | | | MsysTechnologiesllc/VSingh/MSYS-1109_chefignore_for_respective_cookbook_dir Fix multiple chefignore file issues
| * | Fix unit specsVivek Singh2019-10-282-2/+2
| | | | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * | Add chefignore unit test casesVivek Singh2019-10-285-11/+46
| | | | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * | Chefstyle fixesVivek Singh2019-10-281-1/+0
| | | | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * | Fix cookbook uploader unit specsVivek Singh2019-10-281-1/+7
| | | | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | Fix knife cookbook metadata from file name argsVivek Singh2019-10-291-0/+7
| | | | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | [Data-collector] Add cookbooks attribute to run_end_message (#8893)Lamont Granquist2019-10-281-0/+7
|\ \ \ | |/ / |/| | [Data-collector] Add cookbooks attribute to run_end_message
| * | Access hash directly instead of Hash#fetchVivek Singh2019-10-171-2/+2
| | | | | | | | | | | | | | | | | | - Rename "expanded_cookbooks" to "cookbooks". Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * | Add expanded_cookbooks attribute to run_end_messageVivek Singh2019-10-171-0/+7
| | | | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | Merge pull request #9028 from MsysTechnologiesllc/VSingh/fix-knife-ssh-name-argsTim Smith2019-10-271-17/+27
|\ \ \ | | | | | | | | Fix Exception: NoMethodError: undefined method join for nil:NilClass
| * | | Fix Exception: NoMethodError: undefined method join for nil:NilClassVivek Singh2019-10-271-17/+27
| | | | | | | | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | | Add format supported option in valuesVivek Singh2019-10-281-0/+17
|/ / / | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | Fix license tag typoPhilippe Ombredanne2019-10-221-1/+1
|/ / | | | | Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* | Merge pull request #8971 from ↵Tim Smith2019-10-142-0/+155
|\ \ | | | | | | | | | | | | MsysTechnologiesllc/VSingh/MSYS-1122_knife_supermarket_list_enhancement Enhance knife supermarket list & search
| * | Add supermarket list & search specsVivek Singh2019-10-142-0/+155
| | | | | | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | Merge pull request #8961 from jeremyhage/fix-windows-package-path-envTim Smith2019-10-141-1/+1
|\ \ \ | | | | | | | | Avoid a PATH environment variable update before a windows package install
| * | | Avoid a PATH environment variable update before a windows package installJeremy HAGE2019-10-081-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Jeremy HAGE <jha@jsh-consulting.com>
* | | | Update windows_service to ignore run_as_user caseJason Barnett2019-10-102-3/+28
| | | | | | | | | | | | | | | | Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
* | | | Add :leave action to windows_ad_join resourceJason Barnett2019-10-091-0/+4
| |/ / |/| | | | | | | | Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
* | | Merge pull request #8856 from MsysTechnologiesllc/bootstrap_password_promptTim Smith2019-10-081-10/+46
|\ \ \ | | | | | | | | Fix Bootstrap password prompt
| * | | Fixed test-case for password prompt.Amol Shinde2019-09-111-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Amol Shinde <amol.shinde@msystechnologies.com>
| * | | Fix password prompt in the bootstrap command.Amol Shinde2019-09-111-10/+46
| | | | | | | | | | | | | | | | | | | | | | | | - Fix test-case for password prompt. Signed-off-by: Amol Shinde <amol.shinde@msystechnologies.com>
* | | | make path idempotent by coercing to backwhacksTor Magnus Rakvåg2019-10-081-0/+7
| | | | | | | | | | | | | | | | Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
* | | | fixup some bad rspec to greenify masterLamont Granquist2019-10-071-2/+2
| |/ / |/| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Merge pull request #8927 from ↵Lamont Granquist2019-09-302-144/+94
|\ \ \ | | | | | | | | | | | | | | | | MsysTechnologiesllc/VSingh/MSYS-1113_to_yaml_support_for_node_attribute Add #to_yaml method for ImmutableMash & ImmutableArray
| * | | Refactor the specs with shared_examplesVivek Singh2019-09-282-170/+92
| | | | | | | | | | | | | | | | | | | | - Add specs for Node::Attribute to_json & to_yaml methods. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * | | Override the #to_yaml method for ImmutableMash & ImmutableArray  Vivek Singh2019-09-271-0/+28
| | |/ | |/| | | | | | | | | | | | | | | |  - Psych module to_yaml not working as expected for ImmutableMash & ImmutableArray.  - So parse first to Hash/Array then convert it to YAML formatted string. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | Fix Windows Integration and Functional tests for BKJaymala Sinha2019-09-272-2/+6
|/ / | | | | | | | | | | | | | | | | * Use default windows 2019 image * Skip 8dot3name tests as default disabled on 2019 * Use windows privileged executor for functional tests * Use windows docker image for chocolatey tests Signed-off-by: Jaymala Sinha <jsinha@chef.io>
* | [Resource::remote_file] Fix show_progress in remote_file is cau… (#8904)Lamont Granquist2019-09-241-0/+18
|\ \ | | | | | | [Resource::remote_file] Fix show_progress in remote_file is causing FloatDomainError: Infinity
| * | Fix show_progress in remote_file is causing FloatDomainError: InfinityVivek Singh2019-09-191-0/+18
| | | | | | | | | | | | | | | | | | | | | - Add check to avoid total if zero or nil. - Set @progress[resource] default value to -1 so that it can start with 0%. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | | fix comverge_if_changed to compare default valueslcg/converge-if-changedLamont Granquist2019-09-231-19/+19
|/ / | | | | | | | | | | | | | | Fixes #6300. This may be a breaking change. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #8765 from ↵Lamont Granquist2019-09-182-37/+67
|\ \ | | | | | | | | | | | | MsysTechnologiesllc/Kapil/MSYS-1015_chocolatey_package_fails_using_extra_options Fix for chocolatey_package fails using extra options
| * | Fix for chocolatey_package fails using extra optionsKapil Chouhan2019-09-092-37/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> Fixed buildkite failure Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> update require changes according to internal review comments Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com> Fix for MSYS-1015 chocolatey_package fails using extra options Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* | | Remove some references to Travis from code commentsnuke_travisTim Smith2019-09-162-6/+0
| | | | | | | | | | | | | | | | | | I removed the travis skips, but the comments were still there. Signed-off-by: Tim Smith <tsmith@chef.io>