Add unit test for DeleteManifest method in TencentCR adapter#22537
Merged
chlins merged 2 commits intogoharbor:mainfrom Nov 5, 2025
Merged
Add unit test for DeleteManifest method in TencentCR adapter#22537chlins merged 2 commits intogoharbor:mainfrom
chlins merged 2 commits intogoharbor:mainfrom
Conversation
Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com>
33ee4a3 to
0754346
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22537 +/- ##
===========================================
+ Coverage 45.36% 65.84% +20.47%
===========================================
Files 244 1073 +829
Lines 13333 116079 +102746
Branches 2719 2931 +212
===========================================
+ Hits 6049 76432 +70383
- Misses 6983 35408 +28425
- Partials 301 4239 +3938
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Contributor
Author
|
Hey @chlins @MinerYang, I added a test . Can you take a look if you have a moment that my approach is good to go ?? |
Contributor
Author
|
Hey @Vad1mo , @wy65701436 , Can you take a look on this ? |
Aloui-Ikram
pushed a commit
to Aloui-Ikram/harbor
that referenced
this pull request
Nov 19, 2025
…r#22537) Added test case Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com> Signed-off-by: ikram aloui <your-email@container-registry.com>
Aloui-Ikram
pushed a commit
to Aloui-Ikram/harbor
that referenced
this pull request
Nov 19, 2025
…r#22537) Added test case Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com> Signed-off-by: ikram aloui <your-email@container-registry.com> Signed-off-by: Aloui-Ikram <ikram@container-registry.com>
Aloui-Ikram
pushed a commit
to Aloui-Ikram/harbor
that referenced
this pull request
Nov 19, 2025
…r#22537) Added test case Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com> Signed-off-by: ikram aloui <your-email@container-registry.com> Signed-off-by: Aloui-Ikram <ikram@container-registry.com>
Aloui-Ikram
pushed a commit
to Aloui-Ikram/harbor
that referenced
this pull request
Nov 19, 2025
…r#22537) Added test case Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com> Signed-off-by: Aloui-Ikram <ikram@container-registry.com>
Aloui-Ikram
pushed a commit
to Aloui-Ikram/harbor
that referenced
this pull request
Nov 19, 2025
…r#22537) Added test case Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com> Signed-off-by: Aloui-Ikram <ikram@container-registry.com>
Aloui-Ikram
pushed a commit
to Aloui-Ikram/harbor
that referenced
this pull request
Nov 24, 2025
Signed-off-by: dulanting <dulanting@outlook.jp> Signed-off-by: Aloui-Ikram <ikram@container-registry.com> Add unit test for DeleteManifest method in TencentCR adapter (goharbor#22537) Added test case Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com> Signed-off-by: Aloui-Ikram <ikram@container-registry.com> disable land tag in the backend storage (goharbor#22507) According to the gc performance proposal, harbor will skip to write the tag file into the data storage since we already use the harbor database to manage the tag CRUD. Proposal: goharbor/community#265 fixed goharbor#22405 Signed-off-by: wang yan <yan-yw.wang@broadcom.com> Co-authored-by: wang yan <yan-yw.wang@broadcom.com> Signed-off-by: Aloui-Ikram <ikram@container-registry.com>
vg006
pushed a commit
to vg006/harbor
that referenced
this pull request
Dec 4, 2025
…r#22537) Added test case Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a unit test for the
DeleteManifestfunction in the Tencent Container Registry (TCR) adapter.Changes:
mockAdapterto simulate the delete behavior without calling real Tencent Cloud APIs.<namespace>/<repo>pattern.