YUKI Hiroshi
null+****@clear*****
Thu Dec 26 13:54:45 JST 2013
YUKI Hiroshi 2013-12-26 13:54:45 +0900 (Thu, 26 Dec 2013) New Revision: b4340fdc54adccc90ac035014faf37e7acb104ea https://github.com/droonga/fluent-plugin-droonga/commit/b4340fdc54adccc90ac035014faf37e7acb104ea Message: Add drntest cases for common errors Added files: test/command/suite/common-error/missing-dataset.expected test/command/suite/common-error/missing-dataset.test test/command/suite/common-error/unknown-dataset.expected test/command/suite/common-error/unknown-dataset.test Added: test/command/suite/common-error/missing-dataset.expected (+13 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/common-error/missing-dataset.expected 2013-12-26 13:54:45 +0900 (7e65e1c) @@ -0,0 +1,13 @@ +[ + "droonga.message", + 0, + { + "inReplyTo": null, + "statusCode": 400, + "type": "add.result", + "body": { + "name": "MissingDataset", + "message": "\"dataset\" must be specified." + } + } +] Added: test/command/suite/common-error/missing-dataset.test (+16 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/common-error/missing-dataset.test 2013-12-26 13:54:45 +0900 (38d690a) @@ -0,0 +1,16 @@ +#@include fixture/user-table.jsons +{ + "type": "add", + "body": { + "table": "User", + "key": "key", + "values": { + "name": "Alice", + "age": 20, + "email": [ + "alice �� example.com", + "alice �� example.jp" + ] + } + } +} Added: test/command/suite/common-error/unknown-dataset.expected (+13 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/common-error/unknown-dataset.expected 2013-12-26 13:54:45 +0900 (54db6b5) @@ -0,0 +1,13 @@ +[ + "droonga.message", + 0, + { + "inReplyTo": null, + "statusCode": 404, + "type": "add.result", + "body": { + "name": "UnknownDataset", + "message": "The dataset \"Unknown\" does not exist." + } + } +] Added: test/command/suite/common-error/unknown-dataset.test (+17 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/common-error/unknown-dataset.test 2013-12-26 13:54:45 +0900 (d9f0e2a) @@ -0,0 +1,17 @@ +#@include fixture/user-table.jsons +{ + "type": "add", + "dataset": "Unknown", + "body": { + "table": "User", + "key": "key", + "values": { + "name": "Alice", + "age": 20, + "email": [ + "alice �� example.com", + "alice �� example.jp" + ] + } + } +} -------------- next part -------------- HTML����������������������������... Download