FAQ
| This is a
LIVE
service |
Changelog
Changes
Page history
Update Regression Testing Script
authored
Jun 17, 2021
by
Mike Bamford
Hide whitespace changes
Inline
Side-by-side
Regression-Testing-Script.md
View page @
3d425e8e
...
...
@@ -12,17 +12,22 @@ When executing this regression test script the tester should paste this list int
check that you receive it and the details are correct (see note 2).
-
[ ] Check that the quote can be accessed in the "My account" page
-
[ ] Check the quote via the API using the
`/api/storage/quote/`
and
`/api/storage/quote/{quote_
id
}`
endpoints
(see note 3).
`/api/storage/quote/`
and
`/api/storage/quote/{quote_
ekey
}`
endpoints
(see note
s
3
& 4
).
-
[ ] Now "Pay for the storage" using a fake purchase order (any PDF), a random PO number,
and ticking "Purchase order not raised using CUFS"
-
[ ] Check that you have received an order confirmation email (see note 2)
.
-
[ ] Check that you have received an order confirmation email (see note 2)
and that the details are correct.
-
[ ] Check for a new account and license via the API using the
`/api/storage/account/`
,
`/api/storage/account/{account_id}`
,
`/api/storage/license/`
, and
`/api/storage/license/{license_id}`
endpoints
(see note 3).
-
[ ] That the PDF can be downloaded from
`/admin/payment/popayment/`
`/api/storage/account/`
,
`/api/storage/account/{account_ekey}`
,
`/api/storage/license/`
, and
`/api/storage/license/{license_ekey}`
endpoints
(see notes 3 & 4).
-
[ ] Check that the PDF can be downloaded from
`/admin/payment/popayment/`
-
[ ] "Configure the license" by setting yourself as the "Data Owner" and accepting the T&Cs.
-
[ ] Check that you've received the email that you've been made a data owner.
and that the details are correct.
-
[ ] Check the account's new data owner via the API using the
`/api/storage/account/{account_ekey}`
endpoint
Notes:
-
The tester will need SSGW admin rights when performing the above tests.
...
...
@@ -30,16 +35,14 @@ Notes:
-
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 scre
c
ts in 1Password.
$HPC_API_TOKEN can be retrieved from the SSGW application s
e
crets 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.
**tests below here are still being written**
-
[ ] configure with "Data Owner"
-
[ ] check api owner in license
-
[ ] check "Data Owner" email
-
[ ] configure new project
-
[ ] add different "Data Project Manager" (
`other-user`
)
-
[ ] check api for project
...
...
...
...