Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test the user role / permission matrix #2502

Open
2 tasks
pbastia opened this issue Nov 21, 2024 · 4 comments
Open
2 tasks

Test the user role / permission matrix #2502

pbastia opened this issue Nov 21, 2024 · 4 comments
Assignees

Comments

@pbastia
Copy link
Contributor

pbastia commented Nov 21, 2024

Describe the task

After adding new roles in (#2493 , #2494, #2497 )
Blocked by #2522

We need to test that the user roles can actually only perform the operations allowed.

This could be:

  • an additional test, verifying each endpoint with each role name
  • an extension of the API authorization test

Acceptance Criteria

  • Add a new test to TestEndpointPermissions that validates each role has access only to its permitted endpoints as specified in endpoints_to_test. The test should iterate over all roles and verify they do not have access to endpoints outside their allowed list.
    Validation Across All Roles and Endpoints

  • Implement the test to dynamically evaluate every endpoint against every role, ensuring that unauthorized access attempts fail for each role and endpoint combination not explicitly defined in endpoints_to_test.

@patrickisaac
Copy link

patrickisaac commented Nov 26, 2024

Refinement Notes:

  • @Sepehr-Sobhani to further refine ticket -> will be having additional discussion with Pierre

@Sepehr-Sobhani
Copy link
Contributor

@patrickisaac refined!

@patriciarussellCAS
Copy link

@fviduya

@patriciarussellCAS
Copy link

Once we can confirm that the user roles in the system have been set up properly, we can get the BA to do a round of UAT in -test to confirm everything works as they planned. This will be required for the FRCR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants