Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit dc5a22b

Browse files
committed
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> Upstream-commit: bc5df6869845b4f14d0e8476fd2376caca935d42 Component: engine
1 parent 5890458 commit dc5a22b

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

components/engine/integration-cli/docker_cli_search_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import (
1010

1111
// search for repos named "registry" on the central registry
1212
func (s *DockerSuite) TestSearchOnCentralRegistry(c *check.C) {
13-
testRequires(c, Network, DaemonIsLinux)
14-
1513
out, _ := dockerCmd(c, "search", "busybox")
1614
assert.Assert(c, strings.Contains(out, "Busybox base image."), "couldn't find any repository named (or containing) 'Busybox base image.'")
1715
}
@@ -35,8 +33,6 @@ func (s *DockerSuite) TestSearchStarsOptionWithWrongParameter(c *check.C) {
3533
}
3634

3735
func (s *DockerSuite) TestSearchCmdOptions(c *check.C) {
38-
testRequires(c, Network, DaemonIsLinux)
39-
4036
outSearchCmd, _ := dockerCmd(c, "search", "busybox")
4137
assert.Assert(c, strings.Count(outSearchCmd, "\n") > 3, outSearchCmd)
4238

@@ -65,15 +61,11 @@ func (s *DockerSuite) TestSearchCmdOptions(c *check.C) {
6561

6662
// search for repos which start with "ubuntu-" on the central registry
6763
func (s *DockerSuite) TestSearchOnCentralRegistryWithDash(c *check.C) {
68-
testRequires(c, Network, DaemonIsLinux)
69-
7064
dockerCmd(c, "search", "ubuntu-")
7165
}
7266

7367
// test case for #23055
7468
func (s *DockerSuite) TestSearchWithLimit(c *check.C) {
75-
testRequires(c, Network, DaemonIsLinux)
76-
7769
for _, limit := range []int{10, 50, 100} {
7870
out, _, err := dockerCmdWithError("search", fmt.Sprintf("--limit=%d", limit), "docker")
7971
assert.NilError(c, err)

0 commit comments

Comments
 (0)