summaryrefslogtreecommitdiff
path: root/spec/integration/knife
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | better chef+ruby rspec constraintsLamont Granquist2016-03-031-2/+2
|/ | | | | | | | lets us use Gem::Dependency constraints directly as rspec constraints for matching Chef::Version and RUBY_VERSION. copies some magic sauce from bundler that does something similar
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-192-24/+24
| | | | no enforced trailing comma on arguments...
* deal with 0.37.2 renamed copsLamont Granquist2016-02-183-6/+6
| | | | | | | | | | | | | | | 252 Style/TrailingCommaInLiteral 84 Style/TrailingCommaInArguments 15 Style/SpaceAroundKeyword -- 351 Total We already dealt with SpaceAroundKeyword under its old name SpaceBeforeModifierKeyword, it looks like it got stricter about spaces after keywords. TrailingComma also got split, and it looks like the TrailingCommaInArguments behavior is new?
* autofixing auto-inserted delimiterslcg/chefstyle-batchLamont Granquist2016-02-091-10/+10
|
* auto fixing some rubocopsLamont Granquist2016-02-091-10/+10
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-059-27/+26
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-0216-16/+16
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-0215-15/+15
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-0216-16/+16
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Fix /acls/data_bags local mode pathJohn Keiser2016-02-011-1/+1
|
* Adjust tests for ACLsJohn Keiser2016-02-013-2/+57
|
* Enable Chef 12 mode for local mode by defaultdanielsdeleo2016-01-261-233/+406
|
* Fix ambiguous argument warningsdanielsdeleo2016-01-261-2/+2
|
* Merge pull request #4424 from chef/lcg/chefstyle-catchup2Lamont Granquist2016-01-192-4/+4
|\ | | | | another chefstyle catchup + pull master
| * another chefstyle catchup + pull masterlcg/chefstyle-catchup2Lamont Granquist2016-01-182-4/+4
| | | | | | | | | | | | | | bunch of merges over the weekend need re-fixing again. seems like pointing at master of chefstyle is probably a good idea to start making people fix their code before merging.
* | Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-182-18/+18
|/ | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Revert "another chefstyle catchup + pull master"Lamont Granquist2016-01-182-4/+4
| | | | This reverts commit ccf46bf3055b2a1c06499ec104f3d74c26643395.
* another chefstyle catchup + pull masterLamont Granquist2016-01-182-4/+4
| | | | | | | bunch of merges over the weekend need re-fixing again. seems like pointing at master of chefstyle is probably a good idea to start making people fix their code before merging.
* Make upload cookbook_artifacts workJohn Keiser2016-01-151-2/+19
|
* Get download of cookbook_artifacts workingJohn Keiser2016-01-152-10/+17
|
* Add server cookbook artifacts and list_specJohn Keiser2016-01-151-0/+16
|
* Use double quotes by defaultThom May2016-01-1416-2644/+2644
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-136-34/+34
| | | | chefstyle -a fixed 1044 occurrances
* fix some lint copsLamont Granquist2016-01-121-2/+2
| | | | | | | | | fixes the following offenses: 46 Lint/EndAlignment 21 Lint/BlockAlignment 3 Lint/SpaceBeforeFirstArg 1 Lint/DefEndAlignment
* Add knife/ChefFS support for policyfiles and policy_groups.John Keiser2015-12-154-58/+427
|
* Don't run IPv6 tests on GCEjk/no-ipv6-on-gceJohn Keiser2015-12-151-1/+1
|
* fix some busted specsLamont Granquist2015-10-261-3/+3
|
* improve error message, add more testsLamont Granquist2015-10-261-1/+28
|
* Allow downloading of root_files in a chef repositoryssd/download-root-filesSteven Danna2015-10-231-0/+9
| | | | | | | A FileSystemEntry with a nil parent is a "root directory" and thus should exists so long as its filesystem path exists. This was preventing the download of files such as invitation.json whose parent directory is a root directory.
* Re-upgrade chef-zero to latestjk/latest-chef-zeroJohn Keiser2015-09-233-1/+13
|
* Use windows paths without case-sensitivity.ksubrama/path_spaceKartik Null Cating-Subramanian2015-06-301-11/+13
| | | | | | Fixes #1684 Add tests for path manipulation in chef-fs. Clean up the handling of paths in chef-fs.
* fix circular references testsLamont Granquist2015-05-181-14/+8
|
* suppress cookbook self-dependencies and warnlcg/warn-cb-self-depLamont Granquist2015-05-151-0/+18
| | | | | | | | | | | | | | | | | | | | cookbooks with self-deps: name 'foo' depends 'foo' are useless and can waste cycles in the depsolver (particularly in the non-solution case), and likely limit the possible choices of depsolvers that we could pick at some point to replace gecode. filtering out the self-dep here will prevent the chef server depsolver from seeing the self-dep and needing to do the work to strip it. also warn the user so that they can remove the self-dep. in the future this will be a hard error. foodcritic also has a rule about removing these.
* Update integration tests for chefzero URLsdanielsdeleo2015-04-011-3/+3
|
* Clean all RSpec test filters related to Ruby 1.8.7 (issue #2497)Xabier de Zuazo2015-01-271-1/+1
|
* define dummynode for specsawanoboly2015-01-271-4/+8
|