mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
TestSearchStarsOptionWithWrongParameter: remove checks for deprecated flags
The `--stars` flag was deprecated, and was replaced by `--filter stars=xx` Integration tests run with a fixed version of the CLI, and the new (`--filter`) option is already tested in this test, so there's no need to verify the old flags. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
b38c71bfe0
commit
85d6fb888c
1 changed files with 0 additions and 10 deletions
|
@ -32,16 +32,6 @@ func (s *DockerSuite) TestSearchStarsOptionWithWrongParameter(c *check.C) {
|
||||||
out, _, err = dockerCmdWithError("search", "-f", "is-official=a", "busybox")
|
out, _, err = dockerCmdWithError("search", "-f", "is-official=a", "busybox")
|
||||||
assert.ErrorContains(c, err, "", out)
|
assert.ErrorContains(c, err, "", out)
|
||||||
assert.Assert(c, strings.Contains(out, "Invalid filter"), "couldn't find the invalid filter warning")
|
assert.Assert(c, strings.Contains(out, "Invalid filter"), "couldn't find the invalid filter warning")
|
||||||
|
|
||||||
// -s --stars deprecated since Docker 1.13
|
|
||||||
out, _, err = dockerCmdWithError("search", "--stars=a", "busybox")
|
|
||||||
assert.ErrorContains(c, err, "", out)
|
|
||||||
assert.Assert(c, strings.Contains(out, "invalid syntax"), "couldn't find the invalid value warning")
|
|
||||||
|
|
||||||
// -s --stars deprecated since Docker 1.13
|
|
||||||
out, _, err = dockerCmdWithError("search", "-s=-1", "busybox")
|
|
||||||
assert.ErrorContains(c, err, "", out)
|
|
||||||
assert.Assert(c, strings.Contains(out, "invalid syntax"), "couldn't find the invalid value warning")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestSearchCmdOptions(c *check.C) {
|
func (s *DockerSuite) TestSearchCmdOptions(c *check.C) {
|
||||||
|
|
Loading…
Reference in a new issue