Convert OS-INHERIT API to flask native dispatching

Convert OS-INHERIT API to flask native dispatching.

NOTE: A minor test change was needed, the test was mis-constructing the
URI with multiple slashes. The test now properly constructs the URI
using an lstrip when combining the direct_url bits.

Change-Id: I0907eb00cdfb9849342220f9b528f94175e71545
Partial-Bug: #1776504
This commit is contained in:
Morgan Fainberg
2018-08-11 11:29:59 -07:00
parent f62d98a085
commit 8c397fa727
6 changed files with 412 additions and 88 deletions

View File

@@ -41,9 +41,10 @@ _MOVED_API_PREFIXES = frozenset(
['credentials',
'endpoints',
'groups',
'OS-OAUTH1',
'OS-EP-FILTER',
'OS-FEDERATION',
'OS-INHERIT',
'OS-OAUTH1',
'OS-REVOKE',
'OS-SIMPLE-CERT',
'OS-TRUST',