openstack-python-openstackc.../openstackclient/tests
Huanxuan Ao 7f93d8cc88 Show "target_project_id" attribute properly for network rbac object
According to the code in SDK:
https://github.com/openstack/python-openstacksdk/blob/master/openstack/network/v2/rbac_policy.py#L34
we can see the conlumn of "target_tenant" should be
"targer_project_id" but not "target_project". It is
the reason why could not show the "target_project"
in OSC, so this patch fix it.

Before this change:
(openstack) network rbac show b74fd644-e057-4d44-8ae1-7ca9967ea1e1
+----------------+--------------------------------------+
| Field          | Value                                |
+----------------+--------------------------------------+
| action         | access_as_shared                     |
| id             | b74fd644-e057-4d44-8ae1-7ca9967ea1e1 |
| object_id      | 8735b57f-606a-4f65-9902-2052a6d2a66d |
| object_type    | network                              |
| project_id     | 01c0ba43101b4080a52a5f79a55c56ff     |
| target_project |                                      |
+----------------+--------------------------------------+
After this change:
(openstack) network rbac show b74fd644-e057-4d44-8ae1-7ca9967ea1e1
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| action            | access_as_shared                     |
| id                | b74fd644-e057-4d44-8ae1-7ca9967ea1e1 |
| object_id         | 8735b57f-606a-4f65-9902-2052a6d2a66d |
| object_type       | network                              |
| project_id        | 01c0ba43101b4080a52a5f79a55c56ff     |
| target_project_id | c7ab4d2ea9e1487095a8ca24ea44ef38     |
+-------------------+--------------------------------------+

Change-Id: I53df127bfc3e43288c6afecdf872e6101b94a658
Closes-Bug: #1608903
2016-08-05 10:05:58 +08:00
..
api Standardize import format 2016-07-22 19:24:02 +08:00
common Allow setting quotas for server groups and server group members 2016-07-27 13:04:36 +03:00
compute Merge "Pass security group id to novaclient while adding security group to server" 2016-07-29 13:21:20 +00:00
identity Refactor identity v3 unit tests with fake class 2016-08-02 12:36:15 +08:00
image Merge "Use identity fake classes instead of old unit tests data" 2016-07-26 15:13:20 +00:00
network Show "target_project_id" attribute properly for network rbac object 2016-08-05 10:05:58 +08:00
object Standardize import format 2016-07-22 19:24:02 +08:00
volume Add support for deleting volumes with associated snapshots 2016-07-27 11:30:52 +08:00
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
fakes.py Standardize import format 2016-07-22 19:24:02 +08:00
test_shell.py Fix foundation copyrights 2016-06-14 09:49:28 -05:00
utils.py Standardize import format 2016-07-22 19:24:02 +08:00