Merge "Add a configurable setting in barbican-functional.conf for timeouts"
This commit is contained in:
commit
25e3a72a5e
@ -49,6 +49,9 @@ auditor_b_password=barbican
|
||||
#region_name=RegionOne
|
||||
#endpoint_type=public
|
||||
|
||||
# use this to increase the timeout (in seconds) when debugging API calls
|
||||
#timeout=10
|
||||
|
||||
# use this to run the functional tests against a
|
||||
# different barbican server than the one that is
|
||||
# specified in the service catalog. To use what is
|
||||
|
@ -31,7 +31,7 @@ CONF = config.get_config()
|
||||
class BarbicanClient(object):
|
||||
|
||||
def __init__(self, api_version='v1'):
|
||||
self.timeout = 10
|
||||
self.timeout = CONF.keymanager.timeout
|
||||
self.api_version = api_version
|
||||
self.default_headers = {
|
||||
'Content-Type': 'application/json',
|
||||
|
@ -70,6 +70,7 @@ def setup_config(config_file=''):
|
||||
cfg.StrOpt('service_name', default='barbican'),
|
||||
cfg.StrOpt('region_name', default='RegionOne'),
|
||||
cfg.StrOpt('endpoint_type', default='public'),
|
||||
cfg.IntOpt('timeout', default=10),
|
||||
cfg.StrOpt('override_url', default=''),
|
||||
cfg.StrOpt('override_url_version', default='')
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user