From 4236e6379b266d9d20f516839142b3db20d5ef7b Mon Sep 17 00:00:00 2001 From: clayg Date: Mon, 12 Nov 2012 23:10:08 -0800 Subject: [PATCH] patch utils.HASH_PATH_SUFFIX in proxy unittests Most of the test files set the HASH_PATH_SUFFIX so you can run the test file stand alone. This change made it easier for me to run specific proxy tests separately. Change-Id: I87d70367dac7f240a2b6779649f8a02cf324ae0f --- test/unit/proxy/test_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/proxy/test_server.py b/test/unit/proxy/test_server.py index 089ce46859..26ba552f49 100755 --- a/test/unit/proxy/test_server.py +++ b/test/unit/proxy/test_server.py @@ -46,6 +46,7 @@ from swift.common.exceptions import ChunkReadTimeout from swift.common.constraints import MAX_META_NAME_LENGTH, \ MAX_META_VALUE_LENGTH, MAX_META_COUNT, MAX_META_OVERALL_SIZE, \ MAX_FILE_SIZE, MAX_ACCOUNT_NAME_LENGTH, MAX_CONTAINER_NAME_LENGTH +from swift.common import utils from swift.common.utils import mkdirs, normalize_timestamp, NullLogger from swift.common.wsgi import monkey_patch_mimetools from swift.proxy.controllers.obj import SegmentedIterable @@ -76,6 +77,7 @@ def request_del(self): def setup(): + utils.HASH_PATH_SUFFIX = 'endcap' global _testdir, _test_servers, _test_sockets, \ _orig_container_listing_limit, _test_coros Request._orig_init = Request.__init__