... | ... | @@ -230,7 +230,11 @@ curl -H "Content-Type: application/json" -H "Authorization: Bearer $HPC_API_TOKE |
|
|
--data '{"timestamp":"2021-06-17T15:29","space_available":4000,"space_used":2000,"space_usedsnap":500,"space_usedds":1500,"snapshot_ratio":2}' \
|
|
|
$SSGW_HOST/api/storage/usage/{hpc_id}
|
|
|
```
|
|
|
7. [User impersonation doesn't seem to be functional](https://gitlab.developers.cam.ac.uk/uis/devops/ssgw/webapp/-/issues/257) so some tests have been skipped for now.
|
|
|
7. While testing, it is useful to impersonate other users.
|
|
|
This can be done in all non-production deployment by visiting `/superadmin/impersonate`
|
|
|
and typing the username of the user you wish to impersonate.
|
|
|
Note that the user must already exist before they can be impersonate.
|
|
|
https://django-hijack.readthedocs.io/
|
|
|
|
|
|
|
|
|
The `hpc_id` can be retrieved using the `/api/storage/project/` endpoint.
|
... | ... | |