"github.com/cloudfoundry-incubator/garden-linux/linux_container/bandwidth_manager/fake_bandwidth_manager" "github.com/cloudfoundry-incubator/garden-linux/linux_container/cgroups_manager/fake_cgroups_manager" "github.com/cloudfoundry-incubator/garden-linux/linux_container/fake_iptables_manager" "github.com/cloudfoundry-incubator/garden-linux/linux_container/fake_network_statisticser" "github.com/cloudfoundry-incubator/garden-linux/linux_container/fake_quota_manager" "github.com/cloudfoundry-incubator/garden-linux/linux_container/fake_watcher" networkFakes "github.com/cloudfoundry-incubator/garden-linux/network/fakes" "github.com/cloudfoundry-incubator/garden-linux/port_pool/fake_port_pool" "github.com/cloudfoundry-incubator/garden-linux/process_tracker/fake_process_tracker" "github.com/cloudfoundry/gunk/command_runner/fake_command_runner" . "github.com/cloudfoundry/gunk/command_runner/fake_command_runner/matchers" ) var _ = Describe("Linux containers", func() { var fakeCgroups *fake_cgroups_manager.FakeCgroupsManager var fakeQuotaManager *fake_quota_manager.FakeQuotaManager var fakeBandwidthManager *fake_bandwidth_manager.FakeBandwidthManager var fakeRunner *fake_command_runner.FakeCommandRunner var fakeOomWatcher *fake_watcher.FakeWatcher var containerResources *linux_backend.Resources var container *linux_container.LinuxContainer var containerDir string BeforeEach(func() { fakeRunner = fake_command_runner.New() fakeCgroups = fake_cgroups_manager.New("/cgroups", "some-id") fakeQuotaManager = new(fake_quota_manager.FakeQuotaManager) fakeBandwidthManager = fake_bandwidth_manager.New() fakeOomWatcher = new(fake_watcher.FakeWatcher)
"github.com/cloudfoundry-incubator/garden-linux/linux_container/fake_iptables_manager" "github.com/cloudfoundry-incubator/garden-linux/linux_container/fake_network_statisticser" "github.com/cloudfoundry-incubator/garden-linux/linux_container/fake_quota_manager" "github.com/cloudfoundry-incubator/garden-linux/linux_container/fake_watcher" networkFakes "github.com/cloudfoundry-incubator/garden-linux/network/fakes" "github.com/cloudfoundry-incubator/garden-linux/port_pool/fake_port_pool" "github.com/cloudfoundry-incubator/garden-linux/process_tracker/fake_process_tracker" "github.com/cloudfoundry/gunk/command_runner/fake_command_runner" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/pivotal-golang/lager/lagertest" ) var _ = Describe("Linux containers", func() { var fakeCgroups *fake_cgroups_manager.FakeCgroupsManager var fakeQuotaManager *fake_quota_manager.FakeQuotaManager var fakeNetStats *fake_network_statisticser.FakeNetworkStatisticser var container *linux_container.LinuxContainer var containerDir string BeforeEach(func() { fakeCgroups = fake_cgroups_manager.New("/cgroups", "some-id") fakeQuotaManager = new(fake_quota_manager.FakeQuotaManager) fakeNetStats = new(fake_network_statisticser.FakeNetworkStatisticser) }) JustBeforeEach(func() { _, subnet, _ := net.ParseCIDR("2.3.4.0/30") containerResources := linux_backend.NewResources( 1235, &linux_backend.Network{