summaryrefslogtreecommitdiff
path: root/spec/unit/chef_fs
Commit message (Collapse)AuthorAgeFilesLines
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-174-11/+11
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fixing Lint/Void copLamont Granquist2016-08-161-4/+4
|
* autofixing Style/WhileUntilModifier copLamont Granquist2016-08-161-3/+1
|
* Invalidate the cache on file creationtm/cache_invalidateThom May2016-08-021-0/+1
| | | | Signed-off-by: Thom May <thom@chef.io>
* nuke some out of date teststm/r_rolesThom May2016-05-051-10/+8
|
* add tests for path formattingtm/chef_fs_unit_testsThom May2016-04-281-0/+129
|
* Extract common ChefFS file codeThom May2016-04-211-0/+128
|
* ensure directory and file_system_entry are compatibleThom May2016-04-131-2/+2
|
* test ChefFS repo directory base classThom May2016-04-131-4/+8
|
* Add tests for ChefFS repo directory classThom May2016-04-131-0/+170
|
* remove unused block argumentslcg/chefstyle-perfLamont Granquist2016-02-231-1/+1
|
* Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-2/+2
| | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-192-2/+2
| | | | no enforced trailing comma on arguments...
* 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?
* auto fixing some rubocopsLamont Granquist2016-02-091-1/+1
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-056-85/+84
| | | | | | | | | | | | | | | | | | | | | | 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-027-7/+7
| | | 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-028-8/+8
| | | 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-028-8/+8
| | | 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"
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-182-7/+7
| | | | | | 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-149-601/+601
| | | | | | | 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-134-16/+16
| | | | chefstyle -a fixed 1044 occurrances
* Move server and repository fs objects to their own directoriesJohn Keiser2016-01-131-3/+3
|
* more rubocop fixeslcg/more-rubocop-lintLamont Granquist2016-01-121-8/+5
| | | | | | | | | | | fixes: Lint/UnreachableCode Lint/NonLocalExitFromIterator Lint/LiteralInCondition Lint/EmptyEnsure Lint/DefEndAlignment Lint/CircularArgumentReference
* Add knife/ChefFS support for policyfiles and policy_groups.John Keiser2015-12-151-4/+0
|
* Add make_child_entry in ChefFS CookbookSubdirMaxime Brugidou2015-11-251-0/+34
| | | | Following a517fa8a we can't call `child` on cookbook subdirs.
* Use windows paths without case-sensitivity.ksubrama/path_spaceKartik Null Cating-Subramanian2015-06-301-0/+108
| | | | | | Fixes #1684 Add tests for path manipulation in chef-fs. Clean up the handling of paths in chef-fs.
* Purge pending specscleanup-pendingdanielsdeleo2015-05-231-15/+3
| | | | RSpec isn't a bug database
* Add policy support to ChefFS configurationdanielsdeleo2015-01-271-0/+52
|
* Use new expect syntax instead of shouldJan Habermann2014-12-311-1/+1
|
* Merge pull request #2073 from opscode/ryan/group_post-mastertball/restore-050d148Serdar Sutay2014-11-191-0/+63
|\ | | | | Populate the actors when creating groups
| * Add unit test for group normalization in ChefFSRyan Cragun2014-11-191-0/+63
| |
* | Update to RSpec 3.Claire McQuin2014-10-295-394/+393
| |
* | add empty? method for cheffs base dir classcuriositycasualty2014-10-281-5/+18
|/ | | | | | | | add spec tests remove commented pry binding delegate to Array#empty? instead
* Warn on using 'everything' for knife download on a hosted setup PR #1913jmink2014-08-251-0/+58
|
* Fix tests on 1.8.7John Keiser2014-05-191-116/+97
|
* Do not provide "lazy" unless it is available (Ruby 2.0+)John Keiser2014-05-191-18/+44
|
* Prevent parallel first/take/drop from processing things it shouldn'tJohn Keiser2014-05-191-32/+126
|
* Make parallel enumerable safe to restartJohn Keiser2014-05-191-0/+57
|
* Make it possible to resize and gently stop the parallelizerJohn Keiser2014-05-181-0/+24
|
* Add ability to flatten parallel enumerableJohn Keiser2014-05-181-0/+24
|
* Add each_with_exceptions to allow all results to be knownJohn Keiser2014-05-171-9/+19
|
* Add :stop_on_exception to stop consuming input on exceptionJohn Keiser2014-05-171-0/+27
|
* Add parallel_do method for when you don't care about outputJohn Keiser2014-05-171-21/+33
|
* Add methods to receive asynchronous output from parallelizerJohn Keiser2014-05-171-0/+227
| | | | | | - make parallelizer less eager to process inputs on its thread except when unblocking, to leave it free to send outputs - allow parallelizer to start making headway with long-running inputs before the inputs are done - use ruby internal Queues to manage locking instead of mutexes
* Change OperationFailedError itself to include the body in "message" if it's ↵Kazuhiro Yamada2013-09-122-20/+47
| | | | a 400.
* Output cause of error when FileSystem.copy_entries method was failed.Kazuhiro Yamada2013-09-121-0/+20
| | | | | | | | | | | | - befor the change $ knife upload nodes/node.json ERROR: nodes/node.json failed to write: HTTP error writing: 400 "Bad Request" - after the change $ knife upload nodes/node.json ERROR: nodes/node.json failed to write: HTTP error writing: 400 "Bad Request" cause: {"error":["Invalid key test in request body"]}
* Fix diff_spec on SolarisJohn Keiser2013-06-071-29/+30
|
* Remove unit tests adequately covered in integrationjkeiser2013-06-074-1236/+0
|
* Adjust to new arguments to ChefServerRootDir.newjkeiser2013-06-074-10/+12
|