[Groonga-commit] droonga/fluent-plugin-droonga at 38959ea [master] Add drntest case for mismatched value type request

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 26 16:51:52 JST 2013


YUKI Hiroshi	2013-12-26 16:51:52 +0900 (Thu, 26 Dec 2013)

  New Revision: 38959eac13a1b43f24a06eae6757e790f8a834b4
  https://github.com/droonga/fluent-plugin-droonga/commit/38959eac13a1b43f24a06eae6757e790f8a834b4

  Message:
    Add drntest case for mismatched value type request

  Added files:
    test/command/suite/add/mismatched-value-type.expected
    test/command/suite/add/mismatched-value-type.test
  Modified files:
    test/command/fixture/user-table.jsons

  Modified: test/command/fixture/user-table.jsons (+9 -0)
===================================================================
--- test/command/fixture/user-table.jsons    2013-12-26 16:47:36 +0900 (1b0efe6)
+++ test/command/fixture/user-table.jsons    2013-12-26 16:51:52 +0900 (a0bf107)
@@ -35,4 +35,13 @@
     "flags" : "COLUMN_VECTOR"
   }
 }
+{
+  "type": "column_create",
+  "dataset": "Droonga",
+  "body": {
+    "table" : "User",
+    "name"  : "birthday",
+    "type"  : "Time"
+  }
+}
 #@enable-logging

  Added: test/command/suite/add/mismatched-value-type.expected (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/add/mismatched-value-type.expected    2013-12-26 16:51:52 +0900 (deb5f1b)
@@ -0,0 +1,13 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 400,
+    "type": "add.result",
+    "body": {
+      "name": "MismatchedValueType",
+      "message": ""
+    }
+  }
+]

  Added: test/command/suite/add/mismatched-value-type.test (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/add/mismatched-value-type.test    2013-12-26 16:51:52 +0900 (c6a0575)
@@ -0,0 +1,13 @@
+#@include fixture/user-table.jsons
+{
+  "type": "add",
+  "dataset": "Droonga",
+  "body": {
+    "table": "User",
+    "key": "key",
+    "values": {
+      "name": "Alice",
+      "birthday": "today"
+    }
+  }
+}
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index