Skip to content

Commit

Permalink
fix duplicate gateway ip in some test case
Browse files Browse the repository at this point in the history
Signed-off-by: bzsuni <[email protected]>
  • Loading branch information
bzsuni committed Jan 25, 2024
1 parent 9030091 commit d69e184
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/e2e/egressendpointslice/egressendpointslice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var _ = Describe("Egressendpointslice", func() {
4. Verify the status of EndpointSlices and the egress IP of Pods.
5. When deleting all Pods, EndpointSlices should be deleted as well.
*/
Context("After performing several rounds of creating and deleting pods, check the status of the egress endpointSlice and the exported IP of the pod", Label("S00001"), func() {
Context("After performing several rounds of creating and deleting pods, check the status of the egress endpointSlice and the exported IP of the pod", Serial, Label("S00001"), func() {
// deploy
var (
deploy *appsv1.Deployment
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/egressgateway/egressgateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ var _ = Describe("Operate EgressGateway", Label("EgressGateway"), Ordered, func(
(3) When attempting to delete an IP that is already in use, it should fail.
(4) In a dual-stack scenario, if a different number of IPs is added to the IPv4 and IPv6 pools, it should fail.
*/
Context("Edit egressGateway", func() {
Context("Edit egressGateway", Serial, func() {
var ctx context.Context
var egw *egressv1.EgressGateway
var v4DefaultEip, v6DefaultEip string
Expand Down Expand Up @@ -437,7 +437,7 @@ var _ = Describe("Operate EgressGateway", Label("EgressGateway"), Ordered, func(

})

Context("Update egressGateway", func() {
Context("Update egressGateway", Serial, func() {
var ctx context.Context
// --- gateway ---
var egw *egressv1.EgressGateway
Expand Down Expand Up @@ -645,7 +645,7 @@ var _ = Describe("Operate EgressGateway", Label("EgressGateway"), Ordered, func(
3. Delete the egress gateway and verify that it enters the "deleting" state but is not immediately deleted.
4. Delete the policy, and verify that the egress gateway is subsequently deleted.
*/
Context("Delete egressGateway", func() {
Context("Delete egressGateway", Serial, func() {
var ctx context.Context
// gateway
var egw *egressv1.EgressGateway
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/egresspolicy/egresspolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ var _ = Describe("EgressPolicy", Serial, func() {
The policy and clusterPolicy should be created successfully, and the spec.egressGatewayName should be set to the cluster's default gateway. Verify that the status is correct.
Create a namespace-level default gateway. Create a policy in this namespace without specifying the gatewayName. It is expected to use the default gateway of this namespace, and verify that the status is correct.
*/
Context("Test cluster-level default-egressgateway and namesapce-level default-egressgateway", func() {
Context("Test cluster-level default-egressgateway and namesapce-level default-egressgateway", Serial, func() {
var ctx context.Context
var err error
// gateway
Expand Down

0 comments on commit d69e184

Please sign in to comment.