[Groonga-commit] droonga/fluent-plugin-droonga at e6cd0ce [master] Add drntest for watch.subscribe

Back to archive index

Yoji Shidara null+****@clear*****
Mon Dec 9 18:54:22 JST 2013


Yoji Shidara	2013-12-09 18:54:22 +0900 (Mon, 09 Dec 2013)

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

  Message:
    Add drntest for watch.subscribe

  Added files:
    test/command/suite/watch/subscribe.expected
    test/command/suite/watch/subscribe.test
  Modified files:
    test/command/config/default/catalog.json

  Modified: test/command/config/default/catalog.json (+17 -17)
===================================================================
--- test/command/config/default/catalog.json    2013-12-09 18:11:35 +0900 (d8e8e07)
+++ test/command/config/default/catalog.json    2013-12-09 18:54:22 +0900 (4c455f3)
@@ -35,26 +35,26 @@
           }
         }
       }
-    }
-  },
-  "Watch": {
-    "workers": 2,
-    "plugins": ["search", "groonga", "add", "watch"],
-    "number_of_replicas": 1,
-    "number_of_partitions": 1,
-    "partition_key": "_key",
-    "date_range": "infinity",
-    "ring": {
-      "localhost:23041": {
-        "weight": 50,
-        "partitions": {
-          "2013-09-01": [
-            "localhost:23003/droonga.watch"
-          ]
+    },
+    "Watch": {
+      "workers": 2,
+      "plugins": ["search", "groonga", "add", "watch"],
+      "number_of_replicas": 1,
+      "number_of_partitions": 1,
+      "partition_key": "_key",
+      "date_range": "infinity",
+      "ring": {
+        "localhost:23041": {
+          "weight": 50,
+          "partitions": {
+            "2013-09-01": [
+              "localhost:23003/droonga.watch"
+            ]
+          }
         }
       }
     }
-  }
+  },
   "options": {
     "plugins": ["select"]
   }

  Added: test/command/suite/watch/subscribe.expected (+12 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/watch/subscribe.expected    2013-12-09 18:54:22 +0900 (17b8582)
@@ -0,0 +1,12 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "watch.subscribe.result",
+    "body": [
+      true
+    ]
+  }
+]

  Added: test/command/suite/watch/subscribe.test (+9 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/watch/subscribe.test    2013-12-09 18:54:22 +0900 (5b2bbad)
@@ -0,0 +1,9 @@
+{
+  "type": "watch.subscribe",
+  "dataset": "Watch",
+  "body": {
+    "condition": "condition",
+    "subscriber": "subscriber",
+    "route": "localhost:23003/output"
+  }
+}
-------------- next part --------------
HTML����������������������������...
Download 



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