summaryrefslogtreecommitdiff
path: root/spec/support
Commit message (Collapse)AuthorAgeFilesLines
* Fix service enable idempotency in sles11 (#8256)btm/14-MSYS-976dheerajd-msys2019-05-231-0/+4
| | | | | | * fix service enable idempotency in sles11 Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* change HTTPServerException to HTTPClientException for ruby 2.6Lamont Granquist2019-01-163-8/+8
| | | | | | includes backcompat for 2.5 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix the knife integration spec timeoutslcg/chef-14-fix-knife-integration-timeoutsLamont Granquist2018-11-081-2/+2
| | | | | | | | | rely on killing the thread to terminate the server, and rely on thread#join to correctly signal to the main thread that the server thread is dead, don't leak the server object out of the helper. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix testing / installing on SLES 15Tim Smith2018-10-311-1/+2
| | | | | | | Make sure we identify SLES 15 as suse for our zypper tests Make sure we don't remove the symlinks on SLES when doing an upgrade or the new release will be broken Signed-off-by: Tim Smith <tsmith@chef.io>
* switch shell_out to shell_out! in func testslcg/shell-out-mknodLamont Granquist2018-08-211-5/+5
| | | | | | not failing here hides issues caused by e.g. mknod not working properly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #7390 from coderanger/yet-more-credsLamont Granquist2018-07-031-1/+7
|\ | | | | knife config and a bunch of UX improvements
| * Merge branch 'master' into yet-more-credsNoah Kantrowitz2018-07-0215-107/+107
| |\ | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * | Apparently the block argument is already in use with `knife()` even though I ↵Noah Kantrowitz2018-06-241-2/+2
| | | | | | | | | | | | | | | | | | can't figure out quite how. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * | Add tests for `knife config`.Noah Kantrowitz2018-06-231-1/+7
| | | | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | | fix Style/MutableConstantLamont Granquist2018-07-021-1/+1
| |/ |/| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | fix Layout/LeadingCommentSpaceLamont Granquist2018-07-023-4/+4
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | fix Layout/DotPositionLamont Granquist2018-07-022-34/+34
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | fix Style/HashSyntaxLamont Granquist2018-07-0215-76/+76
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Unification of shell_out APIsLamont Granquist2018-06-151-11/+11
| | | | | | | converts all usage to just shell_out() from the numerous helper utilities that we've had previously. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Use local computer name instead of domain in testssp/win10_fix_securable_resource_testsStuart Preston2018-05-301-1/+1
| | | | Signed-off-by: Stuart Preston <stuart@chef.io>
* Merge pull request #7249 from chef/lcg/cleanup-userLamont Granquist2018-05-211-3/+3
|\ | | | | Cleanup AIX and Solaris user resources.
| * clean up updating_home?lcg/cleanup-userLamont Granquist2018-05-101-3/+3
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Add additional resource specsTim Smith2018-05-161-1/+1
|/ | | | | | Auto generated from the resource inspector Signed-off-by: Tim Smith <tsmith@chef.io>
* fix application tests on linuxThom May2018-04-301-0/+1
| | | | Signed-off-by: Thom May <thom@chef.io>
* Merge pull request #7016 from chef/tm/chef_guidThom May2018-03-212-0/+51
|\ | | | | Save the node's UUID as an attribute
| * Save the node's UUID as an attributetm/chef_guidThom May2018-03-212-0/+51
| | | | | | | | | | | | | | We generate the UUID as part of the data collector report, but we didn't make that available to the node or the chef server otherwise. Signed-off-by: Thom May <thom@chef.io>
* | Add the ability to inject log objectstm/inject_logThom May2018-03-192-10/+15
|/ | | | | | meaning that we can have inheritable metadata Signed-off-by: Thom May <thom@chef.io>
* Yum package provider rewriteLamont Granquist2018-03-151-0/+20
| | | | | | squash and rebase of all the work Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chefstyle fixesTim Smith2018-03-071-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove support for Windows 20032k3Tim Smith2018-03-022-6/+1
| | | | | | Windows 2003 is fully end of life at this point and hasn't been supported by Chef for quite a while. EXTENDED support for Windows 2003 ended July 14, 2015. We avoid a good number of WMI queries by removing this support entirely. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #6758 from chef/tm/creds_int_testsThom May2018-01-211-0/+5
|\ | | | | Ensure we don't use credentials during integration tests
| * Ensure we don't use credentials during integration teststm/creds_int_testsThom May2018-01-191-0/+5
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | prepping for rubocop 0.52.1lcg/rubocop-0.52.1Lamont Granquist2018-01-173-6/+2
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* [MSYS-725] [chef#6073] allow forcing senistive to false on execute and batch ↵Vasu11052017-12-261-1/+8
| | | | | | resource Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Update the client.d stubAllan Espinosa2017-12-201-0/+2
| | | | Signed-off-by: Allan Espinosa <aespinosa33@bloomberg.net>
* Slight improvements to validation failures. Shows the failing command if ↵Noah Kantrowitz2017-12-181-1/+9
| | | | | possible and doesn't show anything for sensitive resources to be safe. Refs https://github.com/chef/chef/issues/4793 and ping @chef/client-core for review.
* replace deprecated Dir.exists? with Dir.exist?Thomas Dziedzic2017-11-111-1/+1
| | | | | .rvm/gems/ruby-2.4.2/gems/chef-config-13.6.4/lib/chef-config/path_helper.rb:238: warning: Dir.exists? is a deprecated name, use Dir.exist? instead
* Fixing specsnimisha2017-09-051-1/+1
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Access remote_file resource source files as alternate user on Windowsadamedx2017-09-051-1/+1
| | | | | Conflicts: spec/support/shared/functional/execute_resource.rb
* Merge pull request #6228 from chef/lcg/bump-rubocopLamont Granquist2017-06-201-1/+1
|\ | | | | bump rubocop to 0.49.1
| * fixes for rubocop 0.49.1 engineLamont Granquist2017-06-201-1/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Fixed the specs and review commentsNimishaS2017-06-191-2/+2
| | | | | | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* | Fixing build failures of Windows Server 2016nimisha2017-06-191-0/+5
|/ | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Added choco_include? filternimisha2017-05-111-0/+7
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Remove a whole bunch more stubbed property stuff.Noah Kantrowitz2017-04-111-3/+3
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* server enforced required recipesdelano2017-04-061-0/+7
| | | | | | | | | | | when the chef-server is configured to serve a requried recipe, chef-client shall load the recipe into the run context and execute it as part of the converge phase. if the chef-server is NOT configured, it will return a 404 and chef-client will continue normally. Signed-off-by: Stephen Delano <stephen@chef.io>
* RFC 67: Remove cookbook segmentsThom May2017-04-041-1/+1
| | | | | | | | | This implements RFC 67, which removes cookbook segments, and moves to a single list of all the files contained in a cookbook. This allows us to move forward with better audit modes and also proper shipping of ohai plugins. Signed-off-by: Thom May <thom@chef.io>
* Chef-13 knife search exit 1 when no resultslcg/knife-search-no-resultsLamont Granquist2017-04-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* convert additional resource methods to propertieslcg/chef-resource-propertiesLamont Granquist2017-03-071-3/+0
| | | | | | | converts sensitive, retries, retry_delay and ignore_failure to properties Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef 13: remove unused path property from execute resourceLamont Granquist2017-02-281-9/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13 break: script and all its subclasses now errors on 'command' propertyLamont Granquist2017-02-281-9/+1
| | | | | | | | | | | | | This was always a coding bug. The `command` property is only used internally but is exposed for users to twiddle because script subclasses execute. Thus this still violates Liskov Substitution and this is not an is-a relationship where inheritance might be appropriate, because the script resource should /use/ the execute resource and not /be an/ execute resource. The more you know... Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump chef version to 13.0.0Lamont Granquist2017-02-281-3/+4
| | | | | | | | | | | This requires pulling in master of several gems, bumps all the other gems, plus pulls in new kitchen-appbundle-updater which supports pulling master of ohai. Note that kitchen-windows is disabled because it turns out it was broken and red on 12.19 all along. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-132-13/+9
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #5793 from chef/lcg/data-collector-utf8massterTom Duffield2017-02-091-1/+1
|\ | | | | Sanitize UTF-8 data sent to Data Collector
| * sanitize utf8 data going to serverlcg/data-collector-utf8Lamont Granquist2017-02-081-1/+1
| | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> Signed-off-by: Tom Duffield <tom@chef.io>