[Groonga-commit] groonga/groonga [master] test: remove test-http-view.rb

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 18日 (月) 15:21:22 JST


Haruka Yoshihara	2012-06-18 15:21:22 +0900 (Mon, 18 Jun 2012)

  New Revision: f169345e2e5d133d4c54ecf9ead9a0574574c4a1
  https://github.com/groonga/groonga/commit/f169345e2e5d133d4c54ecf9ead9a0574574c4a1

  Log:
    test: remove test-http-view.rb

  Removed files:
    test/unit/http/test-http-view.rb
  Modified files:
    test/unit/http/Makefile.am

  Modified: test/unit/http/Makefile.am (+0 -1)
===================================================================
--- test/unit/http/Makefile.am    2012-06-18 13:15:06 +0900 (6685c46)
+++ test/unit/http/Makefile.am    2012-06-18 15:21:22 +0900 (a3b2db3)
@@ -4,7 +4,6 @@ EXTRA_DIST =					\
 	test-http-schema.rb			\
 	test-http-select-basic.rb		\
 	test-http-select-drilldown.rb		\
-	test-http-view.rb			\
 	test-http-crud.rb			\
 	test-http-load.rb			\
 	test-invalid-http.rb

  Deleted: test/unit/http/test-http-view.rb (+0 -95) 100644
===================================================================
--- test/unit/http/test-http-view.rb    2012-06-18 13:15:06 +0900 (4270c60)
+++ /dev/null
@@ -1,95 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2009  Kouhei Sutou <kou****@clear*****>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License version 2.1 as published by the Free Software Foundation.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-
-class HTTPViewTest < Test::Unit::TestCase
-  include GroongaHTTPTestUtils
-
-  def setup
-    setup_server
-  end
-
-  def teardown
-    teardown_server
-  end
-
-  def test_select
-    table_create("softwares", :flags => Table::VIEW)
-    table_create("search_engines", :key_type => "ShortText")
-    table_create("testing_frameworks", :key_type => "ShortText")
-
-    load("search_engines", [{:_key => "groonga"}, {:_key => "Senna"}])
-    load("testing_frameworks", [{:_key => "Cutter"}, {:_key => "test-unit"}])
-
-    assert_select([],
-                  [],
-                  :table => "softwares",
-                  :output_columns => "_key")
-
-    view_add("softwares", "search_engines")
-    assert_select([["_key", "Object"]],
-                  [["groonga"], ["Senna"]],
-                  :table => "softwares",
-                  :output_columns => "_key")
-
-    view_add("softwares", "testing_frameworks")
-    assert_select([["_key", "Object"]],
-                  [["groonga"], ["Senna"], ["Cutter"], ["test-unit"]],
-                  :table => "softwares",
-                  :output_columns => "_key")
-  end
-
-  def test_nonexistent
-    table_create("search_engines", :key_type => "ShortText")
-    response = get(command_path(:view_add,
-                                :view => "nonexistent",
-                                :table => "search_engines"))
-    assert_error_response(Result::INVALID_ARGUMENT, "invalid view",
-                          response,
-                          :content_type => "application/json")
-  end
-
-  def test_invalid
-    table_create("search_engines", :key_type => "ShortText")
-    table_create("testing_framework", :key_type => "ShortText")
-    response = get(command_path(:view_add,
-                                :view => "testing_framework",
-                                :table => "search_engines"))
-    assert_error_response(Result::INVALID_ARGUMENT, "invalid view",
-                          response,
-                          :content_type => "application/json")
-  end
-
-  def test_add_nonexistent_table
-    table_create("softwares", :flags => Table::VIEW)
-    response = get(command_path(:view_add,
-                                :view => "softwares",
-                                :table => "nonexistent"))
-    assert_error_response(Result::INVALID_ARGUMENT, "invalid table",
-                          response,
-                          :content_type => "application/json")
-  end
-
-  def test_invalid_table
-    table_create("softwares", :flags => Table::VIEW)
-    response = get(command_path(:view_add,
-                                :view => "softwares",
-                                :table => "ShortText"))
-    assert_error_response(Result::INVALID_ARGUMENT, "invalid table",
-                          response,
-                          :content_type => "application/json")
-  end
-end
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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