Exemple #1
0
 def test_ace_clear_access_success(self):
     share = UnityCifsShare(cli=t_rest(), _id='SMBShare_5')
     removed_sid_list = share.clear_access()
     assert_that(
         removed_sid_list,
         only_contains('S-1-5-15-be80fa7-8ddad211-d49ba5f9-45e',
                       'S-1-5-15-be80fa7-8ddad211-d49ba5f9-1f4'))
Exemple #2
0
 def test_ace_clear_access_with_white_list(self):
     share = UnityCifsShare(cli=t_rest(), _id='SMBShare_5')
     removed_sid_list = share.clear_access(white_list=['SMIS_User_2'])
     assert_that(removed_sid_list,
                 equal_to(['S-1-5-15-be80fa7-8ddad211-d49ba5f9-45e']))
Exemple #3
0
 def test_cim_clear_access_success(self):
     share = UnityCifsShare(cli=t_rest(), _id='SMBShare_8')
     sids = share.clear_access()
     assert_that(len(sids), equal_to(2))