Updated stack tests to only use an admin user when necessary. 87/53187/2
authorspisarski <s.pisarski@cablelabs.com>
Tue, 6 Mar 2018 21:52:31 +0000 (14:52 -0700)
committerspisarski <s.pisarski@cablelabs.com>
Wed, 7 Mar 2018 20:13:50 +0000 (13:13 -0700)
commite4563aec1eb8f98e5e42fe513918432eddadcd37
tree6feadc19d711366bf84dbac59f27c5b219667102
parent8a7e0ddf0ddc631a1271319cd97f43773012e3ca
Updated stack tests to only use an admin user when necessary.

Changed super test class OSIntegrationTestCase to allow subclasses
to set the user roles when required. For all heat stack test,
the user role will always be 'heat_stack_owner'. 'admin' will be
used for tests requiring this role (i.e. heat template creates
flavors)

JIRA: SNAPS-268

Change-Id: I0ec01cfea6297547a6a158eec8e5c69af6d6c7d7
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
snaps/domain/stack.py
snaps/domain/test/stack_tests.py
snaps/openstack/create_stack.py
snaps/openstack/os_credentials.py
snaps/openstack/tests/create_stack_tests.py
snaps/openstack/tests/os_source_file_test.py
snaps/openstack/utils/heat_utils.py