14
14
# License for the specific language governing permissions and limitations
15
15
# under the License.
17
# NOTE(dolph): please try to avoid additional fixtures if possible; test suite
18
# performance may be negatively affected.
20
from keystone import config
26
DEFAULT_DOMAIN_ID = config.CONF.identity.default_domain_id
18
{'id': 'bar', 'name': 'BAR'},
19
{'id': 'baz', 'name': 'BAZ'},
20
{'id': 'tenent4add', 'name': 'tenant4add'},
33
'domain_id': DEFAULT_DOMAIN_ID,
34
'description': 'description',
39
'domain_id': DEFAULT_DOMAIN_ID,
40
'description': 'description',
45
'description': 'description',
47
'domain_id': DEFAULT_DOMAIN_ID
23
51
# NOTE(ja): a role of keystone_admin and attribute "is_admin" is done in setUp
25
{'id': 'foo', 'name': 'FOO', 'password': 'foo2', 'tenants': ['bar']},
26
{'id': 'two', 'name': 'TWO', 'password': 'two2', 'tenants': ['baz']},
29
'password': 'no_meta2',
56
'domain_id': DEFAULT_DOMAIN_ID,
60
'email': 'foo@bar.com',
64
'domain_id': DEFAULT_DOMAIN_ID,
66
'email': 'two@example.com',
70
'email': 'two@three.com',
74
'domain_id': DEFAULT_DOMAIN_ID,
76
'email': 'bad@guy.com',
80
'email': 'badguy@goodguy.com',
84
'domain_id': DEFAULT_DOMAIN_ID,
88
'email': 'sna@snl.coom',
34
{'user_id': 'foo', 'tenant_id': 'bar', 'extra': 'extra'},
35
{'user_id': 'two', 'tenant_id': 'baz', 'extra': 'extra'},
39
{'id': 'keystone_admin', 'name': 'Keystone Admin'},
40
{'id': 'useless', 'name': 'Useless'},
48
'description': 'OpenStack Compute service'
54
'description': 'OpenStack Identity service'
60
'description': 'OpenStack Image service'
107
'id': CONF.member_role_id,
108
'name': CONF.member_role_name,
124
'id': DEFAULT_DOMAIN_ID,
127
'description': 'Owns users and tenants (i.e. projects) available '
128
'on Identity API v2.'