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: us...@infra.apache.org