Sha256: 1d6c59116c014a07366f8077db56d5829cfaa739c81b0c704db0e8870ece7899

Contents?: true

Size: 601 Bytes

Versions: 10

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(7).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

10 entries across 10 versions & 1 rubygems

Version Path
bosh-bootstrap-0.12.0 spec/unit/network_spec.rb
bosh-bootstrap-0.11.15 spec/unit/network_spec.rb
bosh-bootstrap-0.11.14 spec/unit/network_spec.rb
bosh-bootstrap-0.11.13 spec/unit/network_spec.rb
bosh-bootstrap-0.11.12 spec/unit/network_spec.rb
bosh-bootstrap-0.11.11 spec/unit/network_spec.rb
bosh-bootstrap-0.11.9 spec/unit/network_spec.rb
bosh-bootstrap-0.11.8 spec/unit/network_spec.rb
bosh-bootstrap-0.11.7 spec/unit/network_spec.rb
bosh-bootstrap-0.11.6 spec/unit/network_spec.rb