diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-04-06 12:52:07 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-04-06 13:11:50 +0200 |
commit | 11d6e84b8e5dadf35d3a6b19ba980583a6ff3144 (patch) | |
tree | 9a6cb159f8395ee2ef78fc08467fc3915b28b21c /tests/units/test_0031_post_room_add.py | |
parent | 8015f85b04c30350acbea8ce939a98b1f4c51cd8 (diff) |
#915 Avoid duplicate db entries in /create/imagev1.2.0
/create/image adds an entry to the database for the given partition
image created when payload contains a "description" attribute. This
insertion into the database is lacking a check for duplicates, which are
not supported for the images table.
Add a prior duplicate check before inserting. Exit with -1 code if an
image with the same name is found.
Diffstat (limited to 'tests/units/test_0031_post_room_add.py')
0 files changed, 0 insertions, 0 deletions