Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Create a test user with specific instrument permissions #197

Open
Pasarus opened this issue Aug 18, 2022 · 0 comments
Open

Create a test user with specific instrument permissions #197

Pasarus opened this issue Aug 18, 2022 · 0 comments

Comments

@Pasarus
Copy link
Member

Pasarus commented Aug 18, 2022

Issue raised by: [developer]

What?
In order to test certain functionality around constraining what users can see. It must be possible to have test accounts for the webapp with very specific experiment associations. It is quite easy to emulate an instrument scientist (Can view any experiment / run on an instrument they are associated with) however emulating a user may be more tricky.

This issue could potentially be done locally for development systems. But may require user office / ICAT involvement if we wish to have the same capabilities on production system. As such this issue should only cover development.

In addition to working out how to implement this, we should also create a script that creates these user accounts for us (this is important for automated testing in CI)

Where?

  • New scripts that create a user with specific permissions

How to test the issue is resolved

  • Run the user creation script and ensure that a new user has been added to the database
  • Ensure that the user has specific permissions to view only one instrument
  • Ensure a user can also be created that has specific permissions to only very certain experiments (this can be across varies instruments).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant