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

[Cherry-Pick][e2e] Add test cases for pre-created VPC (#933) #970

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

wenyingd
Copy link
Contributor

This change is to add a new end-to-end test for the pre-created VPC, it includes these steps,

  1. Create a VPC/LBS/Attachment on NSX
  2. Create a Namespace on vCenter or K8s, which depends on if the setup is a wcp testbed or not. Note, it planned to run the test on wcp testbed, please provide a valid pair of vc-user and vc-password which has the permission to create instance on vCenter
  3. Create LoadBalancer typed Service inside the Namespace
  4. Create server Pod for the LoadBalancer typed Service
  5. Create client Pod in the same Namespace
  6. Verified the traffic from the client Pod to the LoadBalancer's external IP
  7. Delete LoadBalancer typed Service and verified that the realted NSX resources are removed as expected
  8. Delete the Namespace from vCenter or K8s
  9. Delete the VPC from NSX

This change is to add a new end-to-end test for the pre-created VPC, it includes
these steps,
1. Create a VPC/LBS/Attachment on NSX
2. Create a Namespace on vCenter or K8s, which depends on if the setup is a wcp
testbed or not. Note, it planned to run the test on wcp testbed, please provide
a valid pair of vc-user and vc-password which has the permission to create
instance on vCenter
3. Create LoadBalancer typed Service inside the Namespace
4. Create server Pod for the LoadBalancer typed Service
5. Create client Pod in the same Namespace
6. Verified the traffic from the client Pod to the LoadBalancer's external IP
7. Delete LoadBalancer typed Service and verified that the realted NSX resources
are removed as expected
8. Delete the Namespace from vCenter or K8s
9. Delete the VPC from NSX
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.04%. Comparing base (1cac51a) to head (c1e4033).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           v4.2.0     #970   +/-   ##
=======================================
  Coverage   74.04%   74.04%           
=======================================
  Files         118      118           
  Lines       16393    16393           
=======================================
  Hits        12139    12139           
  Misses       3473     3473           
  Partials      781      781           
Flag Coverage Δ
unit-tests 74.04% <ø> (ø)

@wenyingd
Copy link
Contributor Author

/e2e

2 similar comments
@wenyingd
Copy link
Contributor Author

/e2e

@wenyingd
Copy link
Contributor Author

/e2e

Copy link
Contributor

@wenqiq wenqiq left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@zhengxiexie zhengxiexie left a comment

Choose a reason for hiding this comment

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

lgtm

@wenyingd wenyingd merged commit 7f8819a into vmware-tanzu:v4.2.0 Dec 18, 2024
3 checks passed
@wenyingd wenyingd deleted the 4.2.0_cp_933 branch December 18, 2024 08:22
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