Support the OpenStack-API-Version header
Magnum uses the X-OpenStack-API-Version header for its microversion header. The X-Header naming scheme is deprecated. The microversion spec states that OpenStack-API-Version should be used for the microversion header. Change-Id: I5b232f65f487d7de15044b8674bf285b2f296bcd Closes-Bug: #1590595
This commit is contained in:
@@ -53,13 +53,13 @@ class APIBase(wtypes.Base):
|
||||
class Version(object):
|
||||
"""API Version object."""
|
||||
|
||||
string = 'X-OpenStack-API-Version'
|
||||
string = 'OpenStack-API-Version'
|
||||
"""HTTP Header string carrying the requested version"""
|
||||
|
||||
min_string = 'X-OpenStack-API-Minimum-Version'
|
||||
min_string = 'OpenStack-API-Minimum-Version'
|
||||
"""HTTP response header"""
|
||||
|
||||
max_string = 'X-OpenStack-API-Maximum-Version'
|
||||
max_string = 'OpenStack-API-Maximum-Version'
|
||||
"""HTTP response header"""
|
||||
|
||||
service_string = 'container-infra'
|
||||
|
||||
@@ -25,7 +25,7 @@ fakeAuthTokenHeaders = {'X-User-Id': u'773a902f022949619b5c2f32cd89d419',
|
||||
'X-User-Domain-Name': 'domain',
|
||||
'X-Project-Domain-Id': 'project_domain_id',
|
||||
'X-User-Domain-Id': 'user_domain_id',
|
||||
'X-OpenStack-API-Version': 'container-infra 1.0'
|
||||
'OpenStack-API-Version': 'container-infra 1.0'
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user