YUKI Hiroshi
null+****@clear*****
Thu Dec 26 18:49:39 JST 2013
YUKI Hiroshi 2013-12-26 18:49:39 +0900 (Thu, 26 Dec 2013) New Revision: ad81d380e58759033f5a7e14371b28e1fa9f35b9 https://github.com/droonga/fluent-plugin-droonga/commit/ad81d380e58759033f5a7e14371b28e1fa9f35b9 Message: Add drntest case for unknown source of search command Added files: test/command/suite/search/error/unknown-source.expected test/command/suite/search/error/unknown-source.test Added: test/command/suite/search/error/unknown-source.expected (+18 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/search/error/unknown-source.expected 2013-12-26 18:49:39 +0900 (c412221) @@ -0,0 +1,18 @@ +[ + "droonga.message", + 0, + { + "inReplyTo": null, + "statusCode": 404, + "type": "search.result", + "body": { + "name": "UnknownSource", + "message": "The source \"unknown\" does not exist. It must be a name of an existing table or another query.", + "detail": { + "unknown-source": { + "source": "unknown" + } + } + } + } +] Added: test/command/suite/search/error/unknown-source.test (+12 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/search/error/unknown-source.test 2013-12-26 18:49:39 +0900 (4b9991c) @@ -0,0 +1,12 @@ +#@include fixture/user-table.jsons +{ + "type": "search", + "dataset": "Droonga", + "body": { + "queries": { + "unknown-source": { + "source": "unknown" + } + } + } +} -------------- next part -------------- HTML����������������������������...Download