Ejemplo n.º 1
0
 def setUp(self):
     self.path = "/humgen/projects/serapis_staging/test-baton/test-collection-acls"
     BatonCollectionAPI.remove_all_acls(self.path)
     self.acl = ACL(user='******', zone='humgen', permission='READ')
     BatonCollectionAPI.add_or_replace_acl(self.path, self.acl)
     existing_acls = BatonCollectionAPI.get_acls(self.path)
     self.assertEqual(len(existing_acls), 1)
Ejemplo n.º 2
0
 def setUp(self):
     self.path = "/humgen/projects/serapis_staging/test-baton/test-collection-acls"
     BatonCollectionAPI.remove_all_acls(self.path)
Ejemplo n.º 3
0
 def tearDown(self):
     BatonCollectionAPI.remove_all_acls(self.path)
Ejemplo n.º 4
0
 def test_remove_all_acls(self):
     BatonCollectionAPI.remove_all_acls(self.fpath)
     acls_set = BatonCollectionAPI.get_acls(self.fpath)
     self.assertEqual(set(), acls_set)
Ejemplo n.º 5
0
 def setUp(self):
     self.path = "/humgen/projects/serapis_staging/test-baton/test-collection-acls"
     BatonCollectionAPI.remove_all_acls(self.path)
     BatonCollectionAPI.add_or_replace_a_list_of_acls(self.path,
                                                      [ACL(user='******', zone='humgen', permission='OWN'),
                                                     ACL(user='******', zone='Sanger1', permission='READ')])