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

[e2e] Add test cases for pre-created VPC #933

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

Conversation

wenyingd
Copy link
Contributor

@wenyingd wenyingd commented Nov 26, 2024

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

@zhengxiexie
Copy link
Contributor

/e2e

@codecov-commenter
Copy link

codecov-commenter commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.42%. Comparing base (0222a3d) to head (982470c).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #933   +/-   ##
=======================================
  Coverage   73.42%   73.42%           
=======================================
  Files         118      118           
  Lines       16392    16392           
=======================================
  Hits        12036    12036           
  Misses       3571     3571           
  Partials      785      785           
Flag Coverage Δ
unit-tests 73.42% <ø> (ø)

@wenyingd
Copy link
Contributor Author

/e2e

1 similar comment
@zhengxiexie
Copy link
Contributor

/e2e

@wenyingd
Copy link
Contributor Author

/e2e

@zhengxiexie
Copy link
Contributor

/e2e

1 similar comment
@zhengxiexie
Copy link
Contributor

/e2e

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants