Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

serverlessVideo Plugin Tester with AWS SAM

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.

Table of Contents

Prerequisites

Before you begin, ensure you have met the following requirements:

Deploy

To deploy the serverlessVideo Plugin Tester, follow these steps:

  1. 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
  1. Deploy using AWS SAM

sam build && sam deploy -g

Run

To run the plugin tester:

  1. Navigate to the PluginLifecycleWorkflow workflow in the AWS Step Functions console.

  2. Choose Start execution, and again choose Start execution. Enter your eventHook and pluginTitle as parameters as input.

For example:


{
 "eventHook": "preValidate",
 "pluginTitle": "TestPlugin"
}

Fail:

The workflow will return an error if:

  1. You have configured your plugin or the tester with an invalid event hook

Fail.

  1. 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:

Fail.

  1. Your plugin completes but returns an invalid response:

Fail.

Success:

If your plugin successfully returns a valid response, the workflow will complete successfully:

Success.

Congratulations, you’re ready to make a PR to the repo.

Troubleshooting

If the plugin tester is not working as expected, make sure that your input parameters match your eventHook and pluginTitle properties:

edit.