def setUpClass(cls): config = FDSClientConfiguration(region_name, False, False, False) config.enable_md5_calculate = True cls.client = GalaxyFDSClient(access_key, access_secret, config) cls.bucket_name = 'test-python-' + datetime.strftime( datetime.now(), "%Y%m%d%H%M%S%z") cls.delete_objects_and_bucket(cls.client, cls.bucket_name) cls.client.create_bucket(cls.bucket_name)
def setUpClass(cls): ClientTest.init_from_local_config() config = FDSClientConfiguration(region_name=region_name, enable_https=False, enable_cdn_for_upload=False, enable_cdn_for_download=False, endpoint=endpoint) config.enable_md5_calculate = True ClientTest.client = GalaxyFDSClient(access_key, access_secret, config) ClientTest.bucket_name = 'test-python-' + datetime.strftime( datetime.now(), "%Y%m%d%H%M%S%z") ClientTest.delete_objects_and_bucket(cls.client, cls.bucket_name) ClientTest.client.create_bucket(cls.bucket_name)
def setUpClass(cls): ClientTest.init_from_local_config() config = FDSClientConfiguration( region_name=region_name, enable_https=False, enable_cdn_for_upload=False, enable_cdn_for_download=False, endpoint=endpoint) config.enable_md5_calculate = True ClientTest.client = GalaxyFDSClient(access_key, access_secret, config) ClientTest.bucket_name = 'test-python-' + datetime.strftime(datetime.now(), "%Y%m%d%H%M%S%z") ClientTest.delete_objects_and_bucket(cls.client, cls.bucket_name) ClientTest.client.create_bucket(cls.bucket_name)