[Groonga-commit] droonga/fluent-plugin-droonga at 3df6c89 [master] Add drntest cases for recursive sources

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 26 18:54:40 JST 2013


YUKI Hiroshi	2013-12-26 18:54:40 +0900 (Thu, 26 Dec 2013)

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

  Message:
    Add drntest cases for recursive sources

  Added files:
    test/command/suite/search/error/deeply-recursive-source.expected
    test/command/suite/search/error/deeply-recursive-source.test
    test/command/suite/search/error/recursive-source.expected
    test/command/suite/search/error/recursive-source.test

  Added: test/command/suite/search/error/deeply-recursive-source.expected (+21 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/error/deeply-recursive-source.expected    2013-12-26 18:54:40 +0900 (a0ecd53)
@@ -0,0 +1,21 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 400,
+    "type": "search.result",
+    "body": {
+      "name": "RecursiveSource",
+      "message": "There is recursion of sources.",
+      "detail": {
+        "a": {
+          "source": "b"
+        },
+        "b": {
+          "source": "a"
+        }
+      }
+    }
+  }
+]

  Added: test/command/suite/search/error/deeply-recursive-source.test (+15 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/error/deeply-recursive-source.test    2013-12-26 18:54:40 +0900 (78958bf)
@@ -0,0 +1,15 @@
+#@include fixture/user-table.jsons
+{
+  "type": "search",
+  "dataset": "Droonga",
+  "body": {
+    "queries": {
+      "a": {
+        "source": "b"
+      },
+      "b": {
+        "source": "a"
+      }
+    }
+  }
+}

  Added: test/command/suite/search/error/recursive-source.expected (+18 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/error/recursive-source.expected    2013-12-26 18:54:40 +0900 (abe5d27)
@@ -0,0 +1,18 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 400,
+    "type": "search.result",
+    "body": {
+      "name": "RecursiveSource",
+      "message": "There is recursion of sources.",
+      "detail": {
+        "recursive-source": {
+          "source": "recursive-source"
+        }
+      }
+    }
+  }
+]

  Added: test/command/suite/search/error/recursive-source.test (+12 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/error/recursive-source.test    2013-12-26 18:54:40 +0900 (1e2d375)
@@ -0,0 +1,12 @@
+#@include fixture/user-table.jsons
+{
+  "type": "search",
+  "dataset": "Droonga",
+  "body": {
+    "queries": {
+      "recursive-source": {
+        "source": "recursive-source"
+      }
+    }
+  }
+}
-------------- next part --------------
HTML����������������������������...
Download 



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