summaryrefslogtreecommitdiff
path: root/spec/integration/knife
Commit message (Collapse)AuthorAgeFilesLines
* 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-0243-3941/+3941
|\ | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * clean up whitespace againLamont Granquist2018-07-0211-122/+122
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * fix Layout/IndentHeredocLamont Granquist2018-07-0243-3878/+3878
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * fix Style/HashSyntaxLamont Granquist2018-07-0214-120/+120
| | | | | | | | 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>
* 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>
* 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>
* | 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>
* | 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>
* Fix up tests for the no-listen swapover.Noah Kantrowitz2017-05-261-11/+29
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Merge pull request #5850 from criteo-forks/rb_supportThom May2017-04-041-22/+58
|\ | | | | Add real support for rb files (at least roles) in knife-serve
| * Ensure ruby nodes are supported in knife serveGrégoire Seux2017-03-061-6/+16
| | | | | | | | | | Change-Id: I4788cac16864c7eb5a876890e9fe41485af80d46 Signed-off-by: Grégoire Seux <g.seux@criteo.com>
| * Support ruby role in knife serveGrégoire Seux2017-03-061-4/+15
| | | | | | | | | | Change-Id: I1076b918e9153f21b4c49d77054899111106eb74 Signed-off-by: Grégoire Seux <g.seux@criteo.com>
| * Add test for role listing in knife serveGrégoire Seux2017-03-061-1/+9
| | | | | | | | | | Change-Id: Ic28361e506643f55f588c7ddb22a27800b634f96 Signed-off-by: Grégoire Seux <g.seux@criteo.com>
| * Extract with_knife_serve helper in knife serve testsGrégoire Seux2017-03-061-22/+29
| | | | | | | | | | Change-Id: I0ddb921a30daf33007b37483b163fc76117441c7 Signed-off-by: Grégoire Seux <g.seux@criteo.com>
* | RFC 67: Remove cookbook segmentsThom May2017-04-043-144/+12
| | | | | | | | | | | | | | | | | | 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-0/+39
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* self-deps are now just illegalLamont Granquist2017-02-281-9/+5
| | | | | | circular deps are poor form, but allowed, so we still need to check. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* raise on cookbook self-dependencyLamont Granquist2017-02-281-11/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/SpaceInsideArrayPercentLiteralLamont Granquist2016-12-061-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Update output assertion for environment set specstd/rfc018/add-field-separator-flagTom Duffield2016-10-281-1/+4
| | | | | | | | | This test was originally written against a KnifeSupport that wasn't actually pulling in the instance variables (i.e. :attribute) when parsing the data. When running this command manually with Knife v12.15.19, I get the output as now described in this test. Signed-off-by: Tom Duffield <tom@chef.io>
* Add the `--field-separator` flag to knife show commandsTom Duffield2016-10-281-4/+24
| | | | | | | | | | | | | 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>
* Return a raw hash when creating objectstm/last_json_deprecationsThom May2016-10-181-3/+0
| | | | | | Fixes chef/chef-vault#215 Signed-off-by: Thom May <thom@may.lt>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Don't use relative_path_from on glob resultsjk/windows-ruby-2.3John Keiser2016-08-161-1/+70
| | | | Windows Ruby 2.3 translates pathnames like ADMINI~1 to Administrator, making the comparison fail.
* Cache ChefFS childrentm/cache_fs_childrenThom May2016-07-264-9/+11
| | | | Signed-off-by: Thom May <thom@chef.io>
* Add most common knife commands to integration teststm/knife_integration_testsThom May2016-06-2241-0/+2486
| | | | Signed-off-by: Thom May <thom@chef.io>
* fix some tests that were just wrongThom May2016-05-052-13/+5
|
* Introduce display_name and use itThom May2016-05-051-2/+2
| | | | | | | | This allows us to use the path we produce for other display purposes and consume it internally to have a canonical path for comparisons and printing Signed-off-by: Thom May <thom@may.lt>
* properly deal with loading ruby filesThom May2016-05-052-2/+40
|
* Merge pull request #4670 from tas50/knife_wording-3Tim Smith2016-03-233-10/+10
|\ | | | | Improve wording in Knife
| * Fix failing specsTim Smith2016-03-063-10/+10
| |
* | Merge pull request #4640 from chef/tm/zero_deep_librariesThom May2016-03-151-0/+4
|\ \ | |/ |/| Support libraries with sub directories
| * Ensure that chef-zero loads libraries recursivelytm/zero_deep_librariesThom May2016-03-031-0/+4
| |