Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

NYULibraries/synthetic-tests-pings

Repository files navigation

Synthetic Tests Pings

CircleCI

Runs a series of AWS Lambda synthetic tests against NYU Libraries Web Services applications and vendor applications.

Synthetic tests run on a schedule and report based on availability and response time.

Each function is a series of pings using the same handler but with different environments defining the expected URL endpoint, the expected response code and acceptable response times.

Each test can be scheduled on its own cron schedule and reports out about failed tests after each run.

Reporting

Reports via a Slack hook to libtechnyu via the #synthetic-tests channel. Report with response code and time.

Deployment

Deploys via https://github.com/NYULibraries/web-lambdas-terraform. See the README for deployment instructions.

To create

# Create all defined in deploy.yml
docker-compose -f docker-compose.deploy.yml run fn_create
# Create a single function
docker-compose -f docker-compose.deploy.yml run fn_create [name_of_function]

To destroy

# Destroy all defined in deploy.yml
docker-compose -f docker-compose.deploy.yml run fn_destroy
# Destroy a single function
docker-compose -f docker-compose.deploy.yml run fn_destroy [name_of_function]

Testing

Unit

Using Jest to unit-test the JavaScript

docker-compose run test

Integration

Test that the lambdaci container returns successfully before deploying the function

docker-compose run dev

To run this test in different contexts (i.e. how the production lambda would work) change the variables in the docker-compose environment

Roadmap

About

AWS Lambda synthetic tests against NYU Libraries Web Services applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors