summaryrefslogtreecommitdiffstats
path: root/qa/tasks/s3tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/tasks/s3tests.py')
-rw-r--r--qa/tasks/s3tests.py26
1 files changed, 25 insertions, 1 deletions
diff --git a/qa/tasks/s3tests.py b/qa/tasks/s3tests.py
index 6d7b39d5892..85ab97d23cd 100644
--- a/qa/tasks/s3tests.py
+++ b/qa/tasks/s3tests.py
@@ -57,6 +57,17 @@ def download(ctx, config):
'git', 'reset', '--hard', sha1,
],
)
+ if client_config.get('boto3_extensions'):
+ ctx.cluster.only(client).run(
+ args=['mkdir',
+ '-p',
+ '/home/ubuntu/.aws/models/s3/2006-03-01/']
+ )
+ (remote,) = ctx.cluster.only(client).remotes.keys()
+ remote_file = '/home/ubuntu/.aws/models/s3/2006-03-01/service-2.sdk-extras.json'
+ local_file = '{qadir}/../examples/rgw/boto3/service-2.sdk-extras.json'.format(qadir=ctx.config.get('suite_path'))
+ remote.put_file(local_file, remote_file)
+
try:
yield
finally:
@@ -70,6 +81,17 @@ def download(ctx, config):
'{tdir}/s3-tests-{client}'.format(tdir=testdir, client=client),
],
)
+ if client_config.get('boto3_extensions'):
+ ctx.cluster.only(client).run(
+ args=[
+ 'rm', '-rf', '/home/ubuntu/.aws/models/s3/2006-03-01/service-2.sdk-extras.json',
+ ],
+ )
+ ctx.cluster.only(client).run(
+ args=[
+ 'cd', '/home/ubuntu/', run.Raw('&&'), 'rmdir', '-p', '.aws/models/s3/2006-03-01/',
+ ],
+ )
def _config_user(s3tests_conf, section, user, email):
@@ -444,8 +466,10 @@ def run_tests(ctx, config):
attrs += ['not fails_with_subdomain']
if not client_config.get('with-sse-s3'):
attrs += ['not sse_s3']
-
+
attrs += client_config.get('extra_attrs', [])
+ if 'bucket_logging' not in attrs:
+ attrs += ['not bucket_logging']
if 'unit_test_scan' in client_config and client_config['unit_test_scan']:
xmlfile_id = datetime.datetime.now().strftime("%Y-%m-%d-%H:%M:%S--") + str(uuid.uuid4())
xmlpath= f'{testdir}/archive/s3test-{xmlfile_id}.xml'