]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Handle duplicate physical resources IDs
authorZane Bitter <zbitter@redhat.com>
Fri, 21 Dec 2012 16:25:25 +0000 (17:25 +0100)
committerZane Bitter <zbitter@redhat.com>
Fri, 21 Dec 2012 17:52:21 +0000 (18:52 +0100)
commit244d8a21f887913d19b8b92530767d4695d1e224
treeea4bb1da8164e5b35b3f1cfd86f80dd833245d5e
parent8bad76c00e3a9a9c5d5fb8a8cd4b50b91f2e16aa
Handle duplicate physical resources IDs

Because the unit tests create multiple stacks in different tenants with the
same physical resource ID, the database lookup code must change to
accomodate this.

This enables us to add a unit test for the describe_stack_resources RPC
API call for the case where we pass a physical resource ID to lookup.

Change-Id: Id37b15bee595ba10f207235a3ff59526e4423be6
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/db/sqlalchemy/api.py
heat/tests/test_engine_service.py