Example to show how to run ServerSpec tests for an application using a mock AWS environment
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
init
spec
.env
.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.md
docker-compose.yml

README.md

ServerSpec AWS Example

This repository demonstrates how to write a ServerSpec test for an application that fetches secrets from AWS Secrets Manager

How is the test built

AWS is mocked through localstack. An instance of ASM is spun up together with the app using docker-compose. Additionally, there is an init container that populates one secret into the mock ASM instance.

How to run the tests

bundle install
bundle exec rspec spec/container_spec.rb