update python to use test spec

This commit is contained in:
wing328
2016-04-14 18:30:54 +08:00
parent 261fa26b1e
commit 5a88b9e896
19 changed files with 236 additions and 907 deletions

View File

@@ -217,13 +217,6 @@ class Configuration(object):
:return: The Auth Settings information dict.
"""
return {
'test_api_key_header':
{
'type': 'api_key',
'in': 'header',
'key': 'test_api_key_header',
'value': self.get_api_key_with_prefix('test_api_key_header')
},
'api_key':
{
'type': 'api_key',
@@ -231,34 +224,6 @@ class Configuration(object):
'key': 'api_key',
'value': self.get_api_key_with_prefix('api_key')
},
'test_http_basic':
{
'type': 'basic',
'in': 'header',
'key': 'Authorization',
'value': self.get_basic_auth_token()
},
'test_api_client_secret':
{
'type': 'api_key',
'in': 'header',
'key': 'x-test_api_client_secret',
'value': self.get_api_key_with_prefix('x-test_api_client_secret')
},
'test_api_client_id':
{
'type': 'api_key',
'in': 'header',
'key': 'x-test_api_client_id',
'value': self.get_api_key_with_prefix('x-test_api_client_id')
},
'test_api_key_query':
{
'type': 'api_key',
'in': 'query',
'key': 'test_api_key_query',
'value': self.get_api_key_with_prefix('test_api_key_query')
},
}