Bug 53525 - Refactor out shared code
Refactor out shared code
Status: NEW
Product: Components
Classification: Unclassified
Component: ucsschool-apis
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-06-28 12:11 CEST by Joerg Baach
Modified: 2021-06-28 12:19 CEST (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Baach univentionstaff 2021-06-28 12:11:47 CEST
The plugins for the ucsschool-apis-plugin contain some sections with code that is identical. That code should be imported from a shared place.

- get_single_user_by_name
- the kelvin_session code - making sure that the code works in the plugins even
  if they are installed alone
- pytest fixtures in all plugins
- oauth2 schemes

As this is a refactoring the outcome should be that all automated tests run as before.