Browse code

integration-cli: also run Docker Hub search tests on Windows

The API does not filter images on platform, so searching on
Windows should work as well.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 3d1850d10d7f485f7ee7488a69f165707bf51480)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/07/17 20:10:27
Showing 1 changed files
... ...
@@ -10,8 +10,6 @@ import (
10 10
 
11 11
 // search for repos named  "registry" on the central registry
12 12
 func (s *DockerSuite) TestSearchOnCentralRegistry(c *check.C) {
13
-	testRequires(c, Network, DaemonIsLinux)
14
-
15 13
 	out, _ := dockerCmd(c, "search", "busybox")
16 14
 	assert.Assert(c, strings.Contains(out, "Busybox base image."), "couldn't find any repository named (or containing) 'Busybox base image.'")
17 15
 }
... ...
@@ -35,8 +33,6 @@ func (s *DockerSuite) TestSearchStarsOptionWithWrongParameter(c *check.C) {
35 35
 }
36 36
 
37 37
 func (s *DockerSuite) TestSearchCmdOptions(c *check.C) {
38
-	testRequires(c, Network, DaemonIsLinux)
39
-
40 38
 	outSearchCmd, _ := dockerCmd(c, "search", "busybox")
41 39
 	assert.Assert(c, strings.Count(outSearchCmd, "\n") > 3, outSearchCmd)
42 40
 
... ...
@@ -65,15 +61,11 @@ func (s *DockerSuite) TestSearchCmdOptions(c *check.C) {
65 65
 
66 66
 // search for repos which start with "ubuntu-" on the central registry
67 67
 func (s *DockerSuite) TestSearchOnCentralRegistryWithDash(c *check.C) {
68
-	testRequires(c, Network, DaemonIsLinux)
69
-
70 68
 	dockerCmd(c, "search", "ubuntu-")
71 69
 }
72 70
 
73 71
 // test case for #23055
74 72
 func (s *DockerSuite) TestSearchWithLimit(c *check.C) {
75
-	testRequires(c, Network, DaemonIsLinux)
76
-
77 73
 	for _, limit := range []int{10, 50, 100} {
78 74
 		out, _, err := dockerCmdWithError("search", fmt.Sprintf("--limit=%d", limit), "docker")
79 75
 		assert.NilError(c, err)