2018-05-21 18:57:08 -04:00
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2018-06-08 12:24:26 -04:00
|
|
|
"gotest.tools/icmd"
|
2018-05-21 18:57:08 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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{
|
2018-05-22 08:32:53 -04:00
|
|
|
Out: "[]",
|
|
|
|
Err: "Error: No such object: FooBar",
|
|
|
|
ExitCode: 1,
|
2018-05-21 18:57:08 -04:00
|
|
|
})
|
|
|
|
}
|