Changed pattern on how objects lookup themselves by name and project. 73/52473/1
authorspisarski <s.pisarski@cablelabs.com>
Thu, 22 Feb 2018 18:42:52 +0000 (11:42 -0700)
committerspisarski <s.pisarski@cablelabs.com>
Thu, 22 Feb 2018 18:42:52 +0000 (11:42 -0700)
commitc711acf8ae3e4ad6f746500747857bcc9fd6f7be
tree4eeba467b4f42b37e935ccfff6b547bd11c65778
parentf3553913925b8ee5869c8e06047d6e4161a968c7
Changed pattern on how objects lookup themselves by name and project.

The pattern being replaced has unwittingly added the requirement that
all creator credentials must be of type 'admin' as when looking up
the associated project ID required a call to keystone.projects.list().

As the SNAPS integration tests were always creating users with an 'admin'
role, this issue was not caught. As part of this patch, integration test
users will no longer be admin.

JIRA: SNAPS-274

Change-Id: I02957f69e31a9d4dfa63362d371f061687e59fbf
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
29 files changed:
snaps/config/network.py
snaps/config/router.py
snaps/config/security_group.py
snaps/openstack/create_instance.py
snaps/openstack/create_network.py
snaps/openstack/create_project.py
snaps/openstack/create_router.py
snaps/openstack/create_security_group.py
snaps/openstack/create_stack.py
snaps/openstack/openstack_creator.py
snaps/openstack/tests/create_instance_tests.py
snaps/openstack/tests/create_network_tests.py
snaps/openstack/tests/create_qos_tests.py
snaps/openstack/tests/create_router_tests.py
snaps/openstack/tests/create_security_group_tests.py
snaps/openstack/tests/create_stack_tests.py
snaps/openstack/tests/create_volume_tests.py
snaps/openstack/tests/create_volume_type_tests.py
snaps/openstack/tests/os_source_file_test.py
snaps/openstack/utils/heat_utils.py
snaps/openstack/utils/keystone_utils.py
snaps/openstack/utils/neutron_utils.py
snaps/openstack/utils/nova_utils.py
snaps/openstack/utils/settings_utils.py
snaps/openstack/utils/tests/heat_utils_tests.py
snaps/openstack/utils/tests/keystone_utils_tests.py
snaps/openstack/utils/tests/neutron_utils_tests.py
snaps/openstack/utils/tests/nova_utils_tests.py
snaps/openstack/utils/tests/settings_utils_tests.py