Fixed problems when setting the OpenStack project ID. 05/38005/1
authorspisarski <s.pisarski@cablelabs.com>
Mon, 24 Jul 2017 17:27:59 +0000 (11:27 -0600)
committerspisarski <s.pisarski@cablelabs.com>
Mon, 24 Jul 2017 17:27:59 +0000 (11:27 -0600)
commit3d6ec1eeaf70ae4e46042946f8bd35d5b5380401
tree9d2881a2f73de6e779d266ceb6798ec3930d42ea
parentfeae63d11f8295a0d9327496f42949ad5b67fca4
Fixed problems when setting the OpenStack project ID.

There were several calls to retrieve the project ID that required
named parameters which was causing the utility function to always
return None. Additionally, when creating the dict() required by the
Neutron create API 'body' parameter key 'project_id' is not supported
and still uses 'tenant_id'.

As these problems should have been found earlier, this patch also
extends the tests for networks, subnets, ports, and security groups
to use 'tenant_id' rather than 'project_id'.

JIRA: SNAPS-143

Change-Id: Ic69e56145ea6070718d821edd22a1d0f9970995d
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
snaps/openstack/create_network.py
snaps/openstack/create_router.py
snaps/openstack/create_security_group.py
snaps/openstack/tests/create_network_tests.py
snaps/openstack/tests/create_router_tests.py
snaps/openstack/tests/create_security_group_tests.py
snaps/openstack/tests/os_source_file_test.py