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 AllowOverwrite for some clients #941

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

TaoZou1
Copy link
Contributor

@TaoZou1 TaoZou1 commented Dec 4, 2024

Some clients may operate resources created by other PI so 'X-Allow-Overwrite' should be True. Add the header for those clients.
Remove headerconfig.go since it's only used for deprecated rest connector

Test Done:

  1. use user=admin to run cleanup
  2. check if subnetport has been deleted which created by WCP user

@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.11%. Comparing base (2f72e8a) to head (ad6fa16).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           v4.2.0     #941      +/-   ##
==========================================
+ Coverage   74.06%   74.11%   +0.04%     
==========================================
  Files         119      118       -1     
  Lines       16430    16413      -17     
==========================================
- Hits        12169    12164       -5     
+ Misses       3477     3467      -10     
+ Partials      784      782       -2     
Flag Coverage Δ
unit-tests 74.11% <100.00%> (+0.04%) ⬆️
Files with missing lines Coverage Δ
pkg/nsx/client.go 83.78% <100.00%> (+0.08%) ⬆️
pkg/nsx/cluster.go 66.76% <100.00%> (+0.89%) ⬆️

... and 2 files with indirect coverage changes

@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 6, 2024

/e2e

6 similar comments
@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 10, 2024

/e2e

@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 12, 2024

/e2e

@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 12, 2024

/e2e

@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 12, 2024

/e2e

@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 13, 2024

/e2e

@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Dec 13, 2024

/e2e

Some clients may operate resources created by other PI so 'X-Allow-Overwrite'
should be True. Add the header for those clients.
Remove headerconfig.go since it's only used for deprecated rest connector

Test Done:
1. use user=admin to run cleanup
2. check if subnetport has been deleted which created by WCP user
@TaoZou1 TaoZou1 merged commit fee28ff into vmware-tanzu:v4.2.0 Dec 13, 2024
2 checks passed
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.

5 participants