]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Add a user creds database table and associate stacks with username.
authorIan Main <imain@redhat.com>
Fri, 15 Jun 2012 00:46:12 +0000 (17:46 -0700)
committerIan Main <imain@redhat.com>
Fri, 15 Jun 2012 02:52:00 +0000 (19:52 -0700)
commitb637eef5af14896a58cc33c8bf880066b3a796d4
treeef8acc83b62eb5f2a0132a45e8bf11e3024c1d90
parentd36d8d38ba3d9b440a385f519f19bda6c3416547
Add a user creds database table and associate stacks with username.

This patch takes the credentials passed in from the context and allows
you to store them in the database in the 'user_creds' table for later
use with HA operations.  It also adds a 'username' to the stack table
for direct comparison and user validation to support per-user stacks.

Thanks to Angus for fixing the tests for me :)

Signed-off-by: Ian Main <imain@redhat.com>
heat/db/api.py
heat/db/sqlalchemy/api.py
heat/db/sqlalchemy/migrate_repo/versions/005_user_creds.py [new file with mode: 0644]
heat/db/sqlalchemy/models.py
heat/engine/manager.py
heat/tests/test_stacks.py