summaryrefslogtreecommitdiff
path: root/bin/swift-bench
diff options
context:
space:
mode:
authorFrançois Charlier <francois.charlier@enovance.com>2012-06-11 19:29:32 +0200
committerFrançois Charlier <francois.charlier@enovance.com>2012-06-11 19:29:32 +0200
commitaafb98212a0ee01601d223038cb2193208681236 (patch)
treea87c866f61640ee903ee17eb544ea7b91a67b5d7 /bin/swift-bench
parent4dbcdf247d8a0409da328af34281e5fbaa3b45c3 (diff)
downloadswift-bench-aafb98212a0ee01601d223038cb2193208681236.tar.gz
swift-bench should be able to use auth version 2.0
Fixes Bug #1011727 Change-Id: I6681bd85a5ddb82a1059913ae90696e5994aa906
Diffstat (limited to 'bin/swift-bench')
-rwxr-xr-xbin/swift-bench4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/swift-bench b/bin/swift-bench
index e5b6bb4..3a1e1fe 100755
--- a/bin/swift-bench
+++ b/bin/swift-bench
@@ -46,6 +46,7 @@ CONF_DEFAULTS = {
'devices': 'sdb1',
'log_level': 'INFO',
'timeout': '10',
+ 'auth_version': '1.0',
}
SAIO_DEFAULTS = {
@@ -67,6 +68,7 @@ if __name__ == '__main__':
num_objects = 1000
num_gets = 10000
delete = yes
+ auth_version = 1.0
"""
parser = OptionParser(usage=usage)
parser.add_option('', '--saio', dest='saio', action='store_true',
@@ -89,6 +91,8 @@ if __name__ == '__main__':
help='Number of GET operations to perform')
parser.add_option('-x', '--no-delete', dest='delete', action='store_false',
help='If set, will not delete the objects created')
+ parser.add_option('-V', '--auth_version', dest='auth_version',
+ help='Authentication version')
if len(sys.argv) == 1:
parser.print_help()