[Groonga-commit] groonga/gcs [master] Add scenarios for the configuration API

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 9 15:35:34 JST 2012


YUKI Hiroshi	2012-11-09 15:35:34 +0900 (Fri, 09 Nov 2012)

  New Revision: c74d839513e23f8ce63712b36ebf373f82482f65
  https://github.com/groonga/gcs/commit/c74d839513e23f8ce63712b36ebf373f82482f65

  Log:
    Add scenarios for the configuration API

  Added files:
    test/fixture/response/configuration-CreateDomain.json
    test/fixture/response/configuration-DeleteDomain.json

  Added: test/fixture/response/configuration-CreateDomain.json (+25 -0) 100644
===================================================================
--- /dev/null
+++ test/fixture/response/configuration-CreateDomain.json    2012-11-09 15:35:34 +0900 (f276742)
@@ -0,0 +1,25 @@
+[
+  { "name"  : "CreateDomain with valid name",
+    "params": { "Action": "CreateDomain",
+                "DomainName": "companies" } },
+
+  { "name"  : "CreateDomain for existing domain",
+    "params": { "Action": "CreateDomain",
+                "DomainName": "companies" } },
+
+  { "name"  : "CreateDomain with too short (one letter) name",
+    "params": { "Action": "CreateDomain",
+                "DomainName": "a" } },
+
+  { "name"  : "CreateDomain with too short (two letters) name",
+    "params": { "Action": "CreateDomain",
+                "DomainName": "ab" } },
+
+  { "name"  : "CreateDomain with too long name",
+    "params": { "Action": "CreateDomain",
+                "DomainName": "abcdefghijklmnopqrstuvwxyz0123456789" } },
+
+  { "name"  : "CreateDomain without domain name",
+    "params": { "Action": "CreateDomain",
+                "DomainName": "" } }
+]

  Added: test/fixture/response/configuration-DeleteDomain.json (+28 -0) 100644
===================================================================
--- /dev/null
+++ test/fixture/response/configuration-DeleteDomain.json    2012-11-09 15:35:34 +0900 (bfe19f4)
@@ -0,0 +1,28 @@
+[
+  { "name"  : "setup to-be-deleted domain for valid name case",
+    "params": { "Action": "CreateDomain",
+                "DomainName": "companies" } },
+  { "name"  : "DeleteDomain with valid name",
+    "params": { "Action": "DeleteDomain",
+                "DomainName": "companies" } },
+
+  { "name"  : "DeleteDomain for not-existing domain",
+    "params": { "Action": "DeleteDomain",
+                "DomainName": "companies" } },
+
+  { "name"  : "DeleteDomain with too short (one letter) name",
+    "params": { "Action": "DeleteDomain",
+                "DomainName": "a" } },
+
+  { "name"  : "DeleteDomain with too short (two letters) name",
+    "params": { "Action": "DeleteDomain",
+                "DomainName": "ab" } },
+
+  { "name"  : "DeleteDomain with too long name",
+    "params": { "Action": "DeleteDomain",
+                "DomainName": "abcdefghijklmnopqrstuvwxyz0123456789" } },
+
+  { "name"  : "DeleteDomain without domain name",
+    "params": { "Action": "DeleteDomain",
+                "DomainName": "" } }
+]
-------------- next part --------------
HTML����������������������������...
Download 



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