From d4d737c0c961aa3ecd5c81ca33eddd4a7b2ac670 Mon Sep 17 00:00:00 2001 From: MORITA Kazutaka Date: Wed, 3 Sep 2014 09:36:47 +0900 Subject: [PATCH] tox: update swift version to 2.1.0 The Swift 2.1.0 includes the header capitalization patch https://review.openstack.org/93780/, which is required for Swift3. Let's use the version for development. Change-Id: I2b49ca8362234e1d74f44cdb90ccb551fb31fc45 --- swift3/test/functional/common.filter | 9 +-------- tox.ini | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/swift3/test/functional/common.filter b/swift3/test/functional/common.filter index 7e7538d7..b7e0d37b 100644 --- a/swift3/test/functional/common.filter +++ b/swift3/test/functional/common.filter @@ -116,16 +116,9 @@ _filter_header_content_length() sed -e 's/^Content-Length: [0-9]*$/Content-Length: LENGTH/g' } -# This is not necessary after Swift merge swift3 patch -_filter_header_capitalization() -{ - perl -pe '$_=lc($&).$'\'' if /^x-(amz|rgw)-.+?:/i' | \ - perl -pe '$_="ETag:".$'\'' if /^etag:/i' -} - _filter_header() { - _filter_header_capitalization | _filter_header_date | _filter_user | \ + _filter_header_date | _filter_user | \ _filter_upload_id | _filter_version_id | _filter_txid | _filter_etag | \ _filter_timestamp | _filter_header_content_length } diff --git a/tox.ini b/tox.ini index 98a5ccdb..4c859de7 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ usedevelop = True install_command = pip install {opts} {packages} deps = -r{toxinidir}/test-requirements.txt - https://launchpad.net/swift/juno/2.0.0/+download/swift-2.0.0.tar.gz + https://launchpad.net/swift/juno/2.1.0/+download/swift-2.1.0.tar.gz commands = nosetests {posargs:swift3/test/unit} setenv = VIRTUAL_ENV={envdir} NOSE_WITH_OPENSTACK=1