Sha256: e36b6830272acc5be8af638ce338de554434fa2f0787154fd28a417d7b3b3b06

Contents?: true

Size: 825 Bytes

Versions: 19

Compression:

Stored size: 825 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"},
      config:  "#{mod_path}/test/spec/fixtures/config",
    )
    terraspace.up("example")
  end
  after(:all) do
    terraspace.down("example")
  end

  it "successful deploy" do
    storage_account_id = terraspace.output("example", "storage_account_id")
    expect(storage_account_id).to include("sa") # starts with sa
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
terraspace_plugin_azurerm-0.7.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.7.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.6.2 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.6.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.6.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.5.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.5.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.4.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.3.3 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.3.2 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.3.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.3.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.2.3 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.2.2 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.2.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.2.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.1.1 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.1.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt
terraspace_plugin_azurerm-0.0.0 lib/templates/test/rspec/module/test/spec/main_spec.rb.tt