mirror of
https://github.com/docker/cli.git
synced 2026-09-28 02:06:53 -04:00
move inspect test from moby to cli
Signed-off-by: Anda Xu <anda.xu@docker.com>
Upstream-commit: 2d8d5fcd30
Component: cli
This commit is contained in:
@@ -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",
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user