FAQ
| This is a
LIVE
service |
Changelog
Changes
Page history
Update Regression Testing Script
authored
Jun 17, 2021
by
Mike Bamford
Show whitespace changes
Inline
Side-by-side
Regression-Testing-Script.md
View page @
93c9201d
...
@@ -60,23 +60,34 @@ When executing this regression test script the tester should paste this list int
...
@@ -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")
and that the data project manager is in ready state ("4")
via the API using the relevant endpoints.
via the API using the relevant endpoints.
-
[ ] Check the data project manager has received a "Ready to Use" email.
-
[ ] 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:
#### 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/
1.
The tester will need SSGW admin rights when performing the above tests.
-
API requests can be executed using
`curl`
. For instance,
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
querying all quotes for research storage can be executed using
`curl -H "Authorization: Bearer $HPC_API_TOKEN" $SSGW_HOST/api/storage/quote/`
.
`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.
$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.
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.
4.
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
5.
This test script mainly covers the "happy path". Further work is required to cover
additional edge cases.
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**
**tests below here are still being written**
-
[ ] update usage via api
-
[ ] check on project page
-
[ ] extend license size
-
[ ] extend license size
-
[ ] check for "payment" email
-
[ ] check for "payment" email
-
[ ] extend license duration
-
[ ] extend license duration
...
...
...
...