[Groonga-commit] droonga/droonga-engine at 4ca4593 [master] Update drntest testcases for dump command

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 14 18:56:38 JST 2015


YUKI Hiroshi	2015-04-14 18:56:38 +0900 (Tue, 14 Apr 2015)

  New Revision: 4ca459314df83ad31bf3a2f67f071f4d80e653ce
  https://github.com/droonga/droonga-engine/commit/4ca459314df83ad31bf3a2f67f071f4d80e653ce

  Message:
    Update drntest testcases for dump command

  Added files:
    test/command/suite/dump/record/scalar.catalog.json
    test/command/suite/dump/record/scalar.expected
    test/command/suite/dump/record/scalar.test
  Modified files:
    test/command/suite/dump/record/vector/reference.expected

  Added: test/command/suite/dump/record/scalar.catalog.json (+12 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/record/scalar.catalog.json    2015-04-14 18:56:38 +0900 (116d672)
@@ -0,0 +1,12 @@
+{
+  "datasets": {
+    "Default": {
+      "schema": {
+        "Users": {
+          "type": "Hash",
+          "keyType": "ShortText"
+        }
+      }
+    }
+  }
+}

  Added: test/command/suite/dump/record/scalar.expected (+65 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/record/scalar.expected    2015-04-14 18:56:38 +0900 (cdcd4e7)
@@ -0,0 +1,65 @@
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "type": "dump.start"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "type": "dump.start"
+}
+{
+  "inReplyTo": "request-id",
+  "statusCode": 200,
+  "type": "dump.result",
+  "body": {
+    "started": true
+  }
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "body": {
+    "type": "Hash",
+    "name": "Users",
+    "keyType": "ShortText"
+  },
+  "type": "dump.table"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "body": {
+    "type": "Hash",
+    "name": "Users",
+    "keyType": "ShortText"
+  },
+  "type": "dump.table"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "body": {
+    "table": "Users",
+    "key": "Adam",
+    "values": {}
+  },
+  "type": "dump.record"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "type": "dump.end"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "type": "dump.end"
+}

  Added: test/command/suite/dump/record/scalar.test (+15 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/dump/record/scalar.test    2015-04-14 18:56:38 +0900 (e22427e)
@@ -0,0 +1,15 @@
+#@require-catalog-version 2
+#@disable-logging
+{
+  "type": "add",
+  "dataset": "Default",
+  "body": {
+    "table": "Users",
+    "key": "Adam"
+  }
+}
+#@enable-logging
+{
+  "type": "dump",
+  "dataset": "Default"
+}

  Modified: test/command/suite/dump/record/vector/reference.expected (+48 -0)
===================================================================
--- test/command/suite/dump/record/vector/reference.expected    2015-04-14 18:46:08 +0900 (8ada97e)
+++ test/command/suite/dump/record/vector/reference.expected    2015-04-14 18:56:38 +0900 (98a7e96)
@@ -150,6 +150,54 @@
   "inReplyTo": "request-id",
   "dataset": "Default",
   "date": "0000-00-00T00:00:00.000000Z",
+  "body": {
+    "table": "Tags",
+    "key": "Groonga",
+    "values": {
+    }
+  },
+  "type": "dump.record"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "body": {
+    "table": "Tags",
+    "key": "Groonga",
+    "values": {
+    }
+  },
+  "type": "dump.record"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "body": {
+    "table": "Tags",
+    "key": "column store",
+    "values": {
+    }
+  },
+  "type": "dump.record"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
+  "body": {
+    "table": "Tags",
+    "key": "column store",
+    "values": {
+    }
+  },
+  "type": "dump.record"
+}
+{
+  "inReplyTo": "request-id",
+  "dataset": "Default",
+  "date": "0000-00-00T00:00:00.000000Z",
   "type": "dump.end"
 }
 {
-------------- next part --------------
HTML����������������������������...
Download 



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