HBASE-21631 (addendum) Fixed TestQuotasShell failure (quotas_test.rb)

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
Sakthi 2018-12-23 21:25:07 -08:00 committed by Guanghao Zhang
parent e7bd69f9e9
commit 16b96826d9
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ module Hbase
define_test 'can set and remove quota' do
command(:set_quota, TYPE => SPACE, LIMIT => '1G', POLICY => NO_INSERTS, TABLE => @test_name)
output = capture_stdout{ command(:list_quotas) }
size = 1024 * 1024 * 1024
assert(output.include?("LIMIT => #{size}"))
assert(output.include?("LIMIT => 1G"))
assert(output.include?("VIOLATION_POLICY => NO_INSERTS"))
assert(output.include?("TYPE => SPACE"))
assert(output.include?("TABLE => #{@test_name}"))