-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Name Stmts Miss Cover
-----------------------------------------------------------------------------
mchub/resources/api_view.py 61 7 89% 85-91, 116
mchub/resources/available_resources_api.py 23 15 35% 13-37
mchub/resources/magic_castle_api.py 50 4 92% 30, 36, 41, 55
mchub/resources/progress_api.py 17 0 100%
mchub/resources/project_api.py 77 41 47% 15-30, 44, 49-50, 54-55, 74-107, 112, 114, 118
mchub/resources/template_api.py 6 1 83% 8
mchub/resources/user_api.py 5 0 100%
Missing tests:
mchub/resources/api_view.py
- test accessing the interface with a local user not already in the database
- TokenSuperUser
mchub/resources/available_resources_api.py
- with hostname
- project now shared with user -> cluster exception
- test with cluster + project owned by user
- with cloud id
- test project own by user
- test invalid project id -> empty return
- test project not shared with user -> empty return
- without hostname and cloud id
- empty return
- with hostname
mchub/resources/magic_castle_api.py
- test post with invalid project
- test post-apply without data
- test post-apply on invalid project or project not owned by user
- test put without data
mchub/resources/project_api.py
- test GET with project id
- test GET with project id not owned by user
- test POST without data
- test POST without all required fields in DATA
- test POST with missing environment variables
- test PATCH
- add user to a project
- remove user from a project
- add user to an invalid project
- edit project when not admin
- test DELETE
- project not owned or invalid id
- project with active clusters
mchub/resources/template_api.py
- test getting default Magic Castle template
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request