summaryrefslogtreecommitdiff
path: root/spec/support/shared/functional/securable_resource.rb
Commit message (Collapse)AuthorAgeFilesLines
* some spec typosVivek Singh2020-04-071-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Style/SymbolProcLamont Granquist2019-07-051-7/+3
| | | | | | enforce pretzels. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/StringLiteralsInInterpolationLamont Granquist2019-07-051-1/+1
| | | | | | since we use double quotes, be consistent everywhere. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Minor fixes as per the review commentsvijaymmali19902019-02-121-93/+99
| | | | | | | | | | - Using proper verbiage for constant SUBFOLDERS_AND_FILES_ONLY - Source https://metacpan.org/pod/Win32::Security::ACE#dbmAceFlags - Minor DRY up and Fixes - Ensured chefstyle Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
* - Minor fixes to fix functional test casesvijaymmali19902019-02-111-2/+27
| | | | | | | | - Added functional test cases for deny_rights option - Ensured chef style - Fixes MSYS-958 Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
* Minor fixes as per the review commentsvijaymmali19902019-02-111-1/+1
| | | | | | | | | | | | - Using proper verbiage for constant WRITE - Source https://docs.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.filesystemrights?view=netframework-4.7.2#fields - Straight away using constants instead of it's fully qualified path - Minor DRY up and Fixes - Fixed functional test cases - Ensured chefstyle Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
* fix Layout/LeadingCommentSpaceLamont Granquist2018-07-021-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-11/+11
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Use local computer name instead of domain in testssp/win10_fix_securable_resource_testsStuart Preston2018-05-301-1/+1
| | | | Signed-off-by: Stuart Preston <stuart@chef.io>
* Chefstyle fixesTim Smith2018-03-071-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* fixing Style/ConstantName copLamont Granquist2016-08-161-4/+4
|
* fixing Lint/Void copLamont Granquist2016-08-161-2/+2
|
* Too much log output and unnecessary warnings! Suppress that shit.Kartik Null Cating-Subramanian2016-04-251-1/+1
|
* autofixing whitespace copsLamont Granquist2016-02-051-1/+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-3/+3
| | | 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-37/+37
| | | | | | | 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-131-6/+6
| | | | chefstyle -a fixed 1044 occurrances
* Purge pending specscleanup-pendingdanielsdeleo2015-05-231-24/+0
| | | | RSpec isn't a bug database
* Merge pull request #3267 from dbjorge/issue-3266Thom May2015-05-201-12/+16
|\ | | | | #3266 Fix bad Windows securable_resource functional spec assumptions for default file owners/groups
| * securable_resource functional specs compare default creation permissions ↵Dan Bjorge2015-04-231-12/+16
| | | | | | | | against actual defaults on Windows
* | Fix indentationThom May2015-05-051-15/+15
| |
* | test for retention of suid bitJacob Minshall2015-03-171-0/+18
|/
* Update to RSpec 3.Claire McQuin2014-10-291-64/+64
|
* Handle unexpected default non-inheritable ACLs on non-vanilla windows boxes.sersut2014-07-141-5/+13
|
* Automatically find out the sid for Administrators so that the specs can run ↵sersut2014-07-141-2/+1
| | | | on boxes for which the administrators account is renamed.
* Merge pull request #1164 from ClogenyTechnologies/kd-OC-9954-aix-rspecClaire McQuin2014-06-091-2/+11
|\ | | | | OC-9954 - aix: use 'guest' user for rspec tests instead of 'nobody' user...
| * OC-9954 - aix: use 'guest' user for rspec tests instead of 'nobody' user.kaustubh-d2013-12-051-2/+11
| |
* | s/stub!/stub/gLamont Granquist2014-01-291-2/+2
|/ | | | fix deprecation warnings
* Make the tests resilient to specific Win2k3 behavior.sersut2013-06-041-1/+3
|
* Increase windows ACL testing coverage. Fix children inheritance of windows ACLs.sersut2013-05-201-17/+25
|
* Fix broken windows permission tests.sersut2013-05-181-8/+62
| | | | Also test with different combinations of new file config items.
* Refactor securable tests to differentiate based on target file availability. ↵sersut2013-05-181-4/+41
| | | | Fix inherits tests so that we are catching ACL issue when we use mv_windows when creating temp files under tmpdir.
* Disable diffs during file functional testsdanielsdeleo2013-03-271-0/+3
| | | | | No functional tests actually use the diff behavior and this speeds them up quite a bit.
* CHEF-3467: Cookbook file resource permissions not inherited from parent on ↵adamedx2013-01-181-70/+73
| | | | Windows when no rights specified
* fix functional test context for permissions.danielsdeleo2013-01-071-37/+28
| | | | | | | | | * 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.
* fixes binmode issues on windowsdanielsdeleo2012-11-191-0/+4
|
* refactor unix securable tests: make updated status explicitdanielsdeleo2012-11-061-24/+57
| | | | | splits tests for updated_by_last_action to their own examples so it's more explicit in the code and specdoc.
* assert starting state, remove atime checksdanielsdeleo2012-11-061-0/+4
| | | | | Chef will nearly always change the atime when inspecting the current state of the file; previous tests were passing by accident.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+394
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!