From 2d8d5fcd30ab99002d75853ae6f803cfb445aa7a Mon Sep 17 00:00:00 2001 From: Anda Xu Date: Mon, 21 May 2018 15:57:08 -0700 Subject: [PATCH] move inspect test from moby to cli Signed-off-by: Anda Xu --- e2e/system/inspect_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 e2e/system/inspect_test.go 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", + }) +}