Skip to content

Add API tests #7

@jsiloto

Description

@jsiloto

POST image metadata - OK
POST image metatadata missing Label - NOK / Assert database isn't changed
POST image metatadata missing FW version - NOK / Assert database isn't changed
POST image metatadata missing HW version - NOK / Assert database isn't changed
POST image metatadata missing SHA1 - NOK / Assert database isn't changed

POST image binary with existing metadata - OK/ Should update metadata with valid image
POST image binary with existing binary - OK?
POST image binary with missing metadata - NOK / DB untouched
POST imabe binary with invalid SHA1 - NOK / DB untouched

GET existing metadata - OK
GET non-existing metadata - NOK
GET existing binary - OK
GET non-existing binary - NOK
GET /image/ (list of all metadata) - OK / Should match uploaded metadata
GET /image/binary/ (list of all binaries) - OK / Should match uploaded binary

DELETE image metadata with non-existing binary - OK
DELETE image metadata with existing binary - OK / Binary should be deleted from DB
DELETE image binary - OK / metadata should be updated with missing binary
DELETE non-existing metadata - NOK
DELETE non-existing binary - NOK
DELETE /image/ - NOK
DELETE /image/binary/ - NOK

PUT image metadata on non-existing UUID - OK
PUT image metadata on existing UUID with matching SHA1 - OK
PUT image metadata on existing UUID with non-matching SHA1 - ERROR
PUT image binary on non-existing UUID - NOK
PUT image binary on existing UUID with matching SHA1 - OK
PUT image binary on existing UUID with non-matching SHA1 - NOK

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions