Skip to content

Commit

Permalink
refactored response handling
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Jul 31, 2024
1 parent 5e07e8b commit 84dfb3e
Show file tree
Hide file tree
Showing 29 changed files with 165 additions and 649 deletions.
4 changes: 2 additions & 2 deletions e2e/local/regression/cases/015_index_by/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ pipeline:
Expect:
Code: 400
Body:
Message: "not found team with ID 100"
message: "not found team with ID 100"

- Method: PUT
URL: http://127.0.0.1:8080/v1/api/dev/teams?TeamIDs=1
Expect:
Code: 400
Body:
Message: "can't deactivate team Team - 1 with 2 members"
message: "can't deactivate team Team - 1 with 2 members"

- Method: PUT
URL: http://127.0.0.1:8080/v1/api/dev/teams?TeamIDs=3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"Message": "price can't be negative"
"message": "price can't be negative"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"Message": "price can't be negative"
"message": "price can't be negative"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"Message": "price can't be negative"
"message": "price can't be negative"
}
2 changes: 1 addition & 1 deletion e2e/local/regression/cases/037_plugins/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ pipeline:
Expect:
Code: 400
JSONBody:
Message: quantity can't be negative
message: quantity can't be negative
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
},
"Field": "Data" } */


SELECT events.* /* { "Cardinality": "One" } */
FROM (SELECT * FROM EVENTS) events
10 changes: 5 additions & 5 deletions e2e/local/regression/cases/040_parameters_order/expect_t0.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"Status": "error",
"Errors": [
"status": "error",
"errors": [
{
"View": "parameters_order",
"Parameter": "Jwt",
"Message": "parameter Jwt is required"
"view": "parameters_order",
"parameter": "Jwt",
"message": "parameter Jwt is required"
}
]
}
10 changes: 5 additions & 5 deletions e2e/local/regression/cases/040_parameters_order/expect_t1.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"Status": "error",
"Errors": [
"status": "error",
"errors": [
{
"View": "parameters_order",
"Parameter": "Authorization",
"Message": "parameter Authorization value is required but no data was found"
"view": "parameters_order",
"parameter": "Authorization",
"message": "parameter Authorization value is required but no data was found"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"Status": "error",
"Errors": [
"status": "error",
"errors": [
{
"View": "custom_unmarshall_velty",
"Parameter": "Preference",
"Message": "json: cannot unmarshal array into Go value of type struct { Id int; Name string; Price float64 }"
"view": "custom_unmarshall_velty",
"parameter": "Preference",
"message": "json: cannot unmarshal array into Go value of type struct { Id int; Name string; Price float64 }"
}
]
}
10 changes: 0 additions & 10 deletions e2e/local/regression/cases/053_dql_persist/expect2.json

This file was deleted.

4 changes: 2 additions & 2 deletions e2e/local/regression/cases/053_dql_persist/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ pipeline:
Expect:
Code: 419
JSONBody:
Message: 'OBJECTS with ID does not exits: 3333333'
Status: error
message: 'OBJECTS with ID does not exits: 3333333'
status: error
Loading

0 comments on commit 84dfb3e

Please sign in to comment.