Sha256: 22da133854a6cc3280826c20e2265e71434f75ba882e7725806e788531baee16
Contents?: true
Size: 1011 Bytes
Versions: 3
Compression:
Stored size: 1011 Bytes
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(:cyoi_provider_client) { instance_double("Cyoi::Providers::Clients::AwsProviderClient") } subject { Bosh::Bootstrap::NetworkProviders::AWS.new(cyoi_provider_client) } it "is registered" do expect(Bosh::Bootstrap::NetworkProviders.provider_class("aws")).to eq(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", "bosh", ports: [4222, 6868, 25250, 25555, 25777]] ] expected_groups.each do |security_group_name, description, ports| expect(cyoi_provider_client).to receive(:create_security_group).with(security_group_name, description, ports) end subject.perform end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bosh-bootstrap-0.13.2 | spec/unit/network_providers/aws_spec.rb |
bosh-bootstrap-0.13.1 | spec/unit/network_providers/aws_spec.rb |
bosh-bootstrap-0.13.0 | spec/unit/network_providers/aws_spec.rb |