[Groonga-commit] droonga/droonga-engine at 6192b16 [master] Add drntest cases for missing parameter

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 7 16:19:49 JST 2014


YUKI Hiroshi	2014-11-07 16:19:49 +0900 (Fri, 07 Nov 2014)

  New Revision: 6192b16ea0e005262661ed66f325fb6023e801f0
  https://github.com/droonga/droonga-engine/commit/6192b16ea0e005262661ed66f325fb6023e801f0

  Message:
    Add drntest cases for missing parameter

  Added files:
    test/command/suite/groonga/table_create/dat-without-key-type.expected
    test/command/suite/groonga/table_create/dat-without-key-type.test
    test/command/suite/groonga/table_create/dat.expected
    test/command/suite/groonga/table_create/dat.test
    test/command/suite/groonga/table_create/hash-without-key-type.expected
    test/command/suite/groonga/table_create/hash-without-key-type.test
    test/command/suite/groonga/table_create/pat-without-key-type.expected
    test/command/suite/groonga/table_create/pat-without-key-type.test
    test/command/suite/groonga/table_create/pat.expected
    test/command/suite/groonga/table_create/pat.test

  Added: test/command/suite/groonga/table_create/dat-without-key-type.expected (+14 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/dat-without-key-type.expected    2014-11-07 16:19:49 +0900 (953f6b0)
@@ -0,0 +1,14 @@
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "table_create.result",
+  "body": [
+    [
+      -22,
+      0.0,
+      0.0,
+      "key_type is required for TABLE_DAT_KEY table"
+    ],
+    false
+  ]
+}

  Added: test/command/suite/groonga/table_create/dat-without-key-type.test (+8 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/dat-without-key-type.test    2014-11-07 16:19:49 +0900 (7499c2b)
@@ -0,0 +1,8 @@
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name"  : "User",
+    "flags" : "TABLE_DAT_KEY"
+  }
+}

  Added: test/command/suite/groonga/table_create/dat.expected (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/dat.expected    2014-11-07 16:19:49 +0900 (50add52)
@@ -0,0 +1,13 @@
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "table_create.result",
+  "body": [
+    [
+      0,
+      0.0,
+      0.0
+    ],
+    true
+  ]
+}

  Added: test/command/suite/groonga/table_create/dat.test (+9 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/dat.test    2014-11-07 16:19:49 +0900 (1264e57)
@@ -0,0 +1,9 @@
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name"     : "User",
+    "flags"    : "TABLE_DAT_KEY",
+    "key_type" : "ShortText"
+  }
+}

  Added: test/command/suite/groonga/table_create/hash-without-key-type.expected (+14 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/hash-without-key-type.expected    2014-11-07 16:19:49 +0900 (953f6b0)
@@ -0,0 +1,14 @@
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "table_create.result",
+  "body": [
+    [
+      -22,
+      0.0,
+      0.0,
+      "key_type is required for TABLE_DAT_KEY table"
+    ],
+    false
+  ]
+}

  Added: test/command/suite/groonga/table_create/hash-without-key-type.test (+8 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/hash-without-key-type.test    2014-11-07 16:19:49 +0900 (9970656)
@@ -0,0 +1,8 @@
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name"  : "User",
+    "flags" : "TABLE_HASH_KEY"
+  }
+}

  Added: test/command/suite/groonga/table_create/pat-without-key-type.expected (+14 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/pat-without-key-type.expected    2014-11-07 16:19:49 +0900 (c19ef90)
@@ -0,0 +1,14 @@
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "table_create.result",
+  "body": [
+    [
+      -22,
+      0.0,
+      0.0,
+      "key_type is required for TABLE_PAT_KEY table"
+    ],
+    false
+  ]
+}

  Added: test/command/suite/groonga/table_create/pat-without-key-type.test (+8 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/pat-without-key-type.test    2014-11-07 16:19:49 +0900 (28f5491)
@@ -0,0 +1,8 @@
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name"  : "User",
+    "flags" : "TABLE_PAT_KEY"
+  }
+}

  Added: test/command/suite/groonga/table_create/pat.expected (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/pat.expected    2014-11-07 16:19:49 +0900 (50add52)
@@ -0,0 +1,13 @@
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "table_create.result",
+  "body": [
+    [
+      0,
+      0.0,
+      0.0
+    ],
+    true
+  ]
+}

  Added: test/command/suite/groonga/table_create/pat.test (+9 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/groonga/table_create/pat.test    2014-11-07 16:19:49 +0900 (3cd559f)
@@ -0,0 +1,9 @@
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name"     : "User",
+    "flags"    : "TABLE_PAT_KEY",
+    "key_type" : "ShortText"
+  }
+}
-------------- next part --------------
HTML����������������������������...
下載 



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