def setUp(self): super(CreateS3OutputIncompleteDataTestCase, self).setUp() self.s3_configuration = { 'name': 'Python API Test Output', 'host': aws_config.get('host', None), 'access_key': aws_config.get('access_key', None), 'secret_key': aws_config.get('secret_key', None), 'bucket': aws_config.get('bucket', None), 'prefix': aws_config.get('prefix', None), 'region': aws_config.get('region', None), 'make_public': False }
def setUp(self): super(CreateS3OutputTestCase, self).setUp() self.s3_configuration = { "name": "Python API Test Output", "host": aws_config.get("host", None), "access_key": aws_config.get("access_key", None), "secret_key": aws_config.get("secret_key", None), "bucket": aws_config.get("bucket", None), "prefix": aws_config.get("prefix", None), "region": aws_config.get("region", None), "make_public": False, }
def setUp(self): super(DeleteS3OutputTestCase, self).setUp() self.s3_configuration = { 'name': 'Python API Test Output', 'host': aws_config.get('host', None), 'access_key': aws_config.get('access_key', None), 'secret_key': aws_config.get('secret_key', None), 'bucket': aws_config.get('bucket', None), 'prefix': aws_config.get('prefix', None), 'region': aws_config.get('region', None), 'make_public': False } output = S3Output( name=self.s3_configuration.get('name'), host=self.s3_configuration.get('host'), access_key=self.s3_configuration.get('access_key'), secret_key=self.s3_configuration.get('secret_key'), bucket=self.s3_configuration.get('bucket'), prefix=self.s3_configuration.get('prefix'), region=self.s3_configuration.get('region'), make_public=self.s3_configuration.get('make_public') ) self.output = create_output(output)
def setUp(self): super(TransferJobToS3TestCase, self).setUp() self.maxDiff = None inputUrl = 'http://eu-storage.bitcodin.com/inputs/Sintel.2010.720p.mkv' input = Input(inputUrl) self.input = create_input(input) audio_stream_config = AudioStreamConfig(default_stream_id=0, bitrate=192000) video_stream_config = VideoStreamConfig(default_stream_id=0, bitrate=512000, profile='Main', preset='standard', height=480, width=640) encoding_profile = EncodingProfile('API Test Profile', [video_stream_config], [audio_stream_config]) self.encoding_profile = create_encoding_profile(encoding_profile) self.manifests = ['m3u8', 'mpd'] job = Job(self.input.input_id, self.encoding_profile.encoding_profile_id, self.manifests) self.job = create_job(job) self.s3_configuration = { 'name': 'Python API Test Output', 'host': aws_config.get('host', None), 'access_key': aws_config.get('access_key', None), 'secret_key': aws_config.get('secret_key', None), 'bucket': aws_config.get('bucket', None), 'prefix': aws_config.get('prefix', None), 'region': aws_config.get('region', None), 'make_public': False } output = S3Output( name=self.s3_configuration.get('name'), host=self.s3_configuration.get('host'), access_key=self.s3_configuration.get('access_key'), secret_key=self.s3_configuration.get('secret_key'), bucket=self.s3_configuration.get('bucket'), prefix=self.s3_configuration.get('prefix'), region=self.s3_configuration.get('region'), make_public=self.s3_configuration.get('make_public') ) self.output = create_output(output)