Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add securable tests to the create file casetest-securable-on-file-create | danielsdeleo | 2013-01-08 | 1 | -0/+3 |
| | | | | | IOWs, test securable behavior when the starting state is that the file does not exist. | ||||
* | remove mistaken message expectation | danielsdeleo | 2013-01-07 | 1 | -1/+0 |
| | |||||
* | Merge branch 'fix-reporting-tests-windows' | danielsdeleo | 2013-01-07 | 3 | -16/+40 |
|\ | |||||
| * | Make tests unix_only where the stubs don't work on windows. | danielsdeleo | 2013-01-07 | 1 | -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") | danielsdeleo | 2013-01-07 | 1 | -0/+2 |
| | | |||||
| * | Stub windows platform detection in spec tests | danielsdeleo | 2013-01-07 | 2 | -13/+22 |
| | | |||||
| * | Stub windows detection in directory spec. | danielsdeleo | 2013-01-07 | 1 | -0/+3 |
|/ | |||||
* | update rspec dependency to 2.12.x | danielsdeleo | 2013-01-07 | 1 | -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' | danielsdeleo | 2013-01-07 | 4 | -38/+46 |
|\ | |||||
| * | fix functional test context for permissions. | danielsdeleo | 2013-01-07 | 4 | -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 now | danielsdeleo | 2013-01-04 | 1 | -1/+5 |
| | |||||
* | Fix dynamic inclusion of windows securable behavior | danielsdeleo | 2013-01-04 | 2 | -17/+19 |
| | |||||
* | Fix remote file functional tests for ruby < 1.9.3 | danielsdeleo | 2013-01-04 | 1 | -1/+10 |
| | |||||
* | Compute expected remote file mode from tempfile | danielsdeleo | 2013-01-04 | 1 | -1/+6 |
| | |||||
* | Merge branch 'CHEF-3557-unix' | danielsdeleo | 2013-01-04 | 21 | -180/+613 |
|\ | |||||
| * | [CHEF-3557] report file modes with leading 0 for clarity | danielsdeleo | 2013-01-04 | 5 | -13/+13 |
| | | |||||
| * | [CHEF-3557] force log_level to info to suppress diffs | danielsdeleo | 2013-01-04 | 1 | -0/+3 |
| | | |||||
| * | [CHEF-3557] Fix ws/capitalization in test suite/comments | danielsdeleo | 2013-01-04 | 1 | -6/+6 |
| | | |||||
| * | [CHEF-3557] skip file metadata reporting on win for now | danielsdeleo | 2013-01-03 | 1 | -0/+1 |
| | | |||||
| * | [CHEF-3557] fix reporting for directory-like resources | danielsdeleo | 2013-01-03 | 6 | -12/+13 |
| | | |||||
| * | [CHEF-3557] fix file security reporting for files on Unix | danielsdeleo | 2013-01-03 | 9 | -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 rebase | danielsdeleo | 2013-01-03 | 1 | -3/+3 |
| | | | | | | | | | | CHEF-3715 removed checksum cache, which changes number of File.stat calls | ||||
| * | [CHEF-3557] remove load_current_resource_attrs corpse | danielsdeleo | 2013-01-03 | 3 | -7/+13 |
| | | |||||
| * | [CHEF-3557] remove load_current_resource_attrs | danielsdeleo | 2013-01-03 | 6 | -160/+165 |
| | | | | | | | | | | | | Functionality was a duplicate of ScanAccessControl with some slightly different behavior. Correct behavior is now implemented in ScanAccessControl. | ||||
| * | [CHEF-3557] Update ScanAccessControl behavior | danielsdeleo | 2013-01-03 | 2 | -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 attrs | danielsdeleo | 2013-01-03 | 2 | -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 behavior | danielsdeleo | 2013-01-03 | 1 | -0/+213 |
|/ | | | | | Warning: tests not passing Add functional tests that describe how file metadata should be reported. | ||||
* | Merge branch 'CHEF-3681' | danielsdeleo | 2012-12-27 | 4 | -21/+167 |
|\ | |||||
| * | [CHEF-3681] Test LWPs with inline compilation | danielsdeleo | 2012-12-27 | 2 | -0/+68 |
| | | |||||
| * | [CHEF-3681] cleanup whitespace in ResourceCollection | danielsdeleo | 2012-12-27 | 1 | -21/+21 |
| | | |||||
| * | [CHEF-3681] define #empty? for resource_collection | danielsdeleo | 2012-12-27 | 1 | -0/+4 |
| | | |||||
| * | [CHEF-3681] add inline compilation option for LWRP | danielsdeleo | 2012-12-27 | 1 | -0/+74 |
|/ | |||||
* | [CHEF-3724] correctly query the recipes attribute in Node#recipe? | danielsdeleo | 2012-12-26 | 2 | -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-3718 | lamont-opscode | 2012-12-21 | 1 | -0/+1 |
|\ | | | | | CHEF-3718: pin systemu version for windows | ||||
| * | CHEF-3718: pin systemu version for windows | Lamont Granquist | 2012-12-21 | 1 | -0/+1 |
| | | |||||
* | | Merge branch 'CHEF-3715' | danielsdeleo | 2012-12-21 | 19 | -630/+288 |
|\ \ | |||||
| * | | [CHEF-3715] rename files checksum_cache -> digester | danielsdeleo | 2012-12-21 | 5 | -3/+2 |
| | | | |||||
| * | | [CHEF-3715] rename ChecksumCache => Digester | danielsdeleo | 2012-12-21 | 6 | -71/+9 |
| | | | |||||
| * | | [CHEF-3715] document PersistentSet's config logic | danielsdeleo | 2012-12-21 | 1 | -0/+7 |
| | | | |||||
| * | | [CHEF-3715] rm moneta's config options | danielsdeleo | 2012-12-21 | 6 | -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 cksums | danielsdeleo | 2012-12-21 | 8 | -350/+18 |
| | | | | | | | | | | | | This also eliminates the dependency on moneta. | ||||
| * | | strip trailing whitespace | danielsdeleo | 2012-12-21 | 1 | -24/+24 |
| | | | |||||
| * | | [CHEF-3715] decouple SyntaxCheck from ChecksumCache | danielsdeleo | 2012-12-21 | 2 | -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-registry | lamont-opscode | 2012-12-21 | 20 | -4/+2848 |
|\ \ | |/ | | | Lcg/oc 4660 registry | ||||
| * | Fixing tests as per changed code | PrajaktaPurohit | 2012-12-19 | 2 | -18/+2 |
| | | |||||
| * | Adding new unit tests for the registry helper, fixing older tests and ↵ | PrajaktaPurohit | 2012-12-19 | 1 | -54/+132 |
| | | | | | | | | refactoring code | ||||
| * | Fixing code to not continue if hive not found | PrajaktaPurohit | 2012-12-19 | 1 | -1/+2 |
| | | |||||
| * | allow using unabbreviated hives as well | Lamont Granquist | 2012-12-19 | 1 | -1/+6 |
| | | |||||
| * | add unit tests for case when values are not set in the resource | Lamont Granquist | 2012-12-19 | 1 | -2/+32 |
| | | |||||
| * | values default should be empty array instead of nil | Lamont Granquist | 2012-12-19 | 1 | -0/+1 |
| | |