summaryrefslogtreecommitdiff
path: root/spec/support
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* | fix for rubocop 0.47.1Lamont Granquist2017-02-091-1/+1
| | | | | | | | | | | | looks someone fixed an edge condition in rubocop Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Fix functional tests for alternate user supportBryan McLellan2017-02-093-4/+10
|/ | | | | | | | | On Windows you need the SeAssignPrimaryTokenPrivilege right to use CreateProcessAsUser when running under a service, even if you're an Administrator. This makes these functional tests not run under Jenkins if the jenkins user does not have this right. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Fixed bugs, review comments and specsnimisha2017-02-022-7/+2
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Rubocop violations in execute resource alternate user implementationadamedx2017-02-022-8/+8
|
* Rubcop violations in alt-user execute common codeadamedx2017-02-021-14/+14
|
* Workaround on Windows execute tests for leaked user profilesAdam Edwards2017-02-021-2/+7
|
* Windows alternate user support for execute resourcesAdam Edwards2017-02-023-5/+262
|
* Do not modify File's new_resource during why-runScott Christopherson2017-01-201-0/+10
| | | | | | | | | | | The `File` provider's `action_create` method would modify the `new_resource` object during a `why-run`. This was problematic when a `File` resource was configured with a `notifies :before` because resources with `before` timers have their actions executed twice. [Once](https://github.com/chef/chef/blob/a2e1d1d4edb74a968b416517fdbdf35740686467/lib/chef/runner.rb#L54-L57) in `why-run` mode to see if the other resources need to be notified, and then executed [once again](https://github.com/chef/chef/blob/a2e1d1d4edb74a968b416517fdbdf35740686467/lib/chef/runner.rb#L68-L69) after the `before` notifications are resolved. This behavior would result in existing File resources not getting their ownership and permissions updated properly during a converge. Signed-off-by: Scott Christopherson <scott@chef.io>
* Properly deprecate old Chef::Platform methodsLamont Granquist2016-12-076-0/+8
| | | | | | | | These should have been deprecated formally in 12.5.1 after the Dynamic Provider-Resolver'ing of the internal chef resources was completed. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* msu_package resource for Microsoft Update packagesNimishaS2016-11-161-8/+16
| | | | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com> Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* Enable the data collector automaticallydanielsdeleo2016-11-021-3/+12
| | | | Signed-off-by: Daniel DeLeo <dan@chef.io>
* Add the `--field-separator` flag to knife show commandsTom Duffield2016-10-281-1/+4
| | | | | | | | | | | | | For the commands that allow you to filter which attributes it shows you using the `--attribute` flag, add the `--field-separator` flag to allow the user to customize which character(s) they want to use to deliniate the attribute hierarchy. ```shell knife node show NODE -S: -a "packages:Chef Client v12.12.15" ``` Signed-off-by: Tom Duffield <tom@chef.io>
* Fix a few bad copyrightsTim Smith2016-10-201-1/+1
| | | | | | I think this happened when we merged the Opscode and Chef copyrights Signed-off-by: Tim Smith <tsmith@chef.io>
* add check for the centos why-run buglcg/linux-user-check-lockLamont Granquist2016-08-241-0/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* rewrite linu_user provider check_lockLamont Granquist2016-08-241-38/+16
| | | | | | | | | | | | this removes the kinda brittle kinda insane parsing of the installed rpm version. now we're just less strict about the exit 1 code and fail on the output not being what is expected. this also likely fixes a bug in rhel in why-run mode where shell_out! would have failed on the user-not-found and raised an exception that would have ended the run. the code before certainly looks buggy. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #5243 from chef/lcg/rewrite-linux-user-providerLamont Granquist2016-08-241-10/+10
|\ | | | | Rewrite linux useradd provider
| * sort out the -m / -M mess a bit betterLamont Granquist2016-08-231-9/+9
| | | | | | | | | | | | -M is not valid for usermod Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * clean up everythingLamont Granquist2016-08-231-5/+5
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Create and delete yum repositoriesThom May2016-08-241-0/+4
|/ | | | Signed-off-by: Thom May <thom@may.lt>
* user provider manage_home behavior and refactorLamont Granquist2016-08-191-32/+20
| | | | | | | | | split out the user provider into 1:1 resources. fix the behavior of the linux user provider to implement manage_home behavior correctly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-1711-48/+52
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fixing Style/ConstantName copLamont Granquist2016-08-161-4/+4
|
* fixing Lint/Void copLamont Granquist2016-08-161-2/+2
|