You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/08/18 02:28:14 UTC

[GitHub] [hbase] bsglz commented on a change in pull request #2263: HBASE-24890 The command regioninfo is not available

bsglz commented on a change in pull request #2263:
URL: https://github.com/apache/hbase/pull/2263#discussion_r471876770



##########
File path: hbase-shell/src/test/ruby/hbase/admin2_test.rb
##########
@@ -435,5 +435,39 @@ def teardown
       end
     end
   end
+
+  # Tests for the `regioninfo` shell command
+  class RegionInfoTest < Test::Unit::TestCase
+    include TestHelpers
+    include HBaseConstants
+
+    def setup
+      setup_hbase
+    end
+
+    def teardown
+      shutdown
+    end
+
+    define_test "Get region info without any args" do
+      assert_raise(ArgumentError) do
+        command(:regioninfo)
+      end
+    end
+
+    define_test 'Get region info with encoded region name' do
+      output = capture_stdout { command(:regioninfo, '1588230740') }

Review comment:
       Yeah, it would be better. 
   Will fix later, Thanks.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org