diff --git a/e2e/system/inspect_test.go b/e2e/system/inspect_test.go new file mode 100644 index 0000000000..eb1e37d3df --- /dev/null +++ b/e2e/system/inspect_test.go @@ -0,0 +1,16 @@ +package system + +import ( + "testing" + + "github.com/gotestyourself/gotestyourself/icmd" +) + +// TestInspectInvalidReference migrated from moby/integration-cli +func TestInspectInvalidReference(t *testing.T) { + // This test should work on both Windows and Linux + result := icmd.RunCmd(icmd.Command("docker", "inspect", "FooBar")) + result.Assert(t, icmd.Expected{ + Out: "[]\nError: No such object: FooBar", + }) +}