Skip to content

Commit

Permalink
fix E2E test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
johzchen committed Mar 9, 2021
1 parent 00dbcda commit 958fa79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions api/test/e2e/route_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ func TestRoute_Export_Equal_URI(t *testing.T) {
},
"/test-test-APISIX-REPEAT-URI-2": {
"get": {
"operationId": "route_allGET",
"operationId": "route_all2GET",
"requestBody": {},
"responses": {
"default": {
Expand All @@ -2352,7 +2352,7 @@ func TestRoute_Export_Equal_URI(t *testing.T) {
},
"/test-test-APISIX-REPEAT-URI-3": {
"get": {
"operationId": "route_allGET",
"operationId": "route_all3GET",
"requestBody": {},
"responses": {
"default": {
Expand Down Expand Up @@ -2408,7 +2408,7 @@ func TestRoute_Export_Equal_URI(t *testing.T) {
Path: "/apisix/admin/routes/r2",
Body: `{
"uris": ["/test-test"],
"name": "route_all",
"name": "route_all2",
"desc": "所有1",
"methods": ["GET"],
"hosts": ["test.com"],
Expand All @@ -2431,7 +2431,7 @@ func TestRoute_Export_Equal_URI(t *testing.T) {
Path: "/apisix/admin/routes/r3",
Body: `{
"uris": ["/test-test"],
"name": "route_all",
"name": "route_all3",
"desc": "所有2",
"methods": ["GET"],
"hosts": ["test.com"],
Expand Down
6 changes: 3 additions & 3 deletions api/test/e2e/route_import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func TestRoute_export_import(t *testing.T) {
Path: "/apisix/admin/routes/r1",
Body: `{
"uris": ["/test-test1"],
"name": "route_all",
"name": "route_all1",
"desc": "所有",
"methods": ["GET"],
"hosts": ["test.com"],
Expand All @@ -418,7 +418,7 @@ func TestRoute_export_import(t *testing.T) {
Path: "/apisix/admin/routes/r2",
Body: `{
"uris": ["/test-test2"],
"name": "route_all",
"name": "route_all2",
"desc": "所有1",
"methods": ["GET"],
"hosts": ["test.com"],
Expand All @@ -441,7 +441,7 @@ func TestRoute_export_import(t *testing.T) {
Path: "/apisix/admin/routes/r3",
Body: `{
"uris": ["/test-test3"],
"name": "route_all",
"name": "route_all3",
"desc": "所有2",
"methods": ["GET"],
"hosts": ["test.com"],
Expand Down
2 changes: 2 additions & 0 deletions api/test/e2e/route_with_management_fileds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func TestRoute_search_by_label(t *testing.T) {
Path: "/apisix/admin/routes/r1",
Method: http.MethodPut,
Body: `{
"name": "route1",
"uri": "/hello",
"labels": {
"build":"16",
Expand All @@ -281,6 +282,7 @@ func TestRoute_search_by_label(t *testing.T) {
Method: http.MethodPut,
Body: `{
"uri": "/hello2",
"name": "route2",
"labels": {
"build":"17",
"env":"dev",
Expand Down

0 comments on commit 958fa79

Please sign in to comment.