Remove duplicated asserts

Remove a couple of duplicated asserts from the test case for the
token model.

Change-Id: I4a7419845e3aa16dfe429cb839eb7c0a87bd7e96
bp: non-persistent-tokens
Refactor set domain-id and mapping code

Applied function separation refactorings to the
_set_domain_id_and_mapping function in the identity/core module in an
attempt to make it more readable.

Change-Id: I921a05b0164bc6afa329e98c26faf4cf4f336f2f
Do not consume trust uses when create token fails

Currently, remaining trust uses are consumed even when create token
fails. We should only consume trust uses when successfully creating
a token.

Change-Id: I55a726250312fa81ed9556dfd530e96f72548930
Closes-Bug: #1335037
KeyError instead of exception.KeyError

KeyError is a built-in error. Not part of Keystone exception module.

Change-Id: Ia3723c71fcd80773c2ac6f49ec7a7ab8bed602ad
closes-bug: #1349955
Use config fixture from oslo.config

With the release of oslo.config 1.4.0.0a1, oslo.config
contains the config fixture. Keystone was using the config
fixture in oslo-incubator's fixture module. With this change
Keystone is using the config fixture in oslo.config

Change-Id: Id03efdfbe8893c48a9ad65f0cf59e1dbae03dc47
Add filters to the collections 'self' link

The v3 collections wrapper automatically adds the collections links
(self, next, prev) to facilitate pagination. However, the 'self' url
link only contains the base url, without any specified filters.

This fix adds specified filters to the collections 'self' link.

To test this fix validations of list responses in test_v3_identity.py
were updated with the optional 'resource_url' parameter which triggers
the 'self' link validation.

Closes-Bug: #1195037.

Change-Id: Iff1bcf21ea4f716ea0f412b86b4c8e9126007b7b
remove runtime dep on python-pbr
sync parameter values with keystone-dist.conf

and adjust descriptions to take dist.conf defaults into account (rhbz#923912)

Change-Id: If36c384f86843a6506a494d79beca65639fb3480