Beispiel #1
0
 def setUp(self):
     self.temp_file = temp.file(parent=RUNTIME_VARS.TMP)
     win_dacl.set_owner(obj_name=self.temp_file,
                        principal=self.current_user)
     win_dacl.set_inheritance(obj_name=self.temp_file, enabled=True)
     self.assertEqual(win_dacl.get_owner(obj_name=self.temp_file),
                      self.current_user)
Beispiel #2
0
 def setUp(self):
     self.temp_file = temp.file(parent=TMP)
     salt.utils.win_dacl.set_owner(obj_name=self.temp_file,
                                   principal=self.current_user)
     salt.utils.win_dacl.set_inheritance(obj_name=self.temp_file,
                                         enabled=True)
     self.assertEqual(
         salt.utils.win_dacl.get_owner(obj_name=self.temp_file),
         self.current_user)