Exemplo n.º 1
0
 def setUp(self):
     if 's3api' not in tf.cluster_info:
         raise tf.SkipTest('s3api middleware is not enabled')
     try:
         self.conn = get_boto3_conn()
         self.endpoint_url = self.conn._endpoint.host
         self.access_key = self.conn._request_signer._credentials.access_key
         self.region = self.conn._client_config.region_name
         tear_down_s3(self.conn)
     except Exception:
         message = '%s got an error during initialize process.\n\n%s' % \
                   (self.method_name, traceback.format_exc())
         # TODO: Find a way to make this go to FAIL instead of Error
         self.fail(message)
Exemplo n.º 2
0
 def setUp(self):
     if 's3api' not in tf.cluster_info:
         raise tf.SkipTest('s3api middleware is not enabled')
     try:
         self.conn = get_boto3_conn()
         self.endpoint_url = self.conn._endpoint.host
         self.access_key = self.conn._request_signer._credentials.access_key
         self.region = self.conn._client_config.region_name
         tear_down_s3(self.conn)
     except Exception:
         message = '%s got an error during initialize process.\n\n%s' % \
                   (self.method_name, traceback.format_exc())
         # TODO: Find a way to make this go to FAIL instead of Error
         self.fail(message)
Exemplo n.º 3
0
 def tearDown(self):
     tear_down_s3(self.conn)
Exemplo n.º 4
0
 def tearDown(self):
     tear_down_s3(self.conn)