YUKI Hiroshi
null+****@clear*****
Mon Jan 27 18:12:44 JST 2014
YUKI Hiroshi 2014-01-27 18:12:44 +0900 (Mon, 27 Jan 2014) New Revision: fb799150f63da4cc53e10e5680fc375cbaf139ca https://github.com/droonga/fluent-plugin-droonga/commit/fb799150f63da4cc53e10e5680fc375cbaf139ca Message: Add error information to expected error cases Modified files: test/command/suite/add/error/invalid-integer.expected test/command/suite/add/error/invalid-time.expected test/command/suite/add/error/missing-key.expected test/command/suite/add/error/missing-table.expected test/command/suite/add/error/unknown-column.expected test/command/suite/add/error/unknown-table.expected Modified: test/command/suite/add/error/invalid-integer.expected (+30 -0) =================================================================== --- test/command/suite/add/error/invalid-integer.expected 2014-01-27 18:10:00 +0900 (c1ad26f) +++ test/command/suite/add/error/invalid-integer.expected 2014-01-27 18:12:44 +0900 (69d1802) @@ -15,6 +15,36 @@ "age": "secret" } } + }, + "errors": { + "sources0": { + "status_code": 400, + "body": { + "name": "InvalidValue", + "message": "The column \"age\" cannot store the value \"secret\".", + "detail": { + "table": "User", + "key": "key", + "values": { + "age": "secret" + } + } + } + }, + "sources1": { + "status_code": 400, + "body": { + "name": "InvalidValue", + "message": "The column \"age\" cannot store the value \"secret\".", + "detail": { + "table": "User", + "key": "key", + "values": { + "age": "secret" + } + } + } + } } } ] Modified: test/command/suite/add/error/invalid-time.expected (+30 -0) =================================================================== --- test/command/suite/add/error/invalid-time.expected 2014-01-27 18:10:00 +0900 (cac5fda) +++ test/command/suite/add/error/invalid-time.expected 2014-01-27 18:12:44 +0900 (cfcb07c) @@ -15,6 +15,36 @@ "birthday": "today" } } + }, + "errors": { + "sources0": { + "status_code": 400, + "body": { + "name": "InvalidValue", + "message": "The column \"birthday\" cannot store the value \"today\".", + "detail": { + "table": "User", + "key": "key", + "values": { + "birthday": "today" + } + } + } + }, + "sources1": { + "status_code": 400, + "body": { + "name": "InvalidValue", + "message": "The column \"birthday\" cannot store the value \"today\".", + "detail": { + "table": "User", + "key": "key", + "values": { + "birthday": "today" + } + } + } + } } } ] Modified: test/command/suite/add/error/missing-key.expected (+16 -0) =================================================================== --- test/command/suite/add/error/missing-key.expected 2014-01-27 18:10:00 +0900 (bf38873) +++ test/command/suite/add/error/missing-key.expected 2014-01-27 18:12:44 +0900 (dccf1f6) @@ -8,6 +8,22 @@ "body": { "name": "MissingPrimaryKeyParameter", "message": "\"key\" must be specified. The table \"User\" requires a primary key for a new record." + }, + "errors": { + "sources0": { + "status_code": 400, + "body": { + "name": "MissingPrimaryKeyParameter", + "message": "\"key\" must be specified. The table \"User\" requires a primary key for a new record." + } + }, + "sources1": { + "status_code": 400, + "body": { + "name": "MissingPrimaryKeyParameter", + "message": "\"key\" must be specified. The table \"User\" requires a primary key for a new record." + } + } } } ] Modified: test/command/suite/add/error/missing-table.expected (+16 -0) =================================================================== --- test/command/suite/add/error/missing-table.expected 2014-01-27 18:10:00 +0900 (5f3abb6) +++ test/command/suite/add/error/missing-table.expected 2014-01-27 18:12:44 +0900 (5db9855) @@ -8,6 +8,22 @@ "body": { "name": "MissingTableParameter", "message": "\"table\" must be specified." + }, + "errors": { + "sources0": { + "status_code": 400, + "body": { + "name": "MissingTableParameter", + "message": "\"table\" must be specified." + } + }, + "sources1": { + "status_code": 400, + "body": { + "name": "MissingTableParameter", + "message": "\"table\" must be specified." + } + } } } ] Modified: test/command/suite/add/error/unknown-column.expected (+30 -0) =================================================================== --- test/command/suite/add/error/unknown-column.expected 2014-01-27 18:10:00 +0900 (7f14bae) +++ test/command/suite/add/error/unknown-column.expected 2014-01-27 18:12:44 +0900 (557439a) @@ -15,6 +15,36 @@ "unknown": "unknown" } } + }, + "errors": { + "sources0": { + "status_code": 404, + "body": { + "name": "UnknownColumn", + "message": "The column \"unknown\" does not exist in the table \"User\".", + "detail": { + "table": "User", + "key": "key", + "values": { + "unknown": "unknown" + } + } + } + }, + "sources1": { + "status_code": 404, + "body": { + "name": "UnknownColumn", + "message": "The column \"unknown\" does not exist in the table \"User\".", + "detail": { + "table": "User", + "key": "key", + "values": { + "unknown": "unknown" + } + } + } + } } } ] Modified: test/command/suite/add/error/unknown-table.expected (+16 -0) =================================================================== --- test/command/suite/add/error/unknown-table.expected 2014-01-27 18:10:00 +0900 (7ff61b5) +++ test/command/suite/add/error/unknown-table.expected 2014-01-27 18:12:44 +0900 (e73656b) @@ -8,6 +8,22 @@ "body": { "name": "UnknownTable", "message": "The table \"Unknown\" does not exist in the dataset." + }, + "errors": { + "sources0": { + "status_code": 404, + "body": { + "name": "UnknownTable", + "message": "The table \"Unknown\" does not exist in the dataset." + } + }, + "sources1": { + "status_code": 404, + "body": { + "name": "UnknownTable", + "message": "The table \"Unknown\" does not exist in the dataset." + } + } } } ] -------------- next part -------------- HTML����������������������������...Download