0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-20 22:52:51 -05:00
zot/pkg/test/mocks
Andrei Aaron feb7328f50
feat(repodb): DerivedImageList and BaseImageList make use of RepoDB (#1135)
- derivedImageList and baseImageList now use FilterTags to obtain results,
each with its own filter function
- images that have the exact same manifest as the one provided as a
parameter are no longer considered base images or derived images
- both calls can be made with specific pagination parameters, and the
response will include PageInfo

Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>

fix(tests): fix one of the pagination tests

The results were not reliable as the 2 returned tags were sorted by created date/time
which was not set, resulting in an unpredictable order

Signed-off-by: Andrei Aaron <andaaron@cisco.com>
(cherry picked from commit be504200a1127371422aeb0e5c0219e2a1ead20a)
(cherry picked from commit ed8d797e639f262a63840120afe92da7db9a7600)
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>

Signed-off-by: Andrei Aaron <andaaron@cisco.com>
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
Co-authored-by: Alex Stan <alexandrustan96@yahoo.ro>
2023-01-25 14:06:02 -08:00
..
cve_mock.go feat(cve): graphql: paginate returned CVEs for a given image (#1136) 2023-01-24 15:03:10 -08:00
image_store_mock.go fix(storage): deleting manifests with identical digests (#951) 2022-11-18 09:35:28 -08:00
lint_mock.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
oci_mock.go feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
repo_db_mock.go feat(repodb): DerivedImageList and BaseImageList make use of RepoDB (#1135) 2023-01-25 14:06:02 -08:00
storage_driver_mock.go Update go version to 1.19 (#829) 2022-10-05 13:21:14 +03:00