nic-chen commented on a change in pull request #2330:
URL: https://github.com/apache/apisix-dashboard/pull/2330#discussion_r820310878
##########
File path: api/test/e2e/route_import_test.go
##########
@@ -577,3 +577,136 @@ func TestRoute_export_import(t *testing.T) {
testCaseCheck(tc, t)
}
}
+
+func TestRoute_export_import_merge(t *testing.T) {
+ // create routes
+ tests := []HttpTestCase{
+ {
+ Desc: "Create a route",
+ Object: ManagerApiExpect(t),
+ Method: http.MethodPut,
+ Path: "/apisix/admin/routes/r1",
+ Body: `{
+ "id": "r1",
+ "uris": ["/test1", "/test2"],
+ "name": "route_all",
+ "desc": "所有",
+ "methods": ["GET"],
Review comment:
Multiple methods should be set up to verify that the route is split
after exporting, and verify the exported data is merged into one route after
reimporting.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]