Skip to content

Commit

Permalink
test: change test image
Browse files Browse the repository at this point in the history
change test image to `busyboxImage`

Signed-off-by: Rudy Zhang <rudyflyzhang@gmail.com>
  • Loading branch information
rudyfly committed Jan 10, 2019
1 parent c7620be commit aa7b371
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/cli_container_commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (suite *PouchCommitSuite) TestCommitHardLink(c *check.C) {
cname := "TestCommitHardLink"
image := "foo:hardlink"

ret := command.PouchRun("run", "-t", "--name", cname, "busybox", "sh", "-c", "touch file1 && ln file1 file2 && ls -di file1 file2")
ret := command.PouchRun("run", "-t", "--name", cname, busyboxImage, "sh", "-c", "touch file1 && ln file1 file2 && ls -di file1 file2")
ret.Assert(c, icmd.Success)
defer DelContainerForceMultyTime(c, cname)

Expand Down
9 changes: 7 additions & 2 deletions test/cli_logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,12 @@ func (suite *PouchLogsSuite) TestLogsOpt(c *check.C) {
func (suite *PouchLogsSuite) TestLogsWithDetails(c *check.C) {
cname := "TestLogsWithDetails"

res := command.PouchRun("run", "--name", cname, "--label", "foo=bar", "-e", "baz=qux", "--log-opt", "labels=foo", "--log-opt", "env=baz", "busybox", "echo", "hello")
res := command.PouchRun("run", "--name", cname,
"--label", "foo=bar",
"-e", "baz=qux",
"--log-opt", "labels=foo",
"--log-opt", "env=baz",
busyboxImage, "echo", "hello")
res.Assert(c, icmd.Success)
defer DelContainerForceMultyTime(c, cname)

Expand All @@ -219,7 +224,7 @@ func (suite *PouchLogsSuite) TestLogsWithDetails(c *check.C) {

command.PouchRun("run",
"--name", cnameOfEmptyDetails,
"busybox",
busyboxImage,
"echo", "hello",
).Assert(c, icmd.Success)
defer DelContainerForceMultyTime(c, cnameOfEmptyDetails)
Expand Down

0 comments on commit aa7b371

Please sign in to comment.