Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit aca7ae21 authored by Ryan Herbert's avatar Ryan Herbert

tests/models/VidjilAuth.py admin group use actual admin group

naming a group 'admin' and giving it admin permissions doesn't seem to
work
parent 2869318a
......@@ -167,19 +167,12 @@ class VidjilauthModel(unittest.TestCase):
group_qui = db.auth_group.insert(role="group5", description="fifth group")
admin_group = db.auth_group.insert(role="admin", description="admin group")
admin_group = 1
db.auth_membership.insert(user_id=admin_user_id, group_id=admin_group)
db.group_assoc.insert(first_group_id = parent_group, second_group_id = group_sec)
db.group_assoc.insert(first_group_id = group_qui, second_group_id = group)
db.auth_permission.insert(name=PermissionEnum.access.value, table_name='sample_set', group_id=admin_group, record_id=0)
db.auth_permission.insert(name=PermissionEnum.access.value, table_name='patient', group_id=admin_group, record_id=0)
db.auth_permission.insert(name=PermissionEnum.access.value, table_name='run', group_id=admin_group, record_id=0)
db.auth_permission.insert(name=PermissionEnum.read.value, table_name='sample_set', group_id=admin_group, record_id=0)
db.auth_permission.insert(name=PermissionEnum.read.value, table_name='patient', group_id=admin_group, record_id=0)
db.auth_permission.insert(name=PermissionEnum.read.value, table_name='run', group_id=admin_group, record_id=0)
db.auth_permission.insert(name=PermissionEnum.upload.value, table_name='sample_set', group_id=group_qua, record_id=0)
db.auth_permission.insert(name=PermissionEnum.run.value, table_name='sample_set', group_id=group_qua, record_id=0)
db.auth_permission.insert(name=PermissionEnum.access.value, table_name='sample_set', group_id=group_qua, record_id=sample_set_id_ter)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment