Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
What type of this PR
Examples of user facing changes:
This feature was introduced in v1.13
Which issue(s) this PR fixes
WHAT
🤖[deprecated] Generated by Copilot at 4141519
This pull request enhances the e2e tests for the
vip
feature of kube-ovn by adding security group support and testing scenarios with AAP pods. It also adds a new filetest/e2e/framework/security-group.go
to provide a common interface for creating and managing security groups in the tests. Additionally, it fixes a typo in an error message intest/e2e/framework/vip.go
.🤖[deprecated] Generated by Copilot at 4141519
HOW
🤖[deprecated] Generated by Copilot at 4141519
test/e2e/framework/security-group.go
that defines aSecurityGroupClient
struct and its methods for managing security groups, and a helper functionMakeSecurityGroup
to create a security group object (F0)DeleteSync
method of theVipClient
struct intest/e2e/framework/vip.go
(link)MakeSecurityGroup
to thevip
package intest/e2e/vip/e2e_test.go
that wraps the framework function and returns akubeovnv1.SecurityGroup
object (link)securityGroupClient
of type*framework.SecurityGroupClient
to thevip
package intest/e2e/vip/e2e_test.go
to create and manage security groups in thevip
e2e tests (link, link)aapPodName3
andsecurityGroupName
of typestring
to thevip
package intest/e2e/vip/e2e_test.go
to store the names of a third AAP pod and a security group for testing the connectivity of AAP pods (link, link)aapPodName3
pod in theAfterEach
block of thevip
e2e tests to clean up the resources (link)CreateSync
method to theaapPod1
andaapPod2
variables in theIt
block of thevip
e2e tests to store the updated pod objects with annotations (link)MakeSecurityGroup
function and thesecurityGroupName
variable (link)