Sha256: 78eab291fced8469e1b0a38b3c791d9b4478c1dc1100efbbaf7180c2bc15d00e

Contents?: true

Size: 1.36 KB

Versions: 4

Compression:

Stored size: 1.36 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 Bosh edge from source" do
  include FileUtils
  include Bosh::Bootstrap::Helpers::SettingsSetter
  include AwsHelpers

  attr_reader :bosh_name

  before { prepare_aws("bosh-edge", 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("edge" => true)

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

    cmd.deploy

    ip_adresses = fog.addresses
    public_ips = ip_adresses.map(&:public_ip)

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

    # TODO inception VM is not getting its IP address bound correctly
    # https://github.com/StarkAndWayne/bosh-bootstrap/issues/174
    # public_ips.include?(inception_vms.first.public_ip_address).should be_true

    micrboshes = provider.servers_with_sg(bosh_name)
    micrboshes.size.should == 1
    public_ips.include?(micrboshes.first.public_ip_address).should be_true

    # TODO - microbosh stemcell in /var/vcap/store/stemcells
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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