cStringIO is not offered by python3, so avoid using using this module.
this file does not exist in master anymore, so this change is not
cherry-picked from master.
Signed-off-by: Kefu Chai <kchai@redhat.com>
"""
Run rgw roundtrip message tests
"""
-from cStringIO import StringIO
import base64
import contextlib
import logging
'./bootstrap',
],
)
- conf_fp = StringIO()
conf = dict(
s3=s3tests_conf['s3'],
roundtrip=s3tests_conf['roundtrip'],
)
- yaml.safe_dump(conf, conf_fp, default_flow_style=False)
teuthology.write_file(
remote=remote,
path='{tdir}/archive/s3roundtrip.{client}.config.yaml'.format(tdir=testdir, client=client),
- data=conf_fp.getvalue(),
- )
+ data=yaml.safe_dump(conf, default_flow_style=False))
yield