Sha256: 0784f7c1ff077abc4b0740230a32d20cdd34037e1a63c89a80c4ea99b28c0806

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

require File.expand_path("../../../spec_helper", __FILE__)
require File.expand_path("../aws_helpers", __FILE__)

require "active_support/core_ext/hash/keys"

describe "AWS deployment using gems and publish stemcells" do
  include FileUtils
  include Bosh::Bootstrap::Helpers::SettingsSetter
  include AwsHelpers

  attr_reader :bosh_name

  before { prepare_aws("basic", aws_region) }
  after { destroy_test_constructs(bosh_name) unless keep_after_test? }

  def aws_region
    ENV['AWS_REGION'] || "us-west-2"
  end

  it "creates an EC2 inception/microbosh with the associated resources" do
    create_manifest

    manifest_file = home_file(".bosh_bootstrap", "manifest.yml")
    File.should be_exists(manifest_file)

    cmd.deploy

    fog.addresses.should have(2).item
    inception_ip_address = fog.addresses.first
    inception_ip_address.domain.should == "standard"

    inception_vms = servers_with_sg("#{bosh_name}-inception-vm")
    inception_vms.size.should == 1

    micrboshes = servers_with_sg(bosh_name)
    micrboshes.size.should == 1
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bosh-bootstrap-0.10.2 spec/integration/aws/aws_basic_spec.rb
bosh-bootstrap-0.10.1 spec/integration/aws/aws_basic_spec.rb
bosh-bootstrap-0.10.0 spec/integration/aws/aws_basic_spec.rb
bosh-bootstrap-0.9.0 spec/integration/aws/aws_basic_spec.rb