[Groonga-commit] groonga/gcs [master] Add scenarios for DescribeIndexFields of fields with unknown options

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 22 16:53:02 JST 2012


YUKI Hiroshi	2012-11-22 16:53:02 +0900 (Thu, 22 Nov 2012)

  New Revision: 631404484512b7a2ed5d4c8f6a35b7a6df16a82e
  https://github.com/groonga/gcs/commit/631404484512b7a2ed5d4c8f6a35b7a6df16a82e

  Log:
    Add scenarios for DescribeIndexFields of fields with unknown options

  Modified files:
    test/scenarios/configuration/DescribeIndexFields.json

  Modified: test/scenarios/configuration/DescribeIndexFields.json (+40 -1)
===================================================================
--- test/scenarios/configuration/DescribeIndexFields.json    2012-11-22 16:46:36 +0900 (cda49f2)
+++ test/scenarios/configuration/DescribeIndexFields.json    2012-11-22 16:53:02 +0900 (62fdad0)
@@ -131,5 +131,44 @@
   { "name"  : "not a number index",
     "params": { "Action": "DescribeIndexFields",
                 "DomainName": "companies",
-                "FieldNames.member.foo": "name" } }
+                "FieldNames.member.foo": "name" } },
+
+  [
+    { "name"  : "text index field with unknown option: setup",
+      "params": { "Action": "DefineIndexField",
+                  "DomainName": "companies",
+                  "IndexField.IndexFieldName": "name_with_unknown_option",
+                  "IndexField.IndexFieldType": "text",
+                  "IndexField.TextOptions.SearchEnabled": "true" } },
+    { "name"  : "text index field with unknown option: describe",
+      "params": { "Action": "DescribeIndexFields",
+                  "DomainName": "companies",
+                  "FieldNames.member.1": "name_with_unknown_option" } }
+  ],
+
+  [
+    { "name"  : "literal index field with unknown option: setup",
+      "params": { "Action": "DefineIndexField",
+                  "DomainName": "companies",
+                  "IndexField.IndexFieldName": "product_with_unknown_option",
+                  "IndexField.IndexFieldType": "literal",
+                  "IndexField.TextOptions.SearchEnabled": "true" } },
+    { "name"  : "literal index field with unknown option: describe",
+      "params": { "Action": "DescribeIndexFields",
+                  "DomainName": "companies",
+                  "FieldNames.member.1": "product_with_unknown_option" } }
+  ],
+
+  [
+    { "name"  : "uint index field with unknown option: setup",
+      "params": { "Action": "DefineIndexField",
+                  "DomainName": "companies",
+                  "IndexField.IndexFieldName": "age_with_unknown_option",
+                  "IndexField.IndexFieldType": "uint",
+                  "IndexField.TextOptions.SearchEnabled": "true" } },
+    { "name"  : "uint index field with unknown option: describe",
+      "params": { "Action": "DescribeIndexFields",
+                  "DomainName": "companies",
+                  "FieldNames.member.1": "age_with_unknown_option" } }
+  ]
 ] }
-------------- next part --------------
HTML����������������������������...
Download 



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