This package enables integration testing of the AmazonS3Client
by conncting to an acutal S3 endpoint created using an min.io docker image.
Docker and docker compose must be installed
In this folder run docker-compose up -d
In this folder run docker-compose down
# start the docker container: docker-compose up -d
# build the code: rushx build
rushx read-s3-object
To test that requests can be retried start the proxy server which will fail every second request:
rushx start-proxy-server
Update the build-cache.json file:
{
"cacheProvider": "amazon-s3",
"amazonS3Configuration": {
"s3Endpoint": "http://localhost:9002",
"s3Region": "us-east-1",
"s3Prefix": "rush-build-cache/test",
"isCacheWriteAllowed": true
}
}
Run the rush rebuild command
cd apps
cd rush
RUSH_BUILD_CACHE_CREDENTIAL="minio:minio123" node lib/start-dev.js --debug rebuild --verbose