Browse code

Windows CI: Port docker_cli_start_test.go

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2016/02/03 11:23:29
Showing 1 changed files
... ...
@@ -11,6 +11,7 @@ import (
11 11
 
12 12
 // Regression test for https://github.com/docker/docker/issues/7843
13 13
 func (s *DockerSuite) TestStartAttachReturnsOnError(c *check.C) {
14
+	// Windows does not support link
14 15
 	testRequires(c, DaemonIsLinux)
15 16
 	dockerCmd(c, "run", "-d", "--name", "test", "busybox")
16 17
 	dockerCmd(c, "wait", "test")
... ...
@@ -56,7 +57,6 @@ func (s *DockerSuite) TestStartAttachCorrectExitCode(c *check.C) {
56 56
 }
57 57
 
58 58
 func (s *DockerSuite) TestStartAttachSilent(c *check.C) {
59
-	testRequires(c, DaemonIsLinux)
60 59
 	name := "teststartattachcorrectexitcode"
61 60
 	dockerCmd(c, "run", "--name", name, "busybox", "echo", "test")
62 61
 
... ...
@@ -69,6 +69,7 @@ func (s *DockerSuite) TestStartAttachSilent(c *check.C) {
69 69
 }
70 70
 
71 71
 func (s *DockerSuite) TestStartRecordError(c *check.C) {
72
+	// TODO Windows CI: Requires further porting work. Should be possible.
72 73
 	testRequires(c, DaemonIsLinux)
73 74
 	// when container runs successfully, we should not have state.Error
74 75
 	dockerCmd(c, "run", "-d", "-p", "9999:9999", "--name", "test", "busybox", "top")
... ...
@@ -93,6 +94,7 @@ func (s *DockerSuite) TestStartRecordError(c *check.C) {
93 93
 }
94 94
 
95 95
 func (s *DockerSuite) TestStartPausedContainer(c *check.C) {
96
+	// Windows does not support pausing containers
96 97
 	testRequires(c, DaemonIsLinux)
97 98
 	defer unpauseAllContainers()
98 99
 
... ...
@@ -108,6 +110,7 @@ func (s *DockerSuite) TestStartPausedContainer(c *check.C) {
108 108
 }
109 109
 
110 110
 func (s *DockerSuite) TestStartMultipleContainers(c *check.C) {
111
+	// Windows does not support --link
111 112
 	testRequires(c, DaemonIsLinux)
112 113
 	// run a container named 'parent' and create two container link to `parent`
113 114
 	dockerCmd(c, "run", "-d", "--name", "parent", "busybox", "top")
... ...
@@ -143,7 +146,6 @@ func (s *DockerSuite) TestStartMultipleContainers(c *check.C) {
143 143
 }
144 144
 
145 145
 func (s *DockerSuite) TestStartAttachMultipleContainers(c *check.C) {
146
-	testRequires(c, DaemonIsLinux)
147 146
 	// run  multiple containers to test
148 147
 	for _, container := range []string{"test1", "test2", "test3"} {
149 148
 		dockerCmd(c, "run", "-d", "--name", container, "busybox", "top")