summaryrefslogtreecommitdiff
path: root/spec/unit/provider/file_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>
* Use the action DSL consistentlyLamont Granquist2020-03-021-5/+5
| | | | | | | | May be a potentially breaking change if I noodle hard enough on it, it does mean that all the actions are now (correctly) encapsulated in a sub-resource collection, whereas before they never had one. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* ensure that providers inherit loggers from the run contextThom May2018-03-261-1/+2
| | | | Signed-off-by: Thom May <thom@chef.io>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing whitespace copsLamont Granquist2016-02-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | 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"
* Use double quotes by defaultThom May2016-01-141-5/+5
| | | | | | | 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.
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-1/+1
| | | | mechanically generated patch using transpec 2.3.7 gem
* s/mock\(/double(/gLamont Granquist2014-01-291-1/+1
|
* spec tests for checksumLamont Granquist2013-11-111-1/+3
| | | | | - plus stubbing of things that weren't stubed - and changing stub! to stub
* Fix specs on windows.sersut2013-05-231-2/+6
|
* Move file content management logic outside of providers under ↵sersut2013-05-161-1/+1
| | | | Chef::FileContentManagement for reusability in the future.
* moving lets out of behaviorLamont Granquist2013-04-011-0/+14
|
* file provider spec workLamont Granquist2013-03-201-559/+4
|
* fixing busted specs on windowsLamont Granquist2013-03-181-5/+6
|
* refactoring of file providersLamont Granquist2013-03-151-395/+472
|
* Stub windows platform detection in spec testsdanielsdeleo2013-01-071-0/+3
|
* [CHEF-3557] report file modes with leading 0 for claritydanielsdeleo2013-01-041-2/+2
|
* [CHEF-3557] Fix tests after rebasedanielsdeleo2013-01-031-3/+3
| | | | | CHEF-3715 removed checksum cache, which changes number of File.stat calls
* [CHEF-3557] remove load_current_resource_attrs corpsedanielsdeleo2013-01-031-2/+13
|
* [CHEF-3557] remove load_current_resource_attrsdanielsdeleo2013-01-031-36/+28
| | | | | | Functionality was a duplicate of ScanAccessControl with some slightly different behavior. Correct behavior is now implemented in ScanAccessControl.
* [CHEF-3715] remove caching of sha256 cksumsdanielsdeleo2012-12-211-5/+8
| | | | This also eliminates the dependency on moneta.
* strip trailing whitespacedanielsdeleo2012-12-211-24/+24
|
* fixes binmode issues on windowsdanielsdeleo2012-11-191-2/+4
|
* Finished refactoring converge and updated teststylercloke2012-11-051-1/+0
| | | | so that converge and converge! are no longer a method in the provider and why_run, respectively. There is instead set_updated_status in provider. Everything is now converged in why_run's add_action, so neither of the converge methods should ever need to be called. Updated tests to reflect this. Removed all calls to converge, and replaced with set_updated_status only for tests that are looking at the update status of a provider, where the converge behavior has been mocked out.
* Merge branch '10-stable'Bryan McLellan2012-10-301-66/+72
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: chef-expander/lib/chef/expander/version.rb chef-server-api/lib/chef-server-api/version.rb chef-server-webui/lib/chef-server-webui/version.rb chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef/lib/chef/node/attribute.rb lib/chef/node.rb
* | [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+498
|/ | | | The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!
* big refactor of the repo layout. move to a chef gem and a chef-server gem ↵Ezra Zygmuntowicz2008-10-081-224/+0
| | | | all with proper deps
* Changing the license on the spec files as wellAdam Jacob2008-08-171-13/+11
|
* Adding remote_file testsAdam Jacob2008-08-171-0/+1
| | | | | Fixing up some tests Updating the history to reflect our new additions
* Added template support, changed license to Apache v 2Adam Jacob2008-08-161-0/+13
|
* chef compilesAdam Jacob2008-04-271-0/+19
|
* Adding the Params::Validate mixin, refactored Chef::Config to be a ↵Adam Jacob2008-04-071-1/+1
| | | | singleton, Implemented require_recipe
* Bringing the file provider to 100 coverageAdam Jacob2008-03-231-1/+25
|
* Adding a File providerAdam Jacob2008-03-231-0/+169