Skip to content

Commit

Permalink
Merge pull request #1072 from AntaresS/add-inspect-test
Browse files Browse the repository at this point in the history
move inspect test from moby to cli
  • Loading branch information
tiborvass authored May 22, 2018
2 parents 680c579 + 2d8d5fc commit 0022bb8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions e2e/system/inspect_test.go
Original file line number Diff line number Diff line change
@@ -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",
})
}

0 comments on commit 0022bb8

Please sign in to comment.