[Groonga-commit] groonga/groonga [master] test: migrate a test from test-unit with ruby to grntest style

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 19日 (火) 12:09:53 JST


Haruka Yoshihara	2012-06-19 12:09:53 +0900 (Tue, 19 Jun 2012)

  New Revision: 00847389607cd5a7cc3fc86d47b05631449c1f65
  https://github.com/groonga/groonga/commit/00847389607cd5a7cc3fc86d47b05631449c1f65

  Log:
    test: migrate a test from test-unit with ruby to grntest style
    
    This test checks table_list command when any table doesn't exist.

  Added files:
    test/function/suite/table_list/table_not_exist.expected
    test/function/suite/table_list/table_not_exist.test
  Modified files:
    test/unit/http/test-http-schema.rb

  Added: test/function/suite/table_list/table_not_exist.expected (+36 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/table_list/table_not_exist.expected    2012-06-19 12:09:53 +0900 (133b205)
@@ -0,0 +1,36 @@
+table_list
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        "id",
+        "UInt32"
+      ],
+      [
+        "name",
+        "ShortText"
+      ],
+      [
+        "path",
+        "ShortText"
+      ],
+      [
+        "flags",
+        "ShortText"
+      ],
+      [
+        "domain",
+        "ShortText"
+      ],
+      [
+        "range",
+        "ShortText"
+      ]
+    ]
+  ]
+]

  Added: test/function/suite/table_list/table_not_exist.test (+1 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/table_list/table_not_exist.test    2012-06-19 12:09:53 +0900 (ac35a97)
@@ -0,0 +1 @@
+table_list

  Modified: test/unit/http/test-http-schema.rb (+0 -4)
===================================================================
--- test/unit/http/test-http-schema.rb    2012-06-19 10:12:00 +0900 (564e41f)
+++ test/unit/http/test-http-schema.rb    2012-06-19 12:09:53 +0900 (0be1b31)
@@ -99,10 +99,6 @@ module HTTPSchemaTests
 
   include Utils
 
-  def test_table_list_empty
-    assert_table_list([])
-  end
-
   def test_table_list_with_invalid_output_type
     omit('now invalid output types are interpreted to json')
     response = get(command_path(:table_list,
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index