Sha256: c42e7e30ade121c7211c7f137c1c300cb6e08c911c589b5c1a89120c3da52930

Contents?: true

Size: 634 Bytes

Versions: 14

Compression:

Stored size: 634 Bytes

Contents

require "bosh-bootstrap/network"

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

  let(:aws_cyoi_provider_client) { instance_double("Cyoi::Providers::Clients::AwsProviderClient") }

  it "uses NetworkProvider if available" do
    network = Bosh::Bootstrap::Network.new("aws", aws_cyoi_provider_client, settings)
    expect(aws_cyoi_provider_client).to receive(:create_security_group).exactly(3).times
    network.deploy
  end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bosh-bootstrap-0.18.1 spec/unit/network_spec.rb
bosh-bootstrap-0.18.0 spec/unit/network_spec.rb
bosh-bootstrap-0.17.1 spec/unit/network_spec.rb
bosh-bootstrap-0.17.0 spec/unit/network_spec.rb
bosh-bootstrap-0.16.2 spec/unit/network_spec.rb
bosh-bootstrap-0.16.1 spec/unit/network_spec.rb
bosh-bootstrap-0.16.0 spec/unit/network_spec.rb
bosh-bootstrap-0.15.0 spec/unit/network_spec.rb
bosh-bootstrap-0.14.5 spec/unit/network_spec.rb
bosh-bootstrap-0.14.4 spec/unit/network_spec.rb
bosh-bootstrap-0.14.3 spec/unit/network_spec.rb
bosh-bootstrap-0.14.2 spec/unit/network_spec.rb
bosh-bootstrap-0.14.1 spec/unit/network_spec.rb
bosh-bootstrap-0.14.0 spec/unit/network_spec.rb