mirror of
https://github.com/containers/skopeo.git
synced 2025-04-28 03:10:18 +00:00
Replace shortnames with FQINs; this should allow tests to run regardless of the state of registries.conf. And, fix one broken new test that invoked 'jq' (without dot). This usage works in Fedora, but not in RHEL. Signed-off-by: Ed Santiago <santiago@redhat.com>
33 lines
731 B
Bash
33 lines
731 B
Bash
#!/usr/bin/env bats
|
|
#
|
|
# Confirm that skopeo will push to and pull from a local
|
|
# registry with locally-created TLS certificates.
|
|
#
|
|
load helpers
|
|
|
|
function setup() {
|
|
standard_setup
|
|
|
|
start_registry --with-cert reg
|
|
}
|
|
|
|
@test "local registry, with cert" {
|
|
# Push to local registry...
|
|
run_skopeo copy --dest-cert-dir=$TESTDIR/client-auth \
|
|
docker://docker.io/library/busybox:latest \
|
|
docker://localhost:5000/busybox:unsigned
|
|
|
|
# ...and pull it back out
|
|
run_skopeo copy --src-cert-dir=$TESTDIR/client-auth \
|
|
docker://localhost:5000/busybox:unsigned \
|
|
dir:$TESTDIR/extracted
|
|
}
|
|
|
|
teardown() {
|
|
podman rm -f reg
|
|
|
|
standard_teardown
|
|
}
|
|
|
|
# vim: filetype=sh
|