summaryrefslogtreecommitdiff
path: root/openstackclient/tests/identity/v3/fakes.py
diff options
context:
space:
mode:
authorRodrigo Duarte <rodrigods@lsd.ufcg.edu.br>2014-09-22 14:04:01 +0000
committerRodrigo Duarte Sousa <rodrigods@lsd.ufcg.edu.br>2015-03-23 15:45:09 -0300
commit2ed0e220490da5c6ee8f34754d70540890b17921 (patch)
tree9c3b9babe4656f579ad3a3ad018f44320a7f47a1 /openstackclient/tests/identity/v3/fakes.py
parenta8c44074f93815ea670d4bc09156795c66505f31 (diff)
downloadpython-openstackclient-2ed0e220490da5c6ee8f34754d70540890b17921.tar.gz
Add parent field to project creation
Adding the possibility to create projects hierarchies by adding the parent field in the create project call. Co-Authored-By: Victor Silva <victor@lsd.ufcg.edu.br> Implements: bp hierarchical-multitenancy Change-Id: I4eac4f5bc067634cc38c305dacc59ab1da63c153
Diffstat (limited to 'openstackclient/tests/identity/v3/fakes.py')
-rw-r--r--openstackclient/tests/identity/v3/fakes.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/openstackclient/tests/identity/v3/fakes.py b/openstackclient/tests/identity/v3/fakes.py
index c868401a..4056db46 100644
--- a/openstackclient/tests/identity/v3/fakes.py
+++ b/openstackclient/tests/identity/v3/fakes.py
@@ -135,6 +135,16 @@ REGION = {
'links': base_url + 'regions/' + region_id,
}
+PROJECT_WITH_PARENT = {
+ 'id': project_id + '-with-parent',
+ 'name': project_name + ' and their parents',
+ 'description': project_description + ' plus another four',
+ 'enabled': True,
+ 'domain_id': domain_id,
+ 'parent_id': project_id,
+ 'links': base_url + 'projects/' + (project_id + '-with-parent'),
+}
+
role_id = 'r1'
role_name = 'roller'