[Groonga-commit] droonga/fluent-plugin-droonga at c535d9a [master] Add a test for missing primary key

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Thu Dec 26 12:13:56 JST 2013


YUKI Hiroshi	2013-12-26 12:13:56 +0900 (Thu, 26 Dec 2013)

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

  Merged d5217b2: Merge branch 'master' of 192.168.1.21:~piro/groonga/fluent-plugin-droonga into HEAD

  Message:
    Add a test for missing primary key

  Added files:
    test/command/suite/add/missing-key.expected
    test/command/suite/add/missing-key.test

  Added: test/command/suite/add/missing-key.expected (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/add/missing-key.expected    2013-12-26 12:13:56 +0900 (194722a)
@@ -0,0 +1,13 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 400,
+    "type": "add.result",
+    "body": {
+      "name": "MissingPrimaryKey",
+      "message": "\"key\" must be specified. The table \"User\" requires a primary key for a new record."
+    }
+  }
+]

  Added: test/command/suite/add/missing-key.test (+16 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/add/missing-key.test    2013-12-26 12:13:56 +0900 (ed9889f)
@@ -0,0 +1,16 @@
+#@include fixture/user-table.jsons
+{
+  "type": "add",
+  "dataset": "Droonga",
+  "body": {
+    "table": "User",
+    "values": {
+      "name": "Alice",
+      "age": 20,
+      "email": [
+        "alice �� example.com",
+        "alice �� example.jp"
+      ]
+    }
+  }
+}
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る