From 6ad13d1916c2dfd08241b650799870893af9c540 Mon Sep 17 00:00:00 2001 From: Shoham Peller Date: Tue, 5 Jul 2016 14:52:30 +0300 Subject: [PATCH] Docs: Fix the query params in role_assignments example Changed '?' to '&' on second query param Change-Id: I5984bfa27d72e9960b2fdac9a665626492f1155f --- api-ref/source/v3/roles.inc | 2 +- keystone/tests/unit/test_v3_assignment.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api-ref/source/v3/roles.inc b/api-ref/source/v3/roles.inc index 8e4c0b487f..3b95c08071 100644 --- a/api-ref/source/v3/roles.inc +++ b/api-ref/source/v3/roles.inc @@ -29,7 +29,7 @@ examples are: - List all role assignments for a specified project and its sub- projects: - :: GET /role_assignments?scope.project.id={project_id}?includ + :: GET /role_assignments?scope.project.id={project_id}&includ e_subtree=true If you specify ``include_subtree=true``, you must also specify diff --git a/keystone/tests/unit/test_v3_assignment.py b/keystone/tests/unit/test_v3_assignment.py index d7a5424995..53c723e011 100644 --- a/keystone/tests/unit/test_v3_assignment.py +++ b/keystone/tests/unit/test_v3_assignment.py @@ -2187,7 +2187,7 @@ class AssignmentInheritanceTestCase(test_v3.RestfulTestCase, expected_status=http_client.BAD_REQUEST) def test_get_role_assignments_for_project_tree(self): - """Get role_assignment?scope.project.id=X?include_subtree``. + """Get role_assignment?scope.project.id=X&include_subtree``. Test Plan: @@ -2255,7 +2255,7 @@ class AssignmentInheritanceTestCase(test_v3.RestfulTestCase, self.assertRoleAssignmentInListResponse(r, non_inher_entity_root) def test_get_effective_role_assignments_for_project_tree(self): - """Get role_assignment ?project_id=X?include_subtree=True?effective``. + """Get role_assignment ?project_id=X&include_subtree=True&effective``. Test Plan: