summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook/synchronizer_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Pick some of the unit test fixes from #10068lcg/win-unit-test-cherrypickLamont Granquist2020-06-261-24/+26
| | | | | | This picks some of the more obviously correct looking fixes from #10068 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/AlignArgumentslcg/new-chefstyleLamont Granquist2019-07-021-4/+4
| | | | | | | | | | | | | | this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* distro constants for solo, zero and automateMarc Chamberland2019-05-231-1/+2
| | | | Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
* changes for rubocop engine upgrades.lcg/rubocop-upgradesLamont Granquist2019-01-151-2/+2
| | | | | | | this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/PreferredHashMethodsLamont Granquist2018-07-021-12/+12
| | | | | | | absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the floor of that gem is bumped up. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/DotPositionLamont Granquist2018-07-021-167/+167
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* consistent formattingTor Magnus Rakvåg2017-09-281-1/+3
| | | | Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
* only warn about skipping sync onceTor Magnus Rakvåg2017-09-281-0/+28
| | | | Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
* lazily load cookbook_files and templatestm/even_lazierThom May2017-04-251-4/+5
| | | | | | Fixes: #6051 Signed-off-by: Thom May <thom@chef.io>
* RFC 67: Remove cookbook segmentsThom May2017-04-041-6/+5
| | | | | | | | | 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>
* specs and lazying net-http client buildingLamont Granquist2016-08-111-0/+7
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Ensure that solo specific code is run at the proper timeThom May2016-05-161-1/+1
| | | | | | ie, only when we're in OG mode and not in local mode. Signed-off-by: Thom May <thom@chef.io>
* deal with 0.37.2 renamed copsLamont Granquist2016-02-181-1/+1
| | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | | | | | | | | | | 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
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | 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.
* Use double quotes by defaultThom May2016-01-141-15/+15
| | | | | | | 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.
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-22/+21
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* clean up deleted files in cookbooks we synchLamont Granquist2014-07-261-22/+83
| | | | | this also fixes bugs where dotfiles would be missed in loops that search through the file cache.
* make no_lazy_load the defaultLamont Granquist2014-07-261-218/+372
| | | | modernization of spec tests and additional specs added
* s/mock\(/double(/gLamont Granquist2014-01-291-8/+8
|
* s/stub!/stub/gLamont Granquist2014-01-291-9/+9
| | | | fix deprecation warnings
* Normalize whitespace on all filesSeth Vargo2013-09-261-3/+3
|
* CHEF-3045: Re-provide lost support for no_lazy_loadBryan McLellan2013-06-181-1/+49
| | | | | | | Originally added in 1938b77, but the move of the cookbook sync code in f880869c93 got messed up in bad merge b36f636 Also, add something test-like.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+258
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!