Skip to content

Commit

Permalink
Fix CI failure
Browse files Browse the repository at this point in the history
Signed-off-by: imjoey <[email protected]>
  • Loading branch information
imjoey committed Jan 28, 2021
1 parent 5e44696 commit 875a8fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/internal/handler/route/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1577,6 +1577,7 @@ func Test_Route_With_Script_ID(t *testing.T) {
assert.Equal(t, http.StatusBadRequest, ret.(*data.SpecCodeResponse).StatusCode)

// create with invalid script_id - set script_id but without id
route = &entity.Route{}
errReqBody = `{
"uri": "/index.html",
"upstream": {
Expand All @@ -1599,6 +1600,7 @@ func Test_Route_With_Script_ID(t *testing.T) {
assert.Equal(t, http.StatusBadRequest, ret.(*data.SpecCodeResponse).StatusCode)

// create with invalid script_id - set script_id but without script
route = &entity.Route{}
errReqBody = `{
"id": "1",
"uri": "/index.html",
Expand All @@ -1621,6 +1623,7 @@ func Test_Route_With_Script_ID(t *testing.T) {
assert.Equal(t, http.StatusBadRequest, ret.(*data.SpecCodeResponse).StatusCode)

// create with valid script_id
route = &entity.Route{}
reqBody := `{
"id": "1",
"uri": "/index.html",
Expand Down

0 comments on commit 875a8fc

Please sign in to comment.