summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-13658-659/+659
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* make dep update fasterdheerajd-msys2020-04-131-1/+2
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* update filter for opensuse and fix depsdheerajd-msys2020-04-133-4/+4
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* update test for opensusedheerajd-msys2020-04-134-9/+220
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* remove support for SLES11dheerajd-msys2020-04-133-211/+0
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* Update specs for the new class nameTim Smith2020-04-101-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update spec/unit/resource/plist_spec.rb Tim Smith2020-04-101-24/+22
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> Co-Authored-By: pete higgins <pete@peterhiggins.org>
* Update spec/unit/resource/plist_spec.rb Tim Smith2020-04-101-1/+0
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> Co-Authored-By: pete higgins <pete@peterhiggins.org>
* Remove more contextsTim Smith2020-04-101-43/+24
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove a single contextmacos-resourcesTim Smith2020-04-101-19/+17
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add the plist resource from the macos cookbookTim Smith2020-04-101-0/+154
| | | | | | | | | This is a very useful base resource for mac systems that allows us to write additional resources for managing macs. I've migrated their library into the resource itself to make it a single self-contained unit. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #9632 from chef/lcg/resource-partialsTim Smith2020-04-092-0/+128
|\ | | | | Add resource partials
| * Add resource partialsLamont Granquist2020-04-082-0/+128
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #9624 from chef/systemd_timerTim Smith2020-04-091-0/+70
|\ \ | | | | | | Add chef_client_systemd_timer resource
| * | Remove specs for integer assumptionTim Smith2020-04-091-9/+0
| | | | | | | | | | | | | | | | | | It's a string now Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Add chef_client_systemd_timer resourceTim Smith2020-04-081-0/+79
| |/ | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | fix speclcg/fix-bootstrap-cli-optionsLamont Granquist2020-04-081-2/+2
|/ | | | | | | the bootstrap context isn't responsible for merging so this was always testing the wrong behavior Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #9609 from MsysTechnologiesllc/VSingh/typos-fixesTim Smith2020-04-0752-114/+114
|\ | | | | Spell checking in comments and log messages
| * Add more typo fixesVivek Singh2020-04-0713-56/+56
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * some spec typosVivek Singh2020-04-0742-59/+59
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Really skip the reboot pending func test if a reboot is pendingBryan McLellan2020-04-061-5/+6
|/ | | | | | This looks like it never worked but we happened to never run into it until we added a desktop platform to the pipeline. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Merge pull request #9544 from pschaumburg/ps/windows_firewall_rule-reworkTim Smith2020-04-041-47/+82
|\ | | | | windows_firewall_rule: Fix idempotency and add icmp_type property
| * Merge branch 'master' into ps/windows_firewall_rule-reworkPatrick Schaumburg2020-04-033-30/+173
| |\
| * | remove unused testsPatrick Schaumburg2020-04-011-78/+0
| | | | | | | | | | | | Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
| * | Merge branch 'master' into ps/windows_firewall_rule-reworkPatrick Schaumburg2020-04-0111-41/+410
| |\ \
| * | | add some more testsPatrick Schaumburg2020-03-301-7/+23
| | | | | | | | | | | | Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
| * | | changing unit tests for methodPatrick Schaumburg2020-03-301-42/+14
| | | | | | | | | | | | Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
| * | | redo unit checks for is_set_properly?Patrick Schaumburg2020-03-301-28/+57
| | | | | | | | | | | | Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
| * | | fix linting errors + add unit test for is_set_properly? methodPatrick Schaumburg2020-03-301-0/+61
| | | | | | | | | | | | Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
| * | | fix test for groupPatrick Schaumburg2020-03-271-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
| * | | fix wrong property names again in testsPatrick Schaumburg2020-03-271-13/+3
| | | |
| * | | fix wrong property name in testsPatrick Schaumburg2020-03-271-2/+2
| | | |
| * | | remove space in test as it should not be therePatrick Schaumburg2020-03-271-4/+4
| | | |
| * | | add and change testsPatrick Schaumburg2020-03-271-45/+90
| | | |
* | | | Implement eager_load_libraries metadata optionLamont Granquist2020-04-035-40/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements RFC-40 from the old chef rfc repo: https://github.com/chef-boneyard/chef-rfc/blob/master/rfc040-on-demand-cookbook-libraries.md Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | Change name_property to be identity and not desired_state by defaultLamont Granquist2020-04-022-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If no other property is an identity property then the name_property is the default identity property. The name_property is also marked as not being desired state by default (the 'name' should never change). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | remove redundant identityLamont Granquist2020-04-021-0/+3
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | name_property implies identity if there is no other identity property this has been the behavior for a very long time, dunno why #4282 was never closed. closes #4282 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Merge pull request #9562 from chef/lcg/after-resourceTim Smith2020-04-023-30/+173
|\ \ \ | |_|/ |/| | Add after_resource to pair with current_resource
| * | remove duping for load_current_value and code duplicationlcg/after-resourceLamont Granquist2020-03-311-2/+3
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | Add after_resource to pair with current_resourceLamont Granquist2020-03-312-28/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For custom resources which correctly implement load_current_value the new after_resource comes for "free" and load_current_value will be called twice to load the current_resource (should be renamed the "before_resource" but that ship sailed) and then the after_resource. Appropriate wiring is added for a new event and capturing that into the action_collection and then the data_collector. The resource_reporter has not and will not be updated. For old style resources which are difficult to convert to custom resources (thinking here particularly of the 1:N model of the service resource in core chef, or stuff that just may be a lot of work like the file resource) then they can override the load_after_resource to manually wire up their own after_resource. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Fix functional tests on Windows 10 by matching lessBryan McLellan2020-03-311-4/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | Windows 10 1909 is a service pack, but without being called a service pack. 1909 is a very small update over 1903, and in fact most of the binaries are not rebuilt. The version for 1909 is 10.0.18363, but the version in many files is still 10.0.18362, which was the version for 1903. This caused this functional test to fail on 1909 because 10.0.18362 != 10.0.18363. Nowhere else are we concerned with the file versions matching the OS version, so the fix is to match less of the version. By matching only '10.0', we should not see this again. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* | Fix failing specsTim Smith2020-03-311-2/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Handle scenario where no value found in the updateTim Smith2020-03-311-1/+31
| | | | | | | | | | | | Also add a pile of specs Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add testing of the xcode CLI detection plist parsingTim Smith2020-03-313-11/+133
| | | | | | | | | | | | Use the data files from the macos cookbook Signed-off-by: Tim Smith <tsmith@chef.io>
* | Switch the array format of shell_out and add a testTim Smith2020-03-311-1/+25
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Skip the ifconfig functional tests if we don't have ifconfignet-toolsTim Smith2020-03-273-3/+9
| | | | | | | | | | | | I'm looking at you Ubuntu 20.04 Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #9480 from chef/fix-clear-sourcesTim Smith2020-03-273-31/+216
|\ \ | | | | | | Fix unintuitive behavior of sources on gem resources
| * | Fix chefstyle violation.Pete Higgins2020-03-231-1/+1
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Make include_default_source nil by default and change implied logic.Pete Higgins2020-03-231-12/+119
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Clear sources if either a source or rubygems_url is set.Pete Higgins2020-03-231-1/+21
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>