|
@@ -456,3 +456,11 @@ func (s *DockerSuite) TestInspectUnknownObject(c *check.C) {
|
|
|
c.Assert(out, checker.Contains, "Error: No such object: foobar")
|
|
|
c.Assert(err.Error(), checker.Contains, "Error: No such object: foobar")
|
|
|
}
|
|
|
+
|
|
|
+func (s *DockerSuite) TestInpectInvalidReference(c *check.C) {
|
|
|
+ // This test should work on both Windows and Linux
|
|
|
+ out, _, err := dockerCmdWithError("inspect", "FooBar")
|
|
|
+ c.Assert(err, checker.NotNil)
|
|
|
+ c.Assert(out, checker.Contains, "Error: No such object: FooBar")
|
|
|
+ c.Assert(err.Error(), checker.Contains, "Error: No such object: FooBar")
|
|
|
+}
|