heat/heat/tests/engine/service
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
..
__init__.py Split engine service test cases (8) 2015-08-20 21:19:59 -04:00
test_service_engine.py Use unittest.mock instead of third party mock 2020-05-05 08:42:11 -05:00
test_software_config.py Handle FK error when creating/updating software deployments 2023-09-13 15:26:11 +09:00
test_stack_action.py Regenerate trust when update with different user 2020-11-17 14:25:47 +00:00
test_stack_adopt.py Use unittest.mock instead of third party mock 2020-05-05 08:42:11 -05:00
test_stack_create.py Fix SQLAlchemy use for version 1.4 2021-06-16 07:55:25 +10:00
test_stack_delete.py Use unittest.mock instead of third party mock 2020-05-05 08:42:11 -05:00
test_stack_events.py Regenerate trust when update with different user 2020-11-17 14:25:47 +00:00
test_stack_resources.py Don't store signal_url for ec2 signaling of deployments 2020-06-04 23:03:17 +05:30
test_stack_snapshot.py Fix SQLAlchemy use for version 1.4 2021-06-16 07:55:25 +10:00
test_stack_update.py db: Remove layer of indirection 2023-03-25 12:02:27 +09:00
test_threadgroup_mgr.py Use unittest.mock instead of third party mock 2020-05-05 08:42:11 -05:00