Sha256: 7f610e73688a4df2d4a62e4a6d8ac8d98d7a74b8ca50ab2314020cdf40d27d12
Contents?: true
Size: 1.18 KB
Versions: 12
Compression:
Stored size: 1.18 KB
Contents
require "helper" describe Fog::Bouncer do before do Fog::Bouncer.reset Fog::Mock.reset if Fog.mocking? load_security(:private) @doorlist = Fog::Bouncer.doorlists[:private] @doorlist.import_remote_groups @fog = Fog::Bouncer.fog end describe Fog::Bouncer::Source do describe "#extras" do before do @group = @doorlist.groups.first @group.sync @source = @group.sources.first @protocol = @source.protocols.first @protocol.local = false @protocol.remote = true @extras = @source.extras end it "detects the extra protocols" do @extras.must_equal [@protocol] end end describe "#missing" do before do @group = @doorlist.groups.first @group.sync @source = Fog::Bouncer::Sources.for("1.1.1.1/1", @group) @source.protocols << (@protocol = Fog::Bouncer::Protocols::TCP.new(90, @source)) @protocol.local = true @protocol.remote = false @group.sources << @source @missing = @source.missing end it "detects the missing protocols" do @missing.must_equal [@protocol] end end end end
Version data entries
12 entries across 12 versions & 1 rubygems