mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
5770dc2640
The decision is in, kpod is going to be named podman. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #145 Approved by: umohnani8
32 lines
668 B
Bash
32 lines
668 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
function setup() {
|
|
prepare_network_conf
|
|
copy_images
|
|
}
|
|
|
|
function teardown() {
|
|
cleanup_test
|
|
}
|
|
|
|
@test "test diff of image and parent" {
|
|
run ${PODMAN_BINARY} $PODMAN_OPTIONS diff $BB
|
|
echo "$output"
|
|
[ "$status" -eq 0 ]
|
|
}
|
|
|
|
@test "test diff on non-existent layer" {
|
|
run ${PODMAN_BINARY} $PODMAN_OPTIONS diff "abc123"
|
|
echo "$output"
|
|
[ "$status" -ne 0 ]
|
|
}
|
|
|
|
@test "test diff with json output" {
|
|
# run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} diff --format json $IMAGE | python -m json.tool"
|
|
run ${PODMAN_BINARY} $PODMAN_OPTIONS diff --format json $BB
|
|
echo "$output"
|
|
[ "$status" -eq 0 ]
|
|
}
|