manila/manila/db
Valeriy Ponomaryov ba5384f865 Fix creation of share group types using share type names
Before it was possible to create share group types mapping them to
share types using only share type IDs and when we were providing its
names we were getting DB error and HTTP 500 as a response.

Fix it by properly looking for share type by both its unique values -
ID and name. Also, raise proper 404 error when nothing is found.

Add functional tests covering this case.

Change-Id: I216f935383a87f6d679c431bc46cfa8977a6d8ab
Depends-On: Ic555d241f98d0fa027897c69a7115d1be88f6c96
Closes-Bug: #1659625
2017-01-27 20:21:42 +02:00
..
migrations Add mountable snapshots support 2017-01-24 17:26:45 -02:00
sqlalchemy Fix creation of share group types using share type names 2017-01-27 20:21:42 +02:00
__init__.py Remove vim headers 2014-10-06 15:00:27 +02:00
api.py Fix creation of share group types using share type names 2017-01-27 20:21:42 +02:00
base.py Reuse 'periodic_task' from oslo_service 2015-07-20 19:38:19 +03:00
migration.py Remove vim headers 2014-10-06 15:00:27 +02:00