1
0
mirror of https://github.com/moby/moby.git synced 2025-08-01 05:47:11 +03:00

Test invalid filter and move validation on top

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester
2018-02-15 16:24:26 +01:00
parent 1690103906
commit 05e7f2cf58
3 changed files with 30 additions and 11 deletions

View File

@ -139,13 +139,6 @@ func assertContainerList(out string, expected []string) bool {
return true
}
// FIXME(vdemeester) Move this into a unit test in daemon package
func (s *DockerSuite) TestPsListContainersInvalidFilterName(c *check.C) {
out, _, err := dockerCmdWithError("ps", "-f", "invalidFilter=test")
c.Assert(err, checker.NotNil)
c.Assert(out, checker.Contains, "Invalid filter")
}
func (s *DockerSuite) TestPsListContainersSize(c *check.C) {
// Problematic on Windows as it doesn't report the size correctly @swernli
testRequires(c, DaemonIsLinux)