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

Add to store after all entities realized #951

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TaoZou1
Copy link
Contributor

@TaoZou1 TaoZou1 commented Dec 10, 2024

Creating VPC need to check realized entities including vpc/lbs/ attachment.
Only add those entities to store after the realization successful

@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 7.69231% with 24 lines in your changes missing coverage. Please review.

Project coverage is 73.35%. Comparing base (652107c) to head (6989fc1).

Files with missing lines Patch % Lines
pkg/nsx/services/vpc/vpc.go 7.69% 20 Missing and 4 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #951      +/-   ##
==========================================
- Coverage   73.37%   73.35%   -0.03%     
==========================================
  Files         118      118              
  Lines       16394    16402       +8     
==========================================
+ Hits        12029    12031       +2     
- Misses       3581     3586       +5     
- Partials      784      785       +1     
Flag Coverage Δ
unit-tests 73.35% <7.69%> (-0.03%) ⬇️
Files with missing lines Coverage Δ
pkg/nsx/services/vpc/vpc.go 54.84% <7.69%> (-0.24%) ⬇️

dantingl
dantingl previously approved these changes Dec 11, 2024
@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 12, 2024

/e2e

2 similar comments
@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 13, 2024

/e2e

@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 16, 2024

/e2e

Copy link
Contributor

@yanjunz97 yanjunz97 left a comment

Choose a reason for hiding this comment

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

Please improve the UT if possible as the patch coverage is only 10%

pkg/nsx/services/vpc/vpc.go Outdated Show resolved Hide resolved
Creating VPC need to check realized entities including vpc/lbs/
attachment.
Only add those entities to store after the realization successful
@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 18, 2024

/e2e

1 similar comment
@zhengxiexie
Copy link
Contributor

/e2e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants