summaryrefslogtreecommitdiff
path: root/spec/integration/knife/download_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix all(?) circular requires coming from the specs.Ryan Davis2020-03-161-0/+1
| | | | | | | Lots more in lib, but that's out of scope for this. I'm just trying to make it easier to debug a failing spec when needed. Signed-off-by: Ryan Davis <zenspider@chef.io>
* Style/StringLiteralsInInterpolationLamont Granquist2019-07-051-1/+1
| | | | | | since we use double quotes, be consistent everywhere. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* changes for rubocop engine upgrades.lcg/rubocop-upgradesLamont Granquist2019-01-151-78/+78
| | | | | | | this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* clean up whitespace againLamont Granquist2018-07-021-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/IndentHeredocLamont Granquist2018-07-021-504/+504
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-7/+7
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Cache ChefFS childrentm/cache_fs_childrenThom May2016-07-261-4/+4
| | | | Signed-off-by: Thom May <thom@chef.io>
* properly deal with loading ruby filesThom May2016-05-051-0/+19
|
* Fix failing specsTim Smith2016-03-061-4/+4
|
* deal with 0.37.2 renamed copsLamont Granquist2016-02-181-2/+2
| | | | | | | | | | | | | | | 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 whitespace copsLamont Granquist2016-02-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | 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-021-1/+1
| | | 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-021-1/+1
| | | 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-021-1/+1
| | | 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"
* Adjust tests for ACLsJohn Keiser2016-02-011-0/+9
|
* another chefstyle catchup + pull masterlcg/chefstyle-catchup2Lamont Granquist2016-01-181-2/+2
| | | | | | | 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.
* Revert "another chefstyle catchup + pull master"Lamont Granquist2016-01-181-2/+2
| | | | This reverts commit ccf46bf3055b2a1c06499ec104f3d74c26643395.
* another chefstyle catchup + pull masterLamont Granquist2016-01-181-2/+2
| | | | | | | 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.
* Get download of cookbook_artifacts workingJohn Keiser2016-01-151-2/+9
|
* Use double quotes by defaultThom May2016-01-141-438/+438
| | | | | | | 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-131-4/+4
| | | | chefstyle -a fixed 1044 occurrances
* Add knife/ChefFS support for policyfiles and policy_groups.John Keiser2015-12-151-20/+135
|
* 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-231-0/+4
|
* Clean all RSpec test filters related to Ruby 1.8.7 (issue #2497)Xabier de Zuazo2015-01-271-1/+1
|
* Update to RSpec 3.Claire McQuin2014-10-291-5/+5
|
* Exclude knife integration tests on server platformsBryan McLellan2014-10-091-1/+1
| | | | | | Not all platforms (looking at you solaris) need bother running the knife tests because we don't consider them to be workstation platforms. Excluding them will reduce transient failures and speed up the tests.
* Add org.json, members.json, invitations.json for full org downloadJohn Keiser2014-09-051-0/+76
| | | | and upload support
* Switch back to ChefZero::RSpec version 3jk/rspec_zero_3John Keiser2014-08-291-1/+1
| | | | And add some Enterprise tests (fix an acl delete issue)
* Fix expected format of JSON errors in integration testsdanielsdeleo2014-08-101-12/+7
| | | | | | | | The format was previously not stable because chef-zero (or other test code) would `require 'json'` and undo ffi-yajl's monkey patches to the JSON gem. We would probably be better off if we can get out of the business of monkeypatching JSON or attempting to provide compatibility at all, in which case this commit could be reverted.
* Convert Chef Zero helpers to instance methodsdanielsdeleo2014-08-101-127/+228
| | | | | | | | | | | | | * Prefer instance methods to class methods for Chef Zero helpers. RSpec's design and feature set heavily favors using instance methods for test setup. This change will allow us to use let bindings and more naturally move common setup to shared contexts. * Temporarily copy ChefZero's RSpec features in-repo. master of Chef Zero is currently broken for unit testing. Copy the changes here for now so we can make progress. * Automatically generate a metadata file when using the "cookbook" helper function. This will be needed for a subsequent change that makes `name' required in metadata.
* omit test on ruby-1.8Lamont Granquist2014-01-301-1/+1
| | | | | | rspec and ruby-1.8 don't play well with this test: https://github.com/rspec/rspec-mocks/issues/549
* Add test to verify all download requests are signedJohn Keiser2013-10-151-0/+27
|
* Normalize whitespace on all filesSeth Vargo2013-09-261-2/+2
|
* Invalidate "children" caches when children are addedJohn Keiser2013-09-121-0/+9
|
* Add missing license to integration test files.sersut2013-06-141-0/+17
|
* Fix no-diff tests to actually use --no-diffJohn Keiser2013-06-071-1/+1
|
* Add --no-diff option to allow download/upload of only new filesJohn Keiser2013-06-071-0/+31
|
* Turn on nodes, clients and users by default ("everything")John Keiser2013-06-071-237/+92
|
* [SPEC] Refactored diff, upload, and download spec to have explicit inputsHo-Sheng Hsiao2013-06-071-238/+723
|
* [SPEC] Added upload and download specs with cookbook versionsHo-Sheng Hsiao2013-06-071-103/+212
| | | | - Specs assume that Chef requires name attribute in the metadata
* [SPEC] Reorganized download, upload, and diff integration specsHo-Sheng Hsiao2013-06-071-90/+28
| | | | | | - Added one_of_each_resource_in_chef_server macro - Added one_of_each_resource_in_repository macro - Reorganized specs so that adding in versioned cookbooks specs will be easier
* Fix #82: Allow knife upload of files with no name/id in themjkeiser2013-06-071-0/+16
|
* Print error for bad json in knife uploadjkeiser2013-06-071-0/+11
|
* Make knife upload/download detect identical cookbooks correctlyjkeiser2013-06-071-16/+21
|
* Add knife diff cwd, wildcard and cookbook version testsjkeiser2013-06-071-1/+1
|
* knife upload/download cookbook version testsjkeiser2013-06-071-0/+49
|
* Add upload/download tests for cwd, wildcards and JSON differencesjkeiser2013-06-071-3/+46
|
* Add knife download tests; fix bug when creating /x/y/z.rb and /x doesn't existjkeiser2013-06-071-0/+403