-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
setup() { | ||
docker history alpine >/dev/null 2>&1 | ||
} | ||
|
||
@test "whoami" { | ||
run docker run alpine whoami | ||
[ $status -eq 0 ] | ||
[ "${lines[0]}" = "app" ] | ||
} | ||
|
||
@test "workdir" { | ||
run docker run alpine pwd | ||
[ $status -eq 0 ] | ||
[ "${lines[0]}" = "/app" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
setup() { | ||
docker history debian >/dev/null 2>&1 | ||
} | ||
|
||
@test "whoami app" { | ||
run docker run debian whoami | ||
[ $status -eq 0 ] | ||
[ "${lines[0]}" = "app" ] | ||
} | ||
|
||
@test "workdir" { | ||
run docker run debian pwd | ||
[ $status -eq 0 ] | ||
[ "${lines[0]}" = "/app" ] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
setup() { | ||
docker history ubuntu >/dev/null 2>&1 | ||
} | ||
|
||
@test "whoami app" { | ||
run docker run ubuntu whoami | ||
[ $status -eq 0 ] | ||
[ "${lines[0]}" = "app" ] | ||
} | ||
|
||
@test "workdir" { | ||
run docker run ubuntu pwd | ||
[ $status -eq 0 ] | ||
[ "${lines[0]}" = "/app" ] | ||
} | ||
|