summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* add securable tests to the create file casetest-securable-on-file-createdanielsdeleo2013-01-081-0/+3
| | | | | IOWs, test securable behavior when the starting state is that the file does not exist.
* remove mistaken message expectationdanielsdeleo2013-01-071-1/+0
|
* Merge branch 'fix-reporting-tests-windows'danielsdeleo2013-01-073-16/+40
|\
| * Make tests unix_only where the stubs don't work on windows.danielsdeleo2013-01-071-3/+13
| | | | | | | | | | Functionality is covered by functional tests, so we have test coverage to fall back on until the unit tests are fixed.
| * Add missing stubs for File.directory?("/tmp")danielsdeleo2013-01-071-0/+2
| |
| * Stub windows platform detection in spec testsdanielsdeleo2013-01-072-13/+22
| |
| * Stub windows detection in directory spec.danielsdeleo2013-01-071-0/+3
|/
* update rspec dependency to 2.12.xdanielsdeleo2013-01-071-1/+1
| | | | | The newer version should have the support for metadata/tag filtering of before blocks that we need for functional tests.
* Merge branch 'functional-test-context-fix'danielsdeleo2013-01-074-38/+46
|\
| * fix functional test context for permissions.danielsdeleo2013-01-074-38/+46
|/ | | | | | | | | * Effectively reverts 65d5c841061401a1a71d9abd1a5da5695cc34f30. "printf debugging" showed that the nested context blocks were not executed at all, so setup for correct/incorrect permissions was not happening correctly * Fixes incorrect assertion that file resources should report being updated when no changes were made.
* skip windows reporting functional tests for nowdanielsdeleo2013-01-041-1/+5
|
* Fix dynamic inclusion of windows securable behaviordanielsdeleo2013-01-042-17/+19
|
* Fix remote file functional tests for ruby < 1.9.3danielsdeleo2013-01-041-1/+10
|
* Compute expected remote file mode from tempfiledanielsdeleo2013-01-041-1/+6
|
* Merge branch 'CHEF-3557-unix'danielsdeleo2013-01-0421-180/+613
|\
| * [CHEF-3557] report file modes with leading 0 for claritydanielsdeleo2013-01-045-13/+13
| |
| * [CHEF-3557] force log_level to info to suppress diffsdanielsdeleo2013-01-041-0/+3
| |
| * [CHEF-3557] Fix ws/capitalization in test suite/commentsdanielsdeleo2013-01-041-6/+6
| |
| * [CHEF-3557] skip file metadata reporting on win for nowdanielsdeleo2013-01-031-0/+1
| |
| * [CHEF-3557] fix reporting for directory-like resourcesdanielsdeleo2013-01-036-12/+13
| |
| * [CHEF-3557] fix file security reporting for files on Unixdanielsdeleo2013-01-039-210/+390
| | | | | | | | | | | | | | | | | | | | * windows still needs work * directories still need work * needs tests for the case that *only* security metadata is updated (correct content) Conflicts: spec/functional/resource/file_spec.rb
| * [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-033-7/+13
| |
| * [CHEF-3557] remove load_current_resource_attrsdanielsdeleo2013-01-036-160/+165
| | | | | | | | | | | | Functionality was a duplicate of ScanAccessControl with some slightly different behavior. Correct behavior is now implemented in ScanAccessControl.
| * [CHEF-3557] Update ScanAccessControl behaviordanielsdeleo2013-01-032-6/+4
| | | | | | | | | | | | | | | | * Record all file security metadata, even if the user never specified it in the first place. * Always store the mode as a string, otherwise everyone who uses the value has to know that an integer needs to be converted to octal for display
| * [CHEF-3557] Factor out windows security resource attrsdanielsdeleo2013-01-032-11/+37
| | | | | | | | | | | | Factor windows-specific file security code into modules so one can manually create a "windows-flavored" file resource for unit testing. There are better ways to do this (see comments), but this works for now.
| * [CHEF-3557] codify file metadata reporting behaviordanielsdeleo2013-01-031-0/+213
|/ | | | | Warning: tests not passing Add functional tests that describe how file metadata should be reported.
* Merge branch 'CHEF-3681'danielsdeleo2012-12-274-21/+167
|\
| * [CHEF-3681] Test LWPs with inline compilationdanielsdeleo2012-12-272-0/+68
| |
| * [CHEF-3681] cleanup whitespace in ResourceCollectiondanielsdeleo2012-12-271-21/+21
| |
| * [CHEF-3681] define #empty? for resource_collectiondanielsdeleo2012-12-271-0/+4
| |
| * [CHEF-3681] add inline compilation option for LWRPdanielsdeleo2012-12-271-0/+74
|/
* [CHEF-3724] correctly query the recipes attribute in Node#recipe?danielsdeleo2012-12-262-1/+31
| | | | | Also, coerce node[:recipes] to an Array so that Node#recipe? will work correctly when the recipes attribute has not been set.
* Merge pull request #567 from opscode/lcg/CHEF-3718lamont-opscode2012-12-211-0/+1
|\ | | | | CHEF-3718: pin systemu version for windows
| * CHEF-3718: pin systemu version for windowsLamont Granquist2012-12-211-0/+1
| |
* | Merge branch 'CHEF-3715'danielsdeleo2012-12-2119-630/+288
|\ \
| * | [CHEF-3715] rename files checksum_cache -> digesterdanielsdeleo2012-12-215-3/+2
| | |
| * | [CHEF-3715] rename ChecksumCache => Digesterdanielsdeleo2012-12-216-71/+9
| | |
| * | [CHEF-3715] document PersistentSet's config logicdanielsdeleo2012-12-211-0/+7
| | |
| * | [CHEF-3715] rm moneta's config optionsdanielsdeleo2012-12-216-21/+23
| | | | | | | | | | | | | | | | | | Cache for syntax check is configured by syntax_check_cache_path. For compatibility, the old moneta-specific cache_options[:path] will be used when syntax_check_cache_path is not set (defaults to nil)
| * | [CHEF-3715] remove caching of sha256 cksumsdanielsdeleo2012-12-218-350/+18
| | | | | | | | | | | | This also eliminates the dependency on moneta.
| * | strip trailing whitespacedanielsdeleo2012-12-211-24/+24
| | |
| * | [CHEF-3715] decouple SyntaxCheck from ChecksumCachedanielsdeleo2012-12-212-57/+101
|/ / | | | | | | | | | | SyntaxCheck was the only place to use ChecksumCache directly (to keep track of which files have already been checked and can be skipped). A simple file-based set now tracks which files have been checked.
* | Merge pull request #562 from lamont-opscode/lcg/OC-4660-registrylamont-opscode2012-12-2120-4/+2848
|\ \ | |/ | | Lcg/oc 4660 registry
| * Fixing tests as per changed codePrajaktaPurohit2012-12-192-18/+2
| |
| * Adding new unit tests for the registry helper, fixing older tests and ↵PrajaktaPurohit2012-12-191-54/+132
| | | | | | | | refactoring code
| * Fixing code to not continue if hive not foundPrajaktaPurohit2012-12-191-1/+2
| |
| * allow using unabbreviated hives as wellLamont Granquist2012-12-191-1/+6
| |
| * add unit tests for case when values are not set in the resourceLamont Granquist2012-12-191-2/+32
| |
| * values default should be empty array instead of nilLamont Granquist2012-12-191-0/+1
| |