[Groonga-commit] droonga/droonga-engine at 1147d91 [master] Follow node name change in live nodes

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu May 22 16:19:10 JST 2014


Kouhei Sutou	2014-05-22 16:19:10 +0900 (Thu, 22 May 2014)

  New Revision: 1147d91d9b975f58b39700f88ab0c95523d1e8c2
  https://github.com/droonga/droonga-engine/commit/1147d91d9b975f58b39700f88ab0c95523d1e8c2

  Message:
    Follow node name change in live nodes

  Modified files:
    test/unit/catalog/test_collection_volume.rb
    test/unit/catalog/test_dataset.rb
    test/unit/catalog/test_single_volume.rb
    test/unit/catalog/test_slice.rb
    test/unit/catalog/test_version1.rb
    test/unit/catalog/test_version2.rb
    test/unit/catalog/test_volume_collection.rb

  Modified: test/unit/catalog/test_collection_volume.rb (+1 -1)
===================================================================
--- test/unit/catalog/test_collection_volume.rb    2014-05-22 15:10:20 +0900 (3a04376)
+++ test/unit/catalog/test_collection_volume.rb    2014-05-22 16:19:10 +0900 (d9cc651)
@@ -112,7 +112,7 @@ class CatalogSingleVolumeTest < Test::Unit::TestCase
         ],
       }
       volume = create_collection_volume(data)
-      assert_equal(["127.0.0.1:23003", "127.0.0.1:23004"],
+      assert_equal(["127.0.0.1:23003/droonga", "127.0.0.1:23004/droonga"],
                    volume.all_nodes)
     end
   end

  Modified: test/unit/catalog/test_dataset.rb (+5 -1)
===================================================================
--- test/unit/catalog/test_dataset.rb    2014-05-22 15:10:20 +0900 (40ddbab)
+++ test/unit/catalog/test_dataset.rb    2014-05-22 16:19:10 +0900 (1cab117)
@@ -129,7 +129,11 @@ class CatalogDatasetTest < Test::Unit::TestCase
         ],
       }
       dataset = create_dataset(data)
-      assert_equal(["127.0.0.1:23003", "127.0.0.1:23004", "127.0.0.1:23005"],
+      assert_equal([
+                     "127.0.0.1:23003/droonga",
+                     "127.0.0.1:23004/droonga",
+                     "127.0.0.1:23005/droonga",
+                   ],
                    dataset.all_nodes)
     end
   end

  Modified: test/unit/catalog/test_single_volume.rb (+1 -1)
===================================================================
--- test/unit/catalog/test_single_volume.rb    2014-05-22 15:10:20 +0900 (9fe13bd)
+++ test/unit/catalog/test_single_volume.rb    2014-05-22 16:19:10 +0900 (a4a0577)
@@ -34,7 +34,7 @@ class CatalogSingleVolumeTest < Test::Unit::TestCase
       "address" => "127.0.0.1:10047/volume.000",
     }
     volume = create_single_volume(data)
-    assert_equal(["127.0.0.1:10047"],
+    assert_equal(["127.0.0.1:10047/volume"],
                  volume.all_nodes)
   end
 end

  Modified: test/unit/catalog/test_slice.rb (+1 -1)
===================================================================
--- test/unit/catalog/test_slice.rb    2014-05-22 15:10:20 +0900 (abfe36d)
+++ test/unit/catalog/test_slice.rb    2014-05-22 16:19:10 +0900 (3e81390)
@@ -96,7 +96,7 @@ class CatalogSliceTest < Test::Unit::TestCase
         },
       }
       slice = create_slice(data)
-      assert_equal(["127.0.0.1:10047"],
+      assert_equal(["127.0.0.1:10047/volume"],
                    slice.all_nodes)
     end
   end

  Modified: test/unit/catalog/test_version1.rb (+1 -1)
===================================================================
--- test/unit/catalog/test_version1.rb    2014-05-22 15:10:20 +0900 (3625010)
+++ test/unit/catalog/test_version1.rb    2014-05-22 16:19:10 +0900 (7db505c)
@@ -126,7 +126,7 @@ class CatalogVersion1Test < Test::Unit::TestCase
 
     class NodesTest < self
       def test_all_nodes
-        assert_equal(["localhost:23003", "localhost:23004"],
+        assert_equal(["localhost:23003/test", "localhost:23004/test"],
                      @catalog.all_nodes)
       end
     end

  Modified: test/unit/catalog/test_version2.rb (+1 -1)
===================================================================
--- test/unit/catalog/test_version2.rb    2014-05-22 15:10:20 +0900 (5799ece)
+++ test/unit/catalog/test_version2.rb    2014-05-22 16:19:10 +0900 (9f2e35a)
@@ -123,7 +123,7 @@ class CatalogVersion2Test < Test::Unit::TestCase
 
     class NodesTest < self
       def test_all_nodes
-        assert_equal(["localhost:23003", "localhost:23004"],
+        assert_equal(["localhost:23003/test", "localhost:23004/test"],
                      @catalog.all_nodes)
       end
     end

  Modified: test/unit/catalog/test_volume_collection.rb (+1 -1)
===================================================================
--- test/unit/catalog/test_volume_collection.rb    2014-05-22 15:10:20 +0900 (8a8c553)
+++ test/unit/catalog/test_volume_collection.rb    2014-05-22 16:19:10 +0900 (58edf7d)
@@ -71,7 +71,7 @@ class CatalogVolumeCollectionTest < Test::Unit::TestCase
     end
 
     def test_all_nodes
-      assert_equal(["volume1:10047", "volume2:10047"],
+      assert_equal(["volume1:10047/test", "volume2:10047/test"],
                    @collection.all_nodes)
     end
   end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index