'rgw':
{
'port' : endpoint.port,
- 'is_secure' : 'yes' if endpoint.cert else 'no',
+ 'is_secure' : endpoint.cert is not None,
},
'fixtures' : {},
'user system' : {},
client.1:
extra_args: ['--exclude', 'test_100_continue']
"""
+ assert hasattr(ctx, 'rgw'), 'rgw-logsocket must run after the rgw task'
assert config is None or isinstance(config, list) \
or isinstance(config, dict), \
- "task s3tests only supports a list or dictionary for configuration"
+ "task rgw-logsocket only supports a list or dictionary for configuration"
all_clients = ['client.{id}'.format(id=id_)
for id_ in teuthology.all_roles_of_type(ctx.cluster, 'client')]
if config is None:
s3tests_conf = {}
for client in clients:
+ endpoint = ctx.rgw.role_endpoints.get(client)
+ assert endpoint, 'rgw-logsocket: no rgw endpoint for {}'.format(client)
+
s3tests_conf[client] = ConfigObj(
indent_type='',
infile={
'DEFAULT':
{
- 'port' : 7280,
- 'is_secure' : 'no',
+ 'port' : endpoint.port,
+ 'is_secure' : endpoint.cert is not None,
},
'fixtures' : {},
's3 main' : {},
secret_key: mysecretkey
"""
+ assert hasattr(ctx, 'rgw'), 's3readwrite must run after the rgw task'
assert config is None or isinstance(config, list) \
or isinstance(config, dict), \
- "task s3tests only supports a list or dictionary for configuration"
+ "task s3readwrite only supports a list or dictionary for configuration"
all_clients = ['client.{id}'.format(id=id_)
for id_ in teuthology.all_roles_of_type(ctx.cluster, 'client')]
if config is None:
config[client] = {}
config[client].setdefault('s3', {})
config[client].setdefault('readwrite', {})
+ endpoint = ctx.rgw.role_endpoints.get(client)
+ assert endpoint, 's3readwrite: no rgw endpoint for {}'.format(client)
s3tests_conf[client] = ({
'DEFAULT':
{
- 'port' : 7280,
- 'is_secure' : False,
+ 'port' : endpoint.port,
+ 'is_secure' : endpoint.cert is not None,
},
'readwrite' : config[client]['readwrite'],
's3' : config[client]['s3'],
secret_key: mysecretkey
"""
+ assert hasattr(ctx, 'rgw'), 's3roundtrip must run after the rgw task'
assert config is None or isinstance(config, list) \
or isinstance(config, dict), \
- "task s3tests only supports a list or dictionary for configuration"
+ "task s3roundtrip only supports a list or dictionary for configuration"
all_clients = ['client.{id}'.format(id=id_)
for id_ in teuthology.all_roles_of_type(ctx.cluster, 'client')]
if config is None:
config[client].setdefault('s3', {})
config[client].setdefault('roundtrip', {})
+ endpoint = ctx.rgw.role_endpoints.get(client)
+ assert endpoint, 's3roundtrip: no rgw endpoint for {}'.format(client)
+
s3tests_conf[client] = ({
'DEFAULT':
{
- 'port' : 7280,
- 'is_secure' : False,
+ 'port' : endpoint.port,
+ 'is_secure' : endpoint.cert is not None,
},
'roundtrip' : config[client]['roundtrip'],
's3' : config[client]['s3'],
'DEFAULT':
{
'port' : endpoint.port,
- 'is_secure' : 'yes' if endpoint.cert else 'no',
+ 'is_secure' : endpoint.cert is not None,
'api_name' : 'default',
},
'fixtures' : {},