mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
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:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user