Updating how cloudcafe gets info from swift.
Change-Id: Id5a0e8424d44e1abfde0f8b48790d632b4f07d9e
This commit is contained in:
@@ -23,11 +23,18 @@ class ObjectStorageAPIConfig(ConfigSectionInterface):
|
|||||||
|
|
||||||
ALL_FEATURES = '__ALL__'
|
ALL_FEATURES = '__ALL__'
|
||||||
NO_FEATURES = '__NONE__'
|
NO_FEATURES = '__NONE__'
|
||||||
ASK_SWIFT_FOR_FEATURES = '__ASK__'
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def enabled_features(self):
|
def use_swift_info(self):
|
||||||
return self.get('enabled_features', self.ALL_FEATURES)
|
return self.get_boolean('use_swift_info', True)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def features(self):
|
||||||
|
return self.get('features', '')
|
||||||
|
|
||||||
|
@property
|
||||||
|
def excluded_features(self):
|
||||||
|
return self.get('excluded_features', '')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def object_expirer_run_interval(self):
|
def object_expirer_run_interval(self):
|
||||||
|
|||||||
@@ -21,14 +21,37 @@ username=test:tester
|
|||||||
password=testing
|
password=testing
|
||||||
|
|
||||||
[objectstorage_api]
|
[objectstorage_api]
|
||||||
# enabled_features - used to specify tests for features that are not
|
# Tells CloudCafe to attempt getting information from the swift cluster via
|
||||||
# configurable through middleware. Tests docarated with
|
# the /info call.
|
||||||
# ObjectStorageFixture.required_features will requilred all
|
#use_swift_info=True
|
||||||
# features in the tag to be listed here in order to be run.
|
|
||||||
# in addition to listing the features here, '__ALL__', '__NONE__' and
|
# Tests can be tagged with a decorator as follows:
|
||||||
# '__ASK__' can be provided to run all features tests, run no features
|
# @ObjectStorageFixture.required_features('feature1', 'feature2')
|
||||||
# tests or ask swift what features are configured and run only those.
|
# These tagged tests, will only be run if all of the features listed have
|
||||||
enabled_features=__NONE__
|
# been added to the features key. If use_swift_info is true, features will
|
||||||
|
# be pulled from the swift info and added to the features defined here.
|
||||||
|
# The features are defined by adding them to a whitespace separated list
|
||||||
|
# as follows:
|
||||||
|
# features=foo bar ...
|
||||||
|
# by defaut, no features are added.
|
||||||
|
#features=
|
||||||
|
|
||||||
|
# In addition to setting the features, you can also exclude features from
|
||||||
|
# being reported. If for example you have the following:
|
||||||
|
# features=foo bar
|
||||||
|
# excluded_features=foo
|
||||||
|
# This will have the same efect as the following:
|
||||||
|
# features=bar
|
||||||
|
# The advantage of this is if there are features returned from the swift info
|
||||||
|
# call that you do not want to run regularly. The following special values
|
||||||
|
# can also be set:
|
||||||
|
# __ALL__ - runs all tests tagged with required_features, regardless of
|
||||||
|
# the features listed in the decorator.
|
||||||
|
# __NONE__ - runs no tests tagged with required_features, regardless of
|
||||||
|
# the features listed in the decorator.
|
||||||
|
# By default, no excluded features are set.
|
||||||
|
# excluded_features=
|
||||||
|
|
||||||
# object_expirer_run_interval - defines the interval that the script which
|
# object_expirer_run_interval - defines the interval that the script which
|
||||||
# removes expiring objects runs.
|
# removes expiring objects runs.
|
||||||
# object_expirer_run_interval=60
|
# object_expirer_run_interval=60
|
||||||
|
|||||||
Reference in New Issue
Block a user