Files
docker-docs/test/integration/api/history.bats
Andrea Luzzardi c75992a3bd integration: faster. faster. faster.
- Use start_with_busybox everywhere it's possible.
- Start only what we need.
- Improved correctness of a few tests at the same time.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-06 10:51:07 -07:00

27 lines
523 B
Bash

#!/usr/bin/env bats
load ../helpers
function teardown() {
swarm_manage_cleanup
stop_docker
}
@test "docker history" {
# Start one empty host and one with busybox to ensure swarm selects the
# right one (and not one at random).
start_docker 1
start_docker_with_busybox 1
swarm_manage
# make sure the image of busybox exists
run docker_swarm images
[ "$status" -eq 0 ]
[[ "${output}" == *"busybox"* ]]
# history
run docker_swarm history busybox
[ "$status" -eq 0 ]
[[ "${lines[0]}" == *"CREATED BY"* ]]
}