2018-05-21 18:57:08 -04:00
|
|
|
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{
|
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
|
|
|
})
|
|
|
|
}
|