Merge pull request #1072 from AntaresS/add-inspect-test

move inspect test from moby to cli
This commit is contained in:
Tibor Vass 2018-05-21 15:01:03 -10:00 committed by GitHub
commit 0022bb83ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -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",
})
}