diff options
author | Dan Bjorge <dbjorge@gmail.com> | 2015-04-23 02:22:48 -0700 |
---|---|---|
committer | Dan Bjorge <dbjorge@gmail.com> | 2015-04-23 02:22:48 -0700 |
commit | 505ccd35d931d69bef1f3c62e15d2fcc77762775 (patch) | |
tree | 77b01e1bc9d22871e9b1cfc4a57e993a4d64f598 /spec/functional/win32 | |
parent | 8c18efe89da10de749511a7e35c182feac49992d (diff) | |
download | chef-505ccd35d931d69bef1f3c62e15d2fcc77762775.tar.gz |
Pin sid_spec default group expectation to observed behavior
Diffstat (limited to 'spec/functional/win32')
-rw-r--r-- | spec/functional/win32/sid_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/functional/win32/sid_spec.rb b/spec/functional/win32/sid_spec.rb index a12cfb6e79..1f5f66178a 100644 --- a/spec/functional/win32/sid_spec.rb +++ b/spec/functional/win32/sid_spec.rb @@ -26,8 +26,11 @@ describe 'Chef::ReservedNames::Win32::SID', :windows_only do SID ||= Chef::ReservedNames::Win32::Security::SID end - it 'should resolve default_security_object_group as the current user' do - expect(SID.default_security_object_group).to eq(SID.current_user) + it 'should resolve default_security_object_group as a sane user group', :windows_not_domain_joined_only do + # Domain accounts: domain-specific Domain Users SID + # Microsoft Accounts: SID.current_user + # Else: SID.None + expect(SID.default_security_object_group).to eq(SID.None).or eq(SID.current_user) end context 'running as an elevated administrator user' do |