Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class PermissionDict(TypedDict, total=False):
"resource-usage.write",
"storage.files.sync",
],
inherits=[UserRole.TESTER],
inherits=[UserRole.PRODUCT_OWNER],
),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
(UserRole.USER, status.HTTP_403_FORBIDDEN),
(UserRole.TESTER, status.HTTP_403_FORBIDDEN),
(UserRole.PRODUCT_OWNER, status.HTTP_200_OK),
(UserRole.ADMIN, status.HTTP_403_FORBIDDEN),
(UserRole.ADMIN, status.HTTP_200_OK),
],
)
async def test_role_access_to_generate_invitation(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ async def mock_send_message(msg):
*(
(role, status.HTTP_403_FORBIDDEN)
for role in UserRole
if role not in {UserRole.PRODUCT_OWNER, UserRole.ANONYMOUS}
if role not in {UserRole.PRODUCT_OWNER, UserRole.ADMIN, UserRole.ANONYMOUS}
),
(UserRole.PRODUCT_OWNER, status.HTTP_200_OK),
(UserRole.ADMIN, status.HTTP_200_OK),
],
)
async def test_access_rights_on_search_users_only_product_owners_can_access(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def test_get_product_price_when_undefined(
(UserRole.USER, status.HTTP_403_FORBIDDEN),
(UserRole.TESTER, status.HTTP_403_FORBIDDEN),
(UserRole.PRODUCT_OWNER, status.HTTP_200_OK),
(UserRole.ADMIN, status.HTTP_403_FORBIDDEN),
(UserRole.ADMIN, status.HTTP_200_OK),
],
)
async def test_get_product_access_rights(
Expand Down
Loading