Skip to content

Commit

Permalink
Update test_opa_permissions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Nov 20, 2024
1 parent 03a45da commit 2395faa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_opa_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def get_user_datasets():
return [
( # site admin should be able to read all datasets
"site_admin",
{"body": {"path": "/ga4gh/drs/v1/cohorts/", "method": "GET"}},
{"body": {"path": "/ga4gh/drs/v1/programs/", "method": "GET"}},
["SYNTHETIC-1", "SYNTHETIC-2", "SYNTHETIC-3", "SYNTHETIC-4"],
),
( # user1 can view the datasets it's a member of
Expand All @@ -264,7 +264,7 @@ def get_user_datasets():
),
(
"dac_user",
{"body": {"path": "/ga4gh/drs/v1/cohorts", "method": "GET"}},
{"body": {"path": "/ga4gh/drs/v1/programs", "method": "GET"}},
["SYNTHETIC-3"],
),
]
Expand All @@ -281,7 +281,7 @@ def get_curation_allowed():
"site_admin",
{
"body": {
"path": "/ga4gh/drs/v1/cohorts/",
"path": "/ga4gh/drs/v1/programs/",
"method": "POST"
}
},
Expand All @@ -291,7 +291,7 @@ def get_curation_allowed():
"user2",
{
"body": {
"path": "/ga4gh/drs/v1/cohorts/",
"path": "/ga4gh/drs/v1/programs/",
"method": "POST",
"program": "SYNTHETIC-1"
}
Expand All @@ -302,7 +302,7 @@ def get_curation_allowed():
"user1",
{
"body": {
"path": "/ga4gh/drs/v1/cohorts/",
"path": "/ga4gh/drs/v1/programs/",
"method": "POST",
"program": "SYNTHETIC-1"
}
Expand All @@ -313,7 +313,7 @@ def get_curation_allowed():
"user1",
{
"body": {
"path": "/ga4gh/drs/v1/cohorts/",
"path": "/ga4gh/drs/v1/programs/",
"method": "DELETE",
"program": "SYNTHETIC-1"
}
Expand All @@ -324,7 +324,7 @@ def get_curation_allowed():
"user1",
{
"body": {
"path": "/ga4gh/drs/v1/cohorts/",
"path": "/ga4gh/drs/v1/programs/",
"method": "POST",
"program": "SYNTHETIC-2"
}
Expand Down

0 comments on commit 2395faa

Please sign in to comment.