summaryrefslogtreecommitdiff
path: root/spec/integration
Commit message (Collapse)AuthorAgeFilesLines
* changes for rubocop engine upgrades.lcg/rubocop-upgradesLamont Granquist2019-01-1552-545/+545
| | | | | | | this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* change HTTPServerException to HTTPClientException for ruby 2.6Lamont Granquist2019-01-038-9/+9
| | | | | | includes backcompat for 2.5 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix the knife integration spec timeoutsLamont Granquist2018-11-082-11/+17
| | | | | | | | | 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>
* Remove Chef provisioning lazy loadingprovisioningTim Smith2018-11-021-20/+0
| | | | | | Remove the lazy loading of chef provisioning resources Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix a lingering rubocop issue.Noah Kantrowitz2018-07-111-28/+27
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Feed the rubocop.Noah Kantrowitz2018-07-111-22/+23
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* A few more test cases.Noah Kantrowitz2018-07-111-0/+52
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Use the right class for the reset.Noah Kantrowitz2018-07-112-2/+2
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* New `knife config list-profiles` command to show available profiles.Noah Kantrowitz2018-07-111-0/+136
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Add two new knife commands for getting and setting the credentials profile name.Noah Kantrowitz2018-07-102-0/+212
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Merge branch 'master' into yet-more-credsNoah Kantrowitz2018-07-0255-4554/+4554
|\ | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * clean up whitespace againLamont Granquist2018-07-0212-130/+130
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * fix Layout/DotPositionLamont Granquist2018-07-022-11/+11
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * fix Layout/IndentHeredocLamont Granquist2018-07-0251-4410/+4410
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * fix Style/HashSyntaxLamont Granquist2018-07-0224-198/+198
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Rename the command to `knife config get`.Noah Kantrowitz2018-06-281-3/+3
| | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | Don't need this anymore.Noah Kantrowitz2018-06-241-4/+0
| | | | | | | | 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-0/+187
|/ | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Fix some tests.Noah Kantrowitz2018-06-141-1/+1
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* check the path to --recipe-urlwindows-open-uriThom May2018-05-041-0/+6
| | | | | | Provide the user with feedback if it's invalid or missing. Signed-off-by: Thom May <thom@chef.io>
* Ensure we don't run tests on unsupported platformstm/fix_unix_testsThom May2018-05-023-4/+4
| | | | | | Our more esoteric unices need some more careful hand holding Signed-off-by: Thom May <thom@chef.io>
* Revert "Updated specs for chef_fs_data_store after switching to use metadata"Lamont Granquist2018-04-231-23/+4
| | | | This reverts commit 68e9f4618bc6432023f8327cfce775618806fa9e.
* Revert "fix Chef-14 chef_fs/chef-zero perf regression"Lamont Granquist2018-04-231-1/+1
| | | | This reverts commit 79c8782bbc9ca07898bda6ff9a3a7cdcc39bcdcf.
* fix Chef-14 chef_fs/chef-zero perf regressionlcg/chef-zero-perfLamont Granquist2018-04-101-1/+1
| | | | | | | | | | | | | | | | | | Fixes a perf bug introduced by #6471 where we were taking O(n^2) with the number of cookbook versions in the cookbook synch phase. This is a minimum viable fix that changes the algorithm so that it does the old, fast method of looking up the CBV first. Only if it doesn't find it does it then go searching for cookbooks that are in a differently named directory but which match by the name in the metadata. There may be edge conditions here if people mix-and-match and have cookbooks which have both named-directory and name-in-metadata versions. Please try not to do that. Don't cross the streams. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove deprecated proprety namespace collisionslcg/remove-deprecated-namespace-collisionsLamont Granquist2018-03-051-95/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | require writing `new_resource.my_property` instead of just `my_property` in provider code. a surprise in this code was that methods directly on the resource are all injected into the provider, and we never deprecated that, because we didn't know about it. that makes `action_class {}` helpers unnecessary, but causes additional namespace pollution, but at least the methods declared in the resource will lose to DSL methods (i.e. `def execute` will not work). but that also means that resources which are injected into the DSL which overwrite resource methods in other cookbooks may break their use in that cookbooks providers/action_classes. we should probably deprecate that as well, but we didn't and people probably found this behavior and used it. i cleaned it up a bit and removed the methods on Chef::Resource directly which polluted the provider class with all kinds of bizzare crap methods (not_if and only_if were getting injected into the provider, etc). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix legacy mode and legacy mode testsLamont Granquist2018-02-261-1/+1
| | | | | | | also more broadly applies the integration tests to legacy mode which was the original intent of the chef-solo tests in client_spec.rb here Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Don't use supervisor process for one-shot / command-line runsLamont Granquist2018-02-261-0/+98
| | | | | | | | without --interval we default to --no-fork, with --interval we default to running --fork. --once and --daemonize are handled before this code so they will also DTRT. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #6471 from dimsh99/fix_for_4816Thom May2018-02-141-4/+23
|\ | | | | Fix to use cookbook name in local mode or chef-zero
| * Updated specs for chef_fs_data_store after switching to use metadatadmitrys2017-10-031-4/+23
| | | | | | | | Signed-off-by: dmitrys <dmitrys@northernlight.com>
* | Merge pull request #6364 from chef/knife_rbTim Smith2018-02-071-2/+2
|\ \ | | | | | | Link to the knife docs when the knife config file is missing
| * | Link to the knife.rb docs when the knife.rb file is missingknife_rbTim Smith2018-01-221-2/+2
| | | | | | | | | | | | | | | | | | This is a pretty common first error message to experience with Chef. Let's point the users to a helpful location so they can quickly get up and running. Add some YARD comments while I was in the config class Signed-off-by: Tim Smith <tsmith@chef.io>
* | | fix integration testslcg/node-map-last-writer-winsLamont Granquist2018-01-221-26/+26
| | |
* | | prepping for rubocop 0.52.1lcg/rubocop-0.52.1Lamont Granquist2018-01-171-25/+25
|/ / | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Improve property warnings in resourcesbetter_resource_errorsTim Smith2017-12-291-1/+1
| | | | | | | | | | | | Give more details on why people are seeing these problems so they can fix them. Signed-off-by: Tim Smith <tsmith@chef.io>
* | travis caught another speclcg/lwrp-test-speedupLamont Granquist2017-12-061-1/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | speedup lwrp testsLamont Granquist2017-12-062-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reset the global resource and provider handler maps before each and every test. note that mutation through the top-level keys will get preserved so this is not perfect, but deep-duping through every single test we run becomes expensive. this is sufficient to flush out the global state of all the test lwrp fixtures that we setup. it discovered several usage bugs where we either relied on this feature or where we were testing different fixtures from the ones we thought we were. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #6576 from cma-arnold/masterLamont Granquist2017-11-291-15/+71
|\ \ | | | | | | Hide sensitive properties in converge_if_changed.
| * | Hide sensitive properties in converge_if_changed.Chris Arnold2017-11-271-15/+71
| |/ | | | | | | Signed-off-by: Chris Arnold <cma.arnold@gmail.com>
* | Forgot to check for a unit test. Sigh.Noah Kantrowitz2017-11-271-7/+0
| | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | Remove empty line.Noah Kantrowitz2017-11-271-1/+0
| | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | Tests++.Noah Kantrowitz2017-11-271-1/+9
|/ | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* fixes for rubocop 0.49.1 engineLamont Granquist2017-06-205-10/+10
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Deprecate property namespace magicLamont Granquist2017-06-083-34/+29
| | | | | | | This forces everyone to starting using new_resource.property_name instead of just property_name. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix up tests for the no-listen swapover.Noah Kantrowitz2017-05-261-11/+29
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* lazily load cookbook_files and templatestm/even_lazierThom May2017-04-251-1/+0
| | | | | | Fixes: #6051 Signed-off-by: Thom May <thom@chef.io>
* Add tests for lazy load of cookbook filesThom May2017-04-251-0/+33
| | | | Signed-off-by: Thom May <thom@may.lt>
* couple of integration tests for Chef-13 formatterLamont Granquist2017-04-051-0/+38
| | | | | | | | make sure that we fail if we can see info logs at least (halfway decent check that we're not getting the logger when we're going through a pipe / not through a tty) Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* CHEF-13: remove magic from the logger/formatter settingsLamont Granquist2017-04-051-3/+2
| | | | | | closes #2514 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #6013 from coderanger/always-inlineNoah Kantrowitz2017-04-051-11/+7
|\ | | | | Remove use_inline_resources