Home of various packages for testing, deploying and building applications on top of AWS and other cloud infrastructure.
- Java version >= 8
- Python 3
- Golang 1.x
This repo tests that Go and Python serverless functions work. For the
specs to run, you will need both Python 3 and Golang installed and to
have built the Go files using the
Clone this repo and build everything:
git clone firstname.lastname@example.org:ConduitVC/aws-utils.git cd aws-utils go get -u github.com/aws/aws-lambda-go/lambda ./compileAll.sh
Then make sure all the specs pass:
This mono repo runs all tests through jest (including eslint!) to run
the tests you first need to start
docker-compose to make the localstack
docker-compose run -d localstack docker-compose run wait yarn test
If you find the tests running slowly or with intermittent failures, try running this once to clear the Jest cache:
yarn test --clearCache
Also, check that you have enough RAM allocated to Docker. 4GB would be a good starting point.
It may help to use
yarn test --runInBand to stop the localstack stuff
getting overwhelmed by the default parallel tests.
To debug the tests, do this:
NODE_DEBUG=appsync-emulator:lambdaRunner TERM=dumb yarn test
console.log() or log messages will be
swallowed by Jest as it scrolls up to replace its own output.