Catalog content discovery (#2782)

fix(sync): use pagination when querying remote catalog

feat(api): added /v2/_catalog pagination, fixes #2715

Signed-off-by: Eusebiu Petu <petu.eusebiu@gmail.com>
This commit is contained in:
peusebiu
2024-12-19 19:38:35 +02:00
committed by GitHub
parent 037d6bf3d7
commit 772e90a6c5
16 changed files with 768 additions and 68 deletions
+13
View File
@@ -248,6 +248,19 @@ function teardown_file() {
fi
done
[ "$found" -eq 1 ]
run regctl repo ls --limit 2 localhost:${zot_port}
[ "$status" -eq 0 ]
echo "$output"
[ $(echo "$output" | wc -l) -eq 2 ]
[ "${lines[-2]}" == "busybox" ]
[ "${lines[-1]}" == "golang" ]
run regctl repo ls --last busybox --limit 1 localhost:${zot_port}
[ "$status" -eq 0 ]
echo "$output"
[ $(echo "$output" | wc -l) -eq 1 ]
[ "${lines[-1]}" == "golang" ]
}
@test "list image tags with regclient" {