mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-24 19:30:38 +00:00
dhq-qa: remove query auth from generated urls
Object generation for static load testing now sets the ACL on the test bucket and keys to 'public-read' so we don't need an expiring, temp url.
This commit is contained in:
parent
7b51f55a1b
commit
3d13883f62
1 changed files with 3 additions and 1 deletions
|
@ -49,6 +49,7 @@ def upload_objects(bucket, files, seed):
|
||||||
key = Key(bucket)
|
key = Key(bucket)
|
||||||
key.key = name_generator.next()
|
key.key = name_generator.next()
|
||||||
key.set_contents_from_file(fp)
|
key.set_contents_from_file(fp)
|
||||||
|
key.set_acl('public-read')
|
||||||
keys.append(key)
|
keys.append(key)
|
||||||
|
|
||||||
return keys
|
return keys
|
||||||
|
@ -91,6 +92,7 @@ def _main():
|
||||||
else:
|
else:
|
||||||
bucket = common.get_new_bucket()
|
bucket = common.get_new_bucket()
|
||||||
|
|
||||||
|
bucket.set_acl('public-read')
|
||||||
keys = []
|
keys = []
|
||||||
print >> OUTFILE, 'bucket: %s' % bucket.name
|
print >> OUTFILE, 'bucket: %s' % bucket.name
|
||||||
print >> sys.stderr, 'setup complete, generating files'
|
print >> sys.stderr, 'setup complete, generating files'
|
||||||
|
@ -101,7 +103,7 @@ def _main():
|
||||||
|
|
||||||
print >> sys.stderr, 'finished sending files. generating urls'
|
print >> sys.stderr, 'finished sending files. generating urls'
|
||||||
for key in keys:
|
for key in keys:
|
||||||
print >> OUTFILE, key.generate_url(30758400) #valid for 1 year
|
print >> OUTFILE, key.generate_url(0, query_auth=False)
|
||||||
|
|
||||||
print >> sys.stderr, 'done'
|
print >> sys.stderr, 'done'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue