Project

Profile

Help

Issue #3462 » tag-orphan-test.sh

Use with "./tag-orphan-test.sh" - amacdona@redhat.com, 04/10/2018 08:09 PM

 
pulp-admin docker repo sync run --repo-id busybox
pulp-admin docker repo publish run --repo-id busybox

echo "Present. should be present with expected behavior"
cat /var/lib/pulp/published/docker/v2/master/busybox/*/busybox.json | python tag-orphan-remove.py

pulp-admin docker repo remove tag --repo-id busybox --match 'name=^1$'

echo "Present. tags removed. sanity check, should still be present until republish"
cat /var/lib/pulp/published/docker/v2/master/busybox/*/busybox.json | python tag-orphan-remove.py

pulp-admin docker repo publish run --repo-id busybox

echo "Present. publish. should (not?) be gone (after fix)... maybe"
cat /var/lib/pulp/published/docker/v2/master/busybox/*/busybox.json | python tag-orphan-remove.py

pulp-admin docker repo publish run --repo-id busybox --force-full
echo "Gone(After)Present(before). force full publish. should be gone (after fix)"
cat /var/lib/pulp/published/docker/v2/master/busybox/*/busybox.json | python tag-orphan-remove.py

pulp-admin orphan remove --all
echo "Gone(after)Present(before) orphans removed. sanity check, should still be present until republish"
cat /var/lib/pulp/published/docker/v2/master/busybox/*/busybox.json | python tag-orphan-remove.py

pulp-admin docker repo publish run --repo-id busybox --force-full
echo "Gone(after, before) orphans removed, should still be present until publish"
cat /var/lib/pulp/published/docker/v2/master/busybox/*/busybox.json | python tag-orphan-remove.py
(2-2/2)