Spelling errors fixed in the comments

Change-Id: I68abed3cbc0846a75d723ed7ca69c26d5903b446
General logging cleanup in keystone.notifications

There was an error message that wasn't translated.

Related-Bug: #1363704

Change-Id: Icdc21029c62e2b4b7fcb9b6853eac165175fe96a
Fix logging config twice

The config was being logged twice, once from keystone-all and once
from keystone.openstack.common.service. The logging done by
keystone-all is removed.

Change-Id: I7af03fb9db819b0ee21953988271c42ec8aa3c7a
Closes-Bug: #1363709
IdP SAML Metadata generator

Keystone acting as a SAML2 Identity Provider needs to be able to
generate and expose metadata that is consumed by federated
Service Providers.

Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com>
Change-Id: I9e4b2f068a8190215749b95f31d634eb09c1e3f1
Implements: bp keystone-to-keystone-federation
Generate IdP Metadata with keystone-manage.

For proper federation setup, an Identity Provider peer needs to
generate metadata that can later be consumed by a federated Service
Provider. Since metadata content doesn't change very often it's
advised to generate a static file and later read its content on demand
(this is out of the scope of this patch). This patch adds required
functionality for utilizing the federation.idp.MetadataGenerator class
from a keystone-manage command line tool. Generated metadata will
be redirected to the stdout.

Change-Id: Ifed1f4e4ede0276b3aba22aa9e236e5e74e2ed93
Implements: bp keystone-to-keystone-federation
Routes for Keystone-IdP metadata endpoint

Keystone acting as an Identity Provider should expose an endpoint
where federated peers can access its SAML2 Metadata file.

API spec: https://review.openstack.org/#/c/118074/

Change-Id: I94d26ce88d2468af71bc1c9d1cba1b422da4480e
Implements: bp keystone-to-keystone-federation
Fix minor nits for token2saml generation.

bknudson left few (mostly) minor comments on the token2saml patch.
This commit addresses them.

Change-Id: I755e4a064d5ada1215e82f143914af1bd1cfcd9d
Implements: bp keystone-to-keystone-federation
warn against sorting requirements

Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Closes-Bug: 1365061
Add docs for enabling endpoint policy

Add documentation on how to enable endpoint policy, and link it
back to the configuration section of the Identity API.

Change-Id: I7bc895292462714a5dcc2624a22df94b1db9138f
Fixed spelling mistakes in comments.

Change-Id: I9b17bcee430c94993c20a74fbd774547d04dc189
Capitalize all instances of Keystone in the docs

There were quite a few instances of `keystone` where `Keystone`
should have been used. Code examples were not changed, since that
would break things.

Change-Id: I533ad1b71cc3af1b70bb54cca0a820aaad3f62da
Fixes a mock cleanup issue caused by oslotest

The latest olsotest includes a call the mock.patch.stopall. If a patch's
stop is registered as a cleanup before oslotest add its cleanup the
following traceback will happen:

    local/lib/python2.7/site-packages/mock.py", line 1376, in __exit__
        raise RuntimeError('stop called on unstarted patcher')
    RuntimeError: stop called on unstarted patcher

This is because the cleanups are handled by testtools in reverse and by
the time our cleanup runs the patch would have already been cleaned up.

Change-Id: I6df0a267420eec794582acdf0429a141e7f64e45
Partial-Bug: #1365678
Fix dn_startswith

The dn_startswith function was using the wrong expression to extract
the last part of the DN.

Change-Id: I98eefe499523c3f769c449bf7efa7cb8bb05926d
Partial-Bug: #1365787
Add characterization test for group role assignment listing

There was no test that shows what happens when a group assignment is
created and the role assignments are listed (for all backends). The
LDAP assignment backend works incorrectly in that it returns user
assignments for group assignments.

Change-Id: I69bc3501cc5eae3039d805ed006821d6927f0440
Partial-Bug: #1365787
Remove unused variable TIME_FORMAT

The keystone.tests.test_backend.TIME_FORMAT variable is not used, so
remove it.

Change-Id: Ia86f31a10a6220388a6ba622764a7928d75671cf
Merge "Fix logging config twice"
Merge "Fixes a mock cleanup issue caused by oslotest"
Merge "warn against sorting requirements"
Merge "Capitalize all instances of Keystone in the docs"
Merge "IdP SAML Metadata generator"