Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: unify the mock file generation #20765

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

chlins
Copy link
Member

@chlins chlins commented Jul 23, 2024

  1. Mock remote interface for distribution manifest by mockery package
    feature.
  2. Refactor hand-generated mock files to automated management
    generation.
  3. Clean useless mocks.

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Issue being fixed

Fixes #(issue)

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@chlins chlins requested a review from a team as a code owner July 23, 2024 07:23
@chlins chlins force-pushed the feat/mock-distribution branch from d607936 to 1ba9d84 Compare July 23, 2024 07:24
@chlins chlins assigned stonezdj and unassigned AllForNothing Jul 23, 2024
@chlins chlins added the release-note/update Update or Fix label Jul 23, 2024
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.27%. Comparing base (c8c11b4) to head (11c0dc5).
Report is 248 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #20765      +/-   ##
==========================================
+ Coverage   45.36%   46.27%   +0.90%     
==========================================
  Files         244      247       +3     
  Lines       13333    13778     +445     
  Branches     2719     2845     +126     
==========================================
+ Hits         6049     6376     +327     
- Misses       6983     7070      +87     
- Partials      301      332      +31     
Flag Coverage Δ
unittests 46.27% <ø> (+0.90%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 491 files with indirect coverage changes

Copy link
Contributor

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chlins chlins force-pushed the feat/mock-distribution branch from 1ba9d84 to c74c3a1 Compare July 25, 2024 04:17
@chlins chlins changed the title feat: mock distribution manifest interface refactor: unify the mock file generation Jul 25, 2024
@chlins chlins force-pushed the feat/mock-distribution branch 8 times, most recently from de86509 to c6c3726 Compare August 5, 2024 09:34
Copy link
Contributor

@MinerYang MinerYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

1. Mock remote interface for distribution manifest by mockery package
feature.
2. Refactor hand-generated mock files to automated management
   generation.
3. Clean useless mocks.

Signed-off-by: chlins <chlins.zhang@gmail.com>
@chlins chlins force-pushed the feat/mock-distribution branch from c6c3726 to 11c0dc5 Compare August 5, 2024 10:35
@chlins chlins enabled auto-merge (squash) August 5, 2024 10:59
@chlins chlins merged commit 5deedf4 into goharbor:main Aug 5, 2024
12 checks passed
kunal-511 pushed a commit to kunal-511/harbor_local that referenced this pull request Aug 22, 2024
1. Mock remote interface for distribution manifest by mockery package
feature.
2. Refactor hand-generated mock files to automated management
   generation.
3. Clean useless mocks.

Signed-off-by: chlins <chlins.zhang@gmail.com>
Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/update Update or Fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants