}) Describe("NetOut", func() { netOutRule := garden.NetOutRule{ Protocol: garden.ProtocolTCP, Ports: []garden.PortRange{ garden.PortRangeFromPort(13253), }, } itRetries(func() error { return conn.NetOut("la-contineur", netOutRule) }, func(err error) { innerConnection.NetOutReturns(err) }, func() int { return innerConnection.NetOutCallCount() }, func() { It("calls through to garden", func() { Ω(innerConnection.NetOutCallCount()).Should(Equal(1)) handle, calledNetOutRule := innerConnection.NetOutArgsForCall(0) Ω(handle).Should(Equal("la-contineur")) Ω(calledNetOutRule).Should(Equal(netOutRule)) }) }) }) Describe("CurrentBandwidthLimits", func() { handle := "suitcase" limits := garden.BandwidthLimits{
}) Describe("NetOut", func() { netOutRule := garden.NetOutRule{ Protocol: garden.ProtocolTCP, Ports: []garden.PortRange{ garden.PortRangeFromPort(13253), }, } itRetries(func() error { return conn.NetOut("la-contineur", netOutRule) }, func(err error) { innerConnection.NetOutReturns(err) }, func() int { return innerConnection.NetOutCallCount() }, func() { It("calls through to garden", func() { Expect(innerConnection.NetOutCallCount()).To(Equal(1)) handle, calledNetOutRule := innerConnection.NetOutArgsForCall(0) Expect(handle).To(Equal("la-contineur")) Expect(calledNetOutRule).To(Equal(netOutRule)) }) }) }) Describe("CurrentBandwidthLimits", func() { handle := "suitcase" limits := garden.BandwidthLimits{