Skip to content

Test route packager is a lambda function responsbile for the efficient distribution of test configuations to remote AWS regions

Notifications You must be signed in to change notification settings

seymour-active-monitoring/test-route-packager

Repository files navigation

About

This respository contains the code for the Test Route Packager lambda function, a component of the Seymour Active Monitoring Solution.

Test Route Packager is the target for all scheduled EventBridge rules. Test Route Packager’s purpose is to read location data from the JSON test configuration payload delivered by an EB rule, and prep it for routing to test runner lambda functions in the the correct regions.

Expected Shape of incoming test configuration JSON:

{
    "test": {
        "title": "my-first-test",
        "locations": [
            "us-east-1",
            "us-west-1",
        ],
        "minutesBetweenRuns": "60",
        "type": "api",
        "httpRequest": {
            "method": "post",
            "url": "https://myapi/api/users",
            "assertions": [
                {
                    "type": "responseTime",
                    "property": "",
                    "comparison": "lessThan",
                    "target": "500"
                }
            ]
        },
        "alertChannels": [
          {
            "type": "slack",
            "destination": "https://hooks.slack.com/services/...",
            "alertsOnRecovery": false,
            "alertsOnFailure": true
          }
        ]
    }
}

Deployment

Test Route Packager should be deployed along with the entire Seymour application. Refer to the following repo for detailed deployment instructions: infra-setup

About

Test route packager is a lambda function responsbile for the efficient distribution of test configuations to remote AWS regions

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •