]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
test_s3: remove extra code block
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 6 Jul 2012 21:44:22 +0000 (14:44 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 6 Jul 2012 21:45:15 +0000 (14:45 -0700)
Code was duplicated by mistake. Removing it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
s3tests/functional/test_s3.py

index 4af99a09fb2e20553b003aa83b9a0892069350b7..7721854cdeeb11d9033f0fe55858e6b588eab3aa 100644 (file)
@@ -1063,31 +1063,6 @@ def _make_request(method, bucket, key, body=None, authenticated=False):
     print res.status, res.reason
     return res
 
-def _make_request(method, bucket, key, body=None, authenticated=False):
-    """
-    issue a request for a specified method, on a specified <bucket,key>,
-    with a specified (optional) body (encrypted per the connection), and
-    return the response (status, reason)
-    """
-    if authenticated:
-        url = key.generate_url(100000, method=method)
-        o = urlparse(url)
-        path = o.path + '?' + o.query
-    else:
-        path = '/{bucket}/{obj}'.format(bucket=key.bucket.name, obj=key.name)
-
-    if s3.main.is_secure:
-        class_ = HTTPSConnection
-    else:
-        class_ = HTTPConnection
-
-    c = class_(s3.main.host, s3.main.port, strict=True)
-    c.request(method, path, body=body)
-    res = c.getresponse()
-
-    print res.status, res.reason
-    return res
-
 def _make_bucket_request(method, bucket, body=None, authenticated=False):
     """
     issue a request for a specified method, on a specified <bucket,key>,