Sha256: 88ba0619eccb954a655d46afbc71d94e6623f2c0425ce6e5b3cf4f15853a7b48
Contents?: true
Size: 1.12 KB
Versions: 9
Compression:
Stored size: 1.12 KB
Contents
require "readwritesettings" require "fakeweb" require "bosh-bootstrap/network_providers" require "bosh-bootstrap/network_providers/aws" describe Bosh::Bootstrap::NetworkProviders::AWS do include Bosh::Bootstrap::Cli::Helpers::Settings let(:provider_client) { stub() } subject { Bosh::Bootstrap::NetworkProviders::AWS.new(provider_client) } it "is registered" do Bosh::Bootstrap::NetworkProviders.provider_class("aws").should == subject.class end it "creates security groups it needs" do expected_groups = [ ["ssh", "ssh", ports: 22], ["dns_server", "dns_server", ports: { protocol: "udp", ports: (53..53) }], ["bosh_nats_server", "bosh_nats_server", ports: 4222], ["bosh_agent_https", "bosh_agent_https", ports: 6868], ["bosh_blobstore", "bosh_blobstore", ports: 25250], ["bosh_director", "bosh_director", ports: 25555], ["bosh_registry", "bosh_registry", ports: 25777], ] expected_groups.each do |security_group_name, description, ports| provider_client.stub(:create_security_group).with(security_group_name, description, ports) end subject.perform end end
Version data entries
9 entries across 9 versions & 1 rubygems