Added swift version to object storage config.

Change-Id: I1c5b90e9208b49f09ab919fe52302108896efc63
This commit is contained in:
Richard (Rick) Hawkins 2014-02-20 09:32:00 -06:00
parent 89d0bfb60e
commit dcf0902fcd
2 changed files with 16 additions and 0 deletions

View File

@ -53,6 +53,16 @@ class ObjectStorageAPIConfig(ConfigSectionInterface):
"""
return self.get_boolean('use_swift_info', True)
@property
def version(self):
"""
Specify the version of swift running allowing tests tagged with the
required_version decorator to skip tests based on version rules.
This version is to be used if provided, even if a different version
is returned from a /info call.
"""
return self.get('version', '')
@property
def features(self):
"""

View File

@ -117,3 +117,9 @@ password=testing
# to determine the features available. If false, all features must
# be provided via the config.
# use_swift_info =
# Specify the version of swift running allowing tests tagged with the
# required_version decorator to skip tests based on version rules.
# This version is to be used if provided, even if a different version
# is returned from a /info call.
# version =