podman/test/podman_diff.bats
Daniel J Walsh 5770dc2640 Rename all references to kpod to podman
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
2017-12-18 16:46:05 +00:00

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 ]
}