keystone/keystone/tests/unit/server
morgan fainberg c96c7fd03b Properly normalize domain ids in flask
Previously domain_id normalization was done (in webob) resulting
in possibly one of four results (ref['domain_id'] is changed):

  * Domain ID present in ref -> no change to ref

  * Domain ID not present, domain scoped token ->
    ref['domain_id'] = scope domain id

  * Domain ID not present, "admin" token -> raise ValidationError

  * Domain ID not present, project scoped token -> default domain
    [Deprecated functionality]

In flask, only the first case worked. This change corrects the behavior
and adds a test to ensure proper data is extracted from oslo.context.

Change-Id: Iacb502a2aa3fe633f74c7e19e13c46f4f85e55db
Closes-Bug: #1793027
2018-09-17 15:10:59 -07:00
..
__init__.py Flesh out and add testing for flask_RESTful scaffolding 2018-07-12 15:08:19 -07:00
test_keystone_flask.py Properly normalize domain ids in flask 2018-09-17 15:10:59 -07:00