tests: Skip s3api functional tests when no s3api user configured
Change-Id: I61f141a71eddcac600058d66ddf802306df455c1
This commit is contained in:
parent
78f13be75c
commit
052bcadb27
@ -46,6 +46,8 @@ class S3ApiBase(unittest.TestCase):
|
|||||||
logging.getLogger('boto').setLevel(logging.DEBUG)
|
logging.getLogger('boto').setLevel(logging.DEBUG)
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
if not tf.config.get('s3_access_key'):
|
||||||
|
raise SkipTest('no s3api user configured')
|
||||||
if 's3api' not in tf.cluster_info:
|
if 's3api' not in tf.cluster_info:
|
||||||
raise SkipTest('s3api middleware is not enabled')
|
raise SkipTest('s3api middleware is not enabled')
|
||||||
if tf.config.get('account'):
|
if tf.config.get('account'):
|
||||||
@ -83,6 +85,8 @@ class S3ApiBase(unittest.TestCase):
|
|||||||
|
|
||||||
class S3ApiBaseBoto3(S3ApiBase):
|
class S3ApiBaseBoto3(S3ApiBase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
if not tf.config.get('s3_access_key'):
|
||||||
|
raise SkipTest('no s3api user configured')
|
||||||
if 's3api' not in tf.cluster_info:
|
if 's3api' not in tf.cluster_info:
|
||||||
raise SkipTest('s3api middleware is not enabled')
|
raise SkipTest('s3api middleware is not enabled')
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user