... | ... | @@ -60,23 +60,34 @@ When executing this regression test script the tester should paste this list int |
|
|
and that the data project manager is in ready state ("4")
|
|
|
via the API using the relevant endpoints.
|
|
|
- [ ] Check the data project manager has received a "Ready to Use" email.
|
|
|
- [ ] Update the project usage via the API (see note 6)
|
|
|
- [ ] Check that the project usage data on the "Configure the storage" page
|
|
|
matches the posted data.
|
|
|
|
|
|
Notes:
|
|
|
- The tester will need SSGW admin rights when performing the above tests.
|
|
|
- All emails can be checked in https://mailhog.devops.uis.cam.ac.uk/
|
|
|
- API requests can be executed using `curl`. For instance,
|
|
|
querying all quotes for research storage can be executed using
|
|
|
`curl -H "Authorization: Bearer $HPC_API_TOKEN" $SSGW_HOST/api/storage/quote/`.
|
|
|
$HPC_API_TOKEN can be retrieved from the SSGW application secrets in 1Password.
|
|
|
If you wish to query IFS storage use the $IFS_API_TOKEN.
|
|
|
- The ids of API objects are not table ids but ekeys and can be read from API list endpoints.
|
|
|
- This test script mainly covers the "happy path". Further work is required to cover
|
|
|
additional edge cases.
|
|
|
#### Notes:
|
|
|
|
|
|
1. The tester will need SSGW admin rights when performing the above tests.
|
|
|
2. All emails can be checked in https://mailhog.devops.uis.cam.ac.uk/
|
|
|
3. API requests can be executed using `curl`. For instance,
|
|
|
querying all quotes for research storage can be executed using
|
|
|
`curl -H "Authorization: Bearer $HPC_API_TOKEN" $SSGW_HOST/api/storage/quote/`.
|
|
|
$HPC_API_TOKEN can be retrieved from the SSGW application secrets in 1Password.
|
|
|
If you wish to query IFS storage use the $IFS_API_TOKEN.
|
|
|
4. The ids of API objects are not table ids but ekeys and can be read from API list endpoints.
|
|
|
5. This test script mainly covers the "happy path". Further work is required to cover
|
|
|
additional edge cases.
|
|
|
6. Project usage can be posted using the following command:
|
|
|
|
|
|
```bash
|
|
|
curl -H "Content-Type: application/json" -H "Authorization: Bearer $HPC_API_TOKEN" -X POST \
|
|
|
--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}
|
|
|
```
|
|
|
|
|
|
The `hpc_id` can be retrieved using the `/api/storage/project/` endpoint.
|
|
|
|
|
|
**tests below here are still being written**
|
|
|
|
|
|
- [ ] update usage via api
|
|
|
- [ ] check on project page
|
|
|
- [ ] extend license size
|
|
|
- [ ] check for "payment" email
|
|
|
- [ ] extend license duration
|
... | ... | |