keystone/tests/default_fixtures.py
Adam Young 1012bd42df normalize identity
modify tables by adding columns, and modify entities
by adding attributes for password, description and enabled

update tests to deal with change from 'False' and 'True' to the
python values False and True

Added a Text type from SQL Alchemy

Bug 1070351
Bug 1023544

Change-Id: I066c788b5d08a8f42a9b5412ea9e29e4fe9ba205
2012-11-27 11:06:11 -05:00

75 lines
1.8 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.
# NOTE(dolph): please try to avoid additional fixtures if possible; test suite
# performance may be negatively affected.
TENANTS = [
{
'id': 'bar',
'name': 'BAR',
}, {
'id': 'baz',
'name': 'BAZ',
'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',
'email': 'two@example.com',
'enabled': True,
'tenant_id': 'baz',
'tenants': ['baz'],
}, {
'id': 'badguy',
'name': 'BadGuy',
'password': 'bad',
'email': 'bad@guy.com',
'enabled': False,
'tenant_id': 'baz',
'tenants': ['baz'],
}
]
METADATA = [
{
'user_id': 'foo',
'tenant_id': 'bar',
'extra': 'extra',
}
]
ROLES = [
{
'id': 'keystone_admin',
'name': 'Keystone Admin',
}, {
'id': 'member',
'name': 'Member',
}
]