Sha256: 883313dfe625c4188c1a19006e49b372d7a2193b51e996b153882f1d64fd5227

Contents?: true

Size: 601 Bytes

Versions: 5

Compression:

Stored size: 601 Bytes

Contents

require "bosh-bootstrap/network"

describe Bosh::Bootstrap::Network do
  include Bosh::Bootstrap::Cli::Helpers::Settings

  let(:aws_provider_client) { stub() }
  let(:vsphere_provider_client) { stub() }

  it "uses NetworkProvider if available" do
    network = Bosh::Bootstrap::Network.new("aws", aws_provider_client)
    aws_provider_client.should_receive(:create_security_group).exactly(6).times
    network.deploy
  end

  it "does nothing if no NetworkProvider for the infrastructure" do
    network = Bosh::Bootstrap::Network.new("vsphere", vsphere_provider_client)
    network.deploy
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bosh-bootstrap-0.11.5 spec/unit/network_spec.rb
bosh-bootstrap-0.11.4 spec/unit/network_spec.rb
bosh-bootstrap-0.11.3 spec/unit/network_spec.rb
bosh-bootstrap-0.11.2 spec/unit/network_spec.rb
bosh-bootstrap-0.11.1 spec/unit/network_spec.rb