mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 02:51:02 +00:00
Taking over #1459 to drive it to completion. Signed-off-by: Ted Wexler <twexler@bloomberg.net> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
27 lines
572 B
Bash
27 lines
572 B
Bash
#!/usr/bin/env bats
|
|
#
|
|
# Sync tests
|
|
#
|
|
|
|
load helpers
|
|
|
|
function setup() {
|
|
standard_setup
|
|
}
|
|
|
|
@test "sync: --dry-run" {
|
|
local remote_image=quay.io/libpod/busybox:latest
|
|
local dir=$TESTDIR/dir
|
|
|
|
run_skopeo sync --dry-run --src docker --dest dir --scoped $remote_image $dir
|
|
expect_output --substring "Would have copied image"
|
|
expect_output --substring "from=\"docker://${remote_image}\" to=\"dir:${dir}/${remote_image}\""
|
|
expect_output --substring "Would have synced 1 images from 1 sources"
|
|
}
|
|
|
|
teardown() {
|
|
standard_teardown
|
|
}
|
|
|
|
# vim: filetype=sh
|