Sha256: bb67d8de7471ec9776bd924c6100196f783ef782129a6be097f090562715b30c
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
describe "main" do before(:all) do # Build terraspace project to use as a test harness # Will be located at: /tmp/terraspace/test-harnesses/<%= name %>-harness terraspace.build_test_harness( name: "<%= name %>-harness", modules: "app/modules", # include all modules in this folder stacks: "app/stacks", # include all stacks in this folder # override demo stack tfvars for testing # copied over to test harness' app/stacks/demo/tfvars/test.tfvars tfvars: {demo: "spec/fixtures/tfvars/demo.tfvars"}, # create config if needed. The folder will be copied over # config: "spec/fixtures/config", ) terraspace.up("<%= name %>") # provision real resources end after(:all) do terraspace.down("<%= name %>") # destroy real resources end it "successful deploy" do # Replace with your actual test expect(true).to be true # Example # output_value = terraspace.output("<%= name %>", "some-output") # expect(output_value).to include("some-value") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-terraspace-0.1.0 | lib/templates/project/spec/stacks/%name%/main_spec.rb.tt |