AWS MediaConvert作业设置单元测试
我正在使用createJobCommandInput
,createJobCommand
,MediaConvertClient
来自@AWS-SDK/CLIENT-SDK/CLIENT MEDIACONVERT
以提交MediaContervert作业。 createJobCommandInput
包含许多不同的参数。我想检查这些参数使用某种单元测试是否有效。这可能吗?
I am using CreateJobCommandInput
, CreateJobCommand
, MediaConvertClient
from @aws-sdk/client-mediaconvert
to submit MediaConvert job. CreateJobCommandInput
contains a lot of different parameters. I would like to check if those parameters are valid using some sort of unit tests. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢您的消息。 AWS MediaConvert在提交时验证作业设置。今天不支持单位测试(单个功能测试)。
但是,您可以将经过验证的输出设置的集合作为输出预设,可以重新使用并堆叠(合并)将来的作业。您可以以这种方式测试,验证和累积输出设置的集合。
其他提示:
[a]测试设置时,您可以使用“输入剪辑”功能仅转换30秒的内容,从而在测试中更快地结果。
[b]所有“创建作业”呼叫都将具有API日志记录,您可以通过AWS CloudTrail检索。执行的作业还将在AWS CloudWatch中获得日志条目。
[c]用云范围发行的S3目标存储桶在您的S3目标存储桶中,您可以在不使S3存储桶本身公共可读的情况下流式传输/访问输出。您可以选择使用AWS Web应用程序防火墙以各种方式限制对CF发行的访问。
您可以使用“ AWS MediaConvert create-job-Generate-cli-skeleton”的命令看到所有可用参数的完整规范'
Thanks for your message. AWS MediaConvert validates job settings upon submittal. Unit testing (individual feature testing) is not supported today.
However, you can save a collection of validated output settings as an output preset which can be re-used and stacked (combined) on future jobs. You can test, validate and accumulate collections of output settings in this way.
Additional tips:
[a] when testing settings, you can use the 'input clipping' function to convert just 30s of content for a quicker result on your tests.
[b] All 'create job' calls will have an API log record which you can retrieve via AWS CloudTrail. Jobs which execute will also get a log entry in AWS CloudWatch.
[c] Fronting your S3 destination bucket with a CloudFront distribution will allow you to stream/access your outputs without making the S3 bucket itself public-readable. You can optionally restrict access to the CF distribution in various ways using AWS Web Application Firewall.
You can see the full specification for all available parameters using a command of the form 'aws mediaconvert create-job --generate-cli-skeleton'