North-Seattle-College / ad440-winter2020-thursday-repo

Repository for AD440 Thursday Class in Winter 2020
Apache License 2.0
10 stars 5 forks source link

TT1: Delete Property by ID #213

Closed UnTamedLaw closed 4 years ago

towa-hi commented 4 years ago

Test Report for Delete Property

Test 1

Input:

DELETE https://api.2edusite.com/feature-sprint5/property/6

Output:

200 OK "Default property_id 6 deleted and 0 keybundles deleted"

Result:

PASSED. property_id 6 is deleted in db and no associated keybundles are deleted

Test 2

Input:

DELETE https://api.2edusite.com/feature-sprint5/property/6

Output:

404 Not Found { "errorType": "string", "errorMessage": "Not Found ", "trace": [] }

Result:

PASSED. Tried to delete non existent property

Test 3

Input:

DELETE https://api.2edusite.com/feature-sprint5/property/6a

Output:

400 Bad Request { "errorType": "string", "errorMessage": "Bad Request ", "trace": [] }

Result:

PASSED. property_id with invalid type was rejected