Sha256: a9f7d90c04eb7c34aad4fea5bec0ff343f4cc324b5e57ce02a8b3f8d99147eca

Contents?: true

Size: 774 Bytes

Versions: 20

Compression:

Stored size: 774 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 %>-harness
#
# 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 %>-harness",
      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
    bucket_name = terraspace.output("example", "bucket_name")
    expect(bucket_name).to include("bucket-") # IE: bucket-pet-name
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
terraspace_plugin_aws-0.6.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.6.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.5.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.5.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.4.2 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.4.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.4.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.8 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.7 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.6 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.5 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.4 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.3 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.2 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.3.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.2.2 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.2.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.2.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_aws-0.1.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt