summaryrefslogtreecommitdiffhomepage
path: root/runsc/test/integration/integration_test.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2018-10-11 11:56:42 -0700
committerShentubot <shentubot@google.com>2018-10-11 11:58:15 -0700
commitd40d80106988e9302aaa354d4f58caa6c31429b4 (patch)
tree8542738ab1a4c879b431dd5966f3d9940c650ecc /runsc/test/integration/integration_test.go
parentf413e4b11794cd71cc3b2b64c8f6861f5394a3f1 (diff)
Sandbox cgroup tests
Verify that cgroup is being properly set. PiperOrigin-RevId: 216736137 Change-Id: I0e27fd604eca67e7dd2e3548dc372ca9cc416309
Diffstat (limited to 'runsc/test/integration/integration_test.go')
-rw-r--r--runsc/test/integration/integration_test.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/runsc/test/integration/integration_test.go b/runsc/test/integration/integration_test.go
index 5480c5bbe..e93171b8a 100644
--- a/runsc/test/integration/integration_test.go
+++ b/runsc/test/integration/integration_test.go
@@ -231,38 +231,6 @@ func TestNumCPU(t *testing.T) {
}
}
-// TestCgroup sets cgroup options and checks that container can start.
-// TODO: Verify that these were set to cgroup on the host.
-func TestCgroup(t *testing.T) {
- if err := testutil.Pull("alpine"); err != nil {
- t.Fatal("docker pull failed:", err)
- }
- d := testutil.MakeDocker("cgroup-test")
-
- var args []string
- args = append(args, "--cpu-shares=1000")
- args = append(args, "--cpu-period=2000")
- args = append(args, "--cpu-quota=3000")
- args = append(args, "--cpuset-cpus=0")
- args = append(args, "--cpuset-mems=0")
- args = append(args, "--kernel-memory=100MB")
- args = append(args, "--memory=1GB")
- args = append(args, "--memory-reservation=500MB")
- args = append(args, "--memory-swap=2GB")
- args = append(args, "--memory-swappiness=5")
- args = append(args, "--blkio-weight=750")
-
- args = append(args, "hello-world")
- if err := d.Run(args...); err != nil {
- t.Fatal("docker create failed:", err)
- }
- defer d.CleanUp()
-
- if _, err := d.WaitForOutput("Hello from Docker!", 5*time.Second); err != nil {
- t.Fatalf("docker didn't say hello: %v", err)
- }
-}
-
func TestMain(m *testing.M) {
testutil.EnsureSupportedDockerVersion()
os.Exit(m.Run())