heat/heat/tests/engine
Ekaterina Chernova 7860e7acbc Handle FK error when creating/updating software deployments
Software deployments have FK constraints on software configs.
This change ensures the DBReferenceError caused by the constraints is
properly caught. With this change now heat returns 400 Bad Response,
instead of 500 Internal Server Error when a user tries to create
a software deployment with a non-existing software config.

Also, the stack_user_project_id field is defined as 64-chars-long
string in DB model, so we should ensure that the input value is shorter
than 65 chars. Otherwise it also results in DB error.

Story: 2010001
Task: 45098
Change-Id: I03274dc0cffa226140eb720458cce81e8b5ce187
2023-09-13 15:26:11 +09:00
..
service Handle FK error when creating/updating software deployments 2023-09-13 15:26:11 +09:00
__init__.py Split engine service test case 2015-04-20 10:19:58 -04:00
test_check_resource.py Switch from unittest2 compat methods to Python 3.x methods 2020-07-09 13:28:24 +08:00
test_dependencies.py Move CircularDependencyException to common 2023-02-27 12:22:38 +00:00
test_engine_worker.py db: Remove layer of indirection 2023-03-25 12:02:27 +09:00
test_node_data.py Add a NodeData class to roll up resource data 2017-02-24 10:10:26 -05:00
test_plugin_manager.py Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
test_resource_type.py Use unittest.mock instead of third party mock 2020-05-05 08:42:11 -05:00
test_scheduler.py Move CircularDependencyException to common 2023-02-27 12:22:38 +00:00
test_sync_point.py Use unittest.mock instead of third party mock 2020-05-05 08:42:11 -05:00
tools.py Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00