X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftest%2Frgw%2Frgw_multi%2Fconn.py;fp=src%2Fceph%2Fsrc%2Ftest%2Frgw%2Frgw_multi%2Fconn.py;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=1099664df201b55c09685bde9985a984127238fe;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/test/rgw/rgw_multi/conn.py b/src/ceph/src/test/rgw/rgw_multi/conn.py deleted file mode 100644 index 1099664..0000000 --- a/src/ceph/src/test/rgw/rgw_multi/conn.py +++ /dev/null @@ -1,16 +0,0 @@ -import boto -import boto.s3.connection - - -def get_gateway_connection(gateway, credentials): - """ connect to the given gateway """ - if gateway.connection is None: - gateway.connection = boto.connect_s3( - aws_access_key_id = credentials.access_key, - aws_secret_access_key = credentials.secret, - host = gateway.host, - port = gateway.port, - is_secure = False, - calling_format = boto.s3.connection.OrdinaryCallingFormat()) - return gateway.connection -