Skip to content

Commit

Permalink
added new resources to test_expected_auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matbusby-fw committed Dec 19, 2024
1 parent 2431487 commit 31e560f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/core-api/tests/auth/test_expected_auth.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import pytest

from app.api.mines.permits.permit_conditions.resources.permit_amendment_condition_category_user_resource import \
AssignUserToPermitConditionCategory
from app.api.mines.reports.resources.mine_report_permit_requirement import MineReportPermitRequirementResource
from app.api.users.resources.user_list_resource import UserListResource
from app.api.users.resources.user_resource import UserResource
from app.api.utils.access_decorators import VIEW_ALL, MINE_EDIT, MINE_ADMIN, MINESPACE_PROPONENT, EDIT_PARTY, \
EDIT_PERMIT, EDIT_STANDARD_PERMIT_CONDITIONS, EDIT_DO, EDIT_VARIANCE, EDIT_REPORT, EDIT_SUBMISSIONS, EDIT_SECURITIES, \
Expand Down Expand Up @@ -123,6 +126,7 @@
(MinespaceUserMineListResource, 'post', [MINE_ADMIN]),
(MinespaceUserMineResource, 'delete', [MINE_ADMIN]),
(UserResource, 'get', [VIEW_ALL]),
(UserListResource, 'get', [VIEW_ALL]),
(NOWActivityTypeResource, 'get', [VIEW_ALL]),
(NOWApplicationImportResource, 'post', [EDIT_PERMIT]),
(NOWApplicationListResource, 'get', [VIEW_ALL, GIS]),
Expand All @@ -147,6 +151,8 @@
(PermitConditionsResource, 'get', [EDIT_PERMIT]),
(PermitConditionsResource, 'put', [EDIT_PERMIT]),
(PermitConditionsResource, 'delete', [EDIT_PERMIT]),
(AssignUserToPermitConditionCategory, 'post', [EDIT_STANDARD_PERMIT_CONDITIONS]),
(AssignUserToPermitConditionCategory, 'put', [VIEW_ALL]),
(StandardPermitConditionsListResource, 'post', [EDIT_STANDARD_PERMIT_CONDITIONS]),
(StandardPermitConditionsListResource, 'get', [EDIT_STANDARD_PERMIT_CONDITIONS]),
(StandardPermitConditionsResource, 'put', [EDIT_STANDARD_PERMIT_CONDITIONS]),
Expand Down

0 comments on commit 31e560f

Please sign in to comment.