The serverlessVideo Plugin Tester is a tool for testing and validating plugin compatibility in the serverlessVideo application. You can easily deploy and use it with AWS SAM (Serverless Application Model) for efficient testing of your serverlessVideo plugins.
Before you begin, ensure you have met the following requirements:
- AWS SAM CLI: Make sure you have AWS SAM CLI installed. Install it by following the instructions at https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html.
To deploy the serverlessVideo Plugin Tester, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/aws-samples/serverless-video-streaming.git
1. Change to the project’s directory:
```bash
cd serverless-video-streaming/plugins/plugin_tester
- Deploy using AWS SAM
sam build && sam deploy -g
To run the plugin tester:
-
Navigate to the
PluginLifecycleWorkflowworkflow in the AWS Step Functions console. -
Choose Start execution, and again choose Start execution. Enter your
eventHookandpluginTitleas parameters as input.
For example:
{
"eventHook": "preValidate",
"pluginTitle": "TestPlugin"
}
The workflow will return an error if:
- You have configured your plugin or the tester with an invalid event hook
- Your plugin response takes longer than the max wait time, or if your plugin response does not emit an event with the correct task token:
- Your plugin completes but returns an invalid response:
If your plugin successfully returns a valid response, the workflow will complete successfully:
Congratulations, you’re ready to make a PR to the repo.
If the plugin tester is not working as expected, make sure that your input parameters match your eventHook and pluginTitle properties:




