rspec-lono
Terraspec rspec helper methods. The usual testing process is:
- Build a test harness. The test harness is a generated lono project with the specified blueprint.
- Runs a
lono upto create real resources. - Check the resources. In many cases, check the CloudFormation resources and outputs.
- Runs a
lono downto clean up the real resources.
Test harness location
Where is the generated test harness located?
The test hardness is materialized into /tmp/lono/test-harnesses/NAME.
Blueprint-Level and Project-Level Tests
The test helpers support both blueprint-level and project-level tests. See:
Installation
Add this line to your application's Gemfile:
gem 'rspec-lono'And then execute:
$ bundle install