Sha256: efaed21792d9dd7b69f2bb0386f26fbe73a78742b0b1c787a8e7635e1379d3fd

Contents?: true

Size: 823 Bytes

Versions: 104

Compression:

Stored size: 823 Bytes

Contents

# This starter example of a spec that creates a test harness and provisions a real s3 bucket.
# The test harness will be created at:
#
#    /tmp/terraspace-test-harnesses/<%= @name %>
#
# It's recommended to run this on a test AWS account.
#
describe "main" do
  before(:all) do
    mod_path = File.expand_path("../..", __dir__)
    terraspace.build_test_harness(
      name: "<%= @name %>",
      modules: {example: mod_path},
      stacks:  {example: "#{mod_path}/test/spec/fixtures/stack"},
    )
    terraspace.up("example")
  end
  after(:all) do
    terraspace.down("example")
  end

  it "successful deploy" do
    # Replace with your actual test
    expect(true).to be true
    # Example:
    # some_output = terraspace.output("example", "some_output")
    # expect(some_output).to include("output_value)
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.16 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.15 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.14 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.13 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.12 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.11 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.10 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.9 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.8 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.7 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.6 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.5 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.4 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.3 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.2 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.1 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.2.0 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.1.7 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb
terraspace-2.1.6 lib/templates/plugin/core/lib/templates/test/rspec/module/test/spec/main_spec.rb