summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/checksums.rb
Commit message (Collapse)AuthorAgeFilesLines
* [#3994] rename the specs to have _spec.rb at the endMarkus Roberts2010-06-231-153/+0
| | | | | | | | | Some spec files like active_record.rb had names that would confuse the load path and get loaded instead of the intended implentation when the spec was run from the same directory as the file. Author: Matt Robinson <matt@puppetlabs.com> Date: Fri Jun 11 15:29:33 2010 -0700
* For #3822 - Reducing checksum code duplicationLuke Kanies2010-02-171-0/+4
| | | | | | | | | | | The FileBucket code had a bunch of checksum code that was already available in a library, and it used a checksum format (type + data) that was incompatible with what we were using everywhere else. This just fixes that code duplication. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
* Fix #3373 - Client side file streamingBrice Figureau2010-02-171-0/+20
| | | | | | | | | | This patch moves file content writing to the content properties and always write (or read) contents by chunks. This reduces drastically puppetd memory consumption when handling large sourced files. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Adding "checksum?" helper method to Checksums moduleLuke Kanies2010-02-171-0/+16
| | | | Signed-off-by: Luke Kanies <luke@reductivelabs.com>
* Fix #2929 - Allow checksum to be "none"Brice Figureau2010-02-171-1/+7
| | | | | | | | | | | | | | | | File checksum is "md5" by default. When managing local files (not sourced or content) it might be desirable to not checksum files, especially when managing deep hierarchies containing many files. This patch allows to write such manifests: file { "/path/to/deep/hierarchy": owner => brice, recurse => true, checksum => none } Then puppet(d) won't checksum those files, just manage their ownership. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixing #2183 - checksum buffer size is now 4096bLuke Kanies2009-04-241-1/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding a method to Checksums to extract the sum typeLuke Kanies2008-11-051-0/+8
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Quashed commit of my fixes for #1010.Luke Kanies2008-02-211-4/+4
|
* Refactoring the incremental checksum generationLuke Kanies2008-02-141-18/+12
| | | | slightly based on the code in type/file/checksum.rb.
* Enhancing the stand-alone checksums utility moduleLuke Kanies2008-02-141-0/+105
with the rest of the checksums we're likely to use, and adding tests, which I somehow missed when I wrote this file.