a4a97eabb8
Change-Id: I128b0ccdb32694a4fc2f660e73c367aa8b01f257
75 lines
2.1 KiB
Python
75 lines
2.1 KiB
Python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
|
|
|
# Copyright 2012 OpenStack LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
TENANTS = [
|
|
{'id': 'bar', 'name': 'BAR'},
|
|
{'id': 'baz', 'name': 'BAZ'},
|
|
{'id': 'tenent4add', 'name': 'tenant4add'},
|
|
{'id': 'attr',
|
|
'name': 'attr_name',
|
|
'description': 'description',
|
|
'enabled': True},
|
|
]
|
|
|
|
# NOTE(ja): a role of keystone_admin and attribute "is_admin" is done in setUp
|
|
USERS = [
|
|
{'id': 'foo', 'name': 'FOO', 'password': 'foo2', 'tenants': ['bar']},
|
|
{'id': 'two', 'name': 'TWO', 'password': 'two2', 'tenants': ['baz']},
|
|
{'id': 'no_meta',
|
|
'name': 'NO_META',
|
|
'password': 'no_meta2',
|
|
'tenants': ['baz']},
|
|
{'id': 'attr',
|
|
'name': 'attr',
|
|
'email': 'attr@example.com',
|
|
'enabled': True,
|
|
'tenant_id': 'baz',
|
|
'password': 'attr_passwd',
|
|
'tenants': ['baz']},
|
|
]
|
|
|
|
METADATA = [
|
|
{'user_id': 'foo', 'tenant_id': 'bar', 'extra': 'extra'},
|
|
{'user_id': 'two', 'tenant_id': 'baz', 'extra': 'extra'},
|
|
]
|
|
|
|
ROLES = [
|
|
{'id': 'keystone_admin', 'name': 'Keystone Admin'},
|
|
{'id': 'useless', 'name': 'Useless'},
|
|
{'id': 'attr', 'name': 'attr'},
|
|
]
|
|
|
|
SERVICES = [
|
|
{
|
|
'id': 'COMPUTE_ID',
|
|
'type': 'compute',
|
|
'name': 'Nova',
|
|
'description': 'OpenStack Compute service'
|
|
},
|
|
{
|
|
'id': 'IDENTITY_ID',
|
|
'type': 'identity',
|
|
'name': 'Keystone',
|
|
'description': 'OpenStack Identity service'
|
|
},
|
|
{
|
|
'id': 'IMAGE_ID',
|
|
'type': 'image',
|
|
'name': 'Glance',
|
|
'description': 'OpenStack Image service'
|
|
},
|
|
]
|