Project

Profile

Help

Issue #3462 » tag-orphan-test.sh

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

 
1
pulp-admin docker repo sync run --repo-id busybox
2
pulp-admin docker repo publish run --repo-id busybox
3

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

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

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

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

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

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

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

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