Browse Source

integration test for missing arg error code

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Andrew Hsu 8 năm trước cách đây
mục cha
commit
64b5fe76cf
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      integration-cli/docker_cli_ps_test.go

+ 5 - 0
integration-cli/docker_cli_ps_test.go

@@ -902,3 +902,8 @@ func (s *DockerSuite) TestPsByOrder(c *check.C) {
 	c.Assert(err, checker.NotNil)
 	c.Assert(strings.TrimSpace(out), checker.Equals, fmt.Sprintf("%s\n%s", container2, container1))
 }
+
+func (s *DockerSuite) TestPsFilterMissingArgErrorCode(c *check.C) {
+	_, errCode, _ := dockerCmdWithError("ps", "--filter")
+	c.Assert(errCode, checker.Equals, 125)
+}