YUKI Hiroshi
null+****@clear*****
Thu Dec 26 18:40:53 JST 2013
YUKI Hiroshi 2013-12-26 18:40:53 +0900 (Thu, 26 Dec 2013) New Revision: ffa978e06151da7ae9cb30877745a12d40770286 https://github.com/droonga/fluent-plugin-droonga/commit/ffa978e06151da7ae9cb30877745a12d40770286 Message: Add drntest case for missing source parameter Added files: test/command/suite/search/error/missing-source-parameter.expected test/command/suite/search/error/missing-source-parameter.test Added: test/command/suite/search/error/missing-source-parameter.expected (+19 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/search/error/missing-source-parameter.expected 2013-12-26 18:40:53 +0900 (479d5e0) @@ -0,0 +1,19 @@ +[ + "droonga.message", + 0, + { + "inReplyTo": null, + "statusCode": 400, + "type": "search.result", + "body": { + "name": "MissingSourceParameter", + "message": "The query \"no-source\" has no source. Query must have a valid source.", + "detail": { + "queries": { + "no-source": { + } + } + } + } + } +] Added: test/command/suite/search/error/missing-source-parameter.test (+11 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/search/error/missing-source-parameter.test 2013-12-26 18:40:53 +0900 (d6c012f) @@ -0,0 +1,11 @@ +#@include fixture/user-table.jsons +{ + "type": "search", + "dataset": "Droonga", + "body": { + "queries": { + "no-source": { + } + } + } +} -------------- next part -------------- HTML����������������������������...Download