Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

[E2E Integration] Fix Multiple Issues in E2E Integration #453

Merged
merged 14 commits into from
Oct 29, 2020

Conversation

kevin-zhonghao
Copy link
Contributor

@kevin-zhonghao kevin-zhonghao commented Oct 28, 2020

Fix multiple issues in e2e integration. The details of issues are described as follows:

Descriptions

Issue 1 - When deleting the subnet, we need to delete the corresponding binding subnet_id in vpc. If the process throws an exception, the exception type is unsupported 500。

Issue 2 - When calling getRulesBySubnetId API in RouteController, the routes in RoutesWebJson returned may be null。

Issue 3 - In the addAnInterfaceToNeutronRouter API in NeutronRouter, if validate router = null, router_id will still be attached in the subnet。

Issue 4 - Delete subnet shows success, but it did not actually succeed,because we lack the database operation of delete subnet in some reasons.

Solutions

Issue 1 solution: Change the HTTP exception type of SubnetIdIsNull to 412.

Issue 2 solution: If routes is null, return new RoutesWebJson(new ArrayList<>()).

Issue 3 solution: Put the steps of verifying router_id before subnet related operations.

Issue 4 solution: Increase the database operation of delete subnet.

@xieus xieus added bug Something isn't working P0 Priority 0 labels Oct 28, 2020
@xieus xieus added this to the Version 1.0.2020.11.30 milestone Oct 28, 2020
Copy link
Contributor

@xieus xieus left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the prompt fix.

@xieus xieus changed the title [E2E - Integration] Fix Multiple Issues in E2E Integration [E2E Integration] Fix Multiple Issues in E2E Integration Oct 29, 2020
@xieus xieus merged commit 94d33a3 into futurewei-cloud:master Oct 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working P0 Priority 0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants