012dac29b8
The unit test uses sqlite for test which closes db foreign keys function by default. This patch enabled the sqlite foreign keys function for unit test by default. The "project" table is a self referencing FK table(id <-> domain_id column). So when the FK is enabled, there must exists a root record before insert data to this table. It's <<keystone.domain.root>>. Usually, the <<keystone.domain.root>> recored is inserted into the table once operators run "keystone-manage db_sync" command when deploy Keystone. But the unit test code doesn't run this command, it initialise the db schema by reading sqlalchemy object model, so the <<keystone.domain.root>> record is missed. Then we can't create any project record, it'll raise FK error. So in this patch, before creating any projects in the test, we must ensure the <<keystone.domain.root>> record exists first. Change-Id: I565d12395ca39a58ba90faf8641a9e02d986aeb9 Closes-Bug: #1744195 |
||
---|---|---|
api-ref/source | ||
config-generator | ||
devstack | ||
doc | ||
etc | ||
examples/pki | ||
httpd | ||
keystone | ||
keystone_tempest_plugin | ||
playbooks/legacy/keystone-dsvm-grenade-multinode | ||
rally-jobs | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.stestr.conf | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
babel.cfg | ||
bindep.txt | ||
lower-constraints.txt | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Team and repository tags
OpenStack Keystone
Keystone provides authentication, authorization and service discovery mechanisms via HTTP primarily for use by projects in the OpenStack family. It is most commonly deployed as an HTTP interface to existing identity systems, such as LDAP.
Developer documentation, the source of which is in
doc/source/
, is published at:
The API reference and documentation are available at:
The canonical client library is available at:
https://git.openstack.org/cgit/openstack/python-keystoneclient
Documentation for cloud administrators is available at:
The source of documentation for cloud administrators is available at:
Information about our team meeting is available at:
Release notes is available at:
Bugs and feature requests are tracked on Launchpad at:
Future design work is tracked at:
Contributors are encouraged to join IRC
(#openstack-keystone
on freenode):
For information on contributing to Keystone, see
CONTRIBUTING.rst
.